Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp42315rdb; Mon, 22 Jan 2024 11:15:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHd1n7QjSwmywpzuy4Cgg/W45D9gkKO8AWJ159cA3hU+zecMi/y8Tc6Kx3YazX5O7heke2T X-Received: by 2002:a05:6870:8927:b0:210:7b00:e811 with SMTP id i39-20020a056870892700b002107b00e811mr412179oao.71.1705950945799; Mon, 22 Jan 2024 11:15:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705950945; cv=pass; d=google.com; s=arc-20160816; b=G/tewLWRSIVO/Yk/YovyY5wF5zncbvQeIy6MpR4axCyjoKOtXwNnvlXMiCs1+/yHN4 cClsAq8qrV+OigpEQa4unJKz5gotZyFGi6cP8YORi7M1ertR/YUO/CXI+19YSa+mAWjx ysYfQLwg7i+CEgZtv+pvyISMC9DQ5z+xppcW5GjwgRO7a1DMbi5hvHmScwYDpXwUDzI4 UCp8OLCk/1j6Iicoggk6lXddYzIU3WyDFGYEO4ZlV2NbaOGKb09eDxgWC9bqxMp+FFeM vQJ4nAR5CV9upugK7SazBy53o6dBuWRcAkvoobXJ7y6bG7qPTnA1x1UA4xnzIhejTCf+ Mbeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VWOf8TrU3RfJgWEayn+bJz3W2oVeMtgyadg74e0TLO8=; fh=C06bcR/kJI09aV0r5nqUihSntI9xQ0H1ZXtQvOHzxI0=; b=lH2uM40wvRmrQUT9NACh1BLjU76SLcBb6ct5O9FWnhPmcXhTip2uawQaNzmRR6+w6j W+mw1t1VAfu8GMK2dLNk1PyhSRyPAB7NblpTj2pEBEOBXZ4TAb0SmS+Pve+ayj2OBoXL oUUa8GXtx8Ms/rC+3VNhBjKBgKnaEN1UuSw/EphN8jHi3auNrXh4bVsfx8lBgEu0py2w 2ovplSU1tyWK3pkS/+NK7vv7ESXrO59CR5bhIwant//9s6EQcDuchJgsnvObmRWP5bTO u+oEkoXOp2WzR0ai1xbH07MsZFSGwxu1TFYgAYimnInKbNIAU1SosYL6tKCxCDivg+cq aT8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=W2Dvifm+; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-34035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h13-20020ac85e0d000000b0042a368f807esi4535535qtx.194.2024.01.22.11.15.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:15:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=W2Dvifm+; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-34035-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7020D1C28F51 for ; Mon, 22 Jan 2024 19:15:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B26DE495D7; Mon, 22 Jan 2024 18:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="W2Dvifm+" Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E9F0495CA for ; Mon, 22 Jan 2024 18:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705949885; cv=none; b=XnRdAYDNS2r8p3f1RkGRznMVAvJ4/001HeYKSkYj7WVhivOVKgZyUdJ8dwxVAoO3E0FtMmZaE582oJiConUZvwZoCqFva3vvq6l1jwNuhGtE2z+g+6giT0xbSzo05xhilcbPaBncf+hbM4i8GgHMnQl8goIkNTXGxkLLhMYzcOE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705949885; c=relaxed/simple; bh=VWOf8TrU3RfJgWEayn+bJz3W2oVeMtgyadg74e0TLO8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LoLOs1Uml3R7mKdieLN87ym+eSOY/UDmcKyJDVVQNguNVo+0ITgvyOQFGl+YEnRnLW4XGpKDIGHb0KmbctPYqYolyWBfmJbi+AJQPnaDt4n0qacxIdzqsx4NzIi3+tgFDHssHSJ1fl7L46ZZBH/XI5ZpdvSFeJgDT6aGhhimYtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=W2Dvifm+; arc=none smtp.client-ip=209.85.222.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-7d2e007751eso1056857241.1 for ; Mon, 22 Jan 2024 10:58:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1705949883; x=1706554683; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VWOf8TrU3RfJgWEayn+bJz3W2oVeMtgyadg74e0TLO8=; b=W2Dvifm+4/mh8atPmMbzY06l4rlAGkxKS+K46U8rUpotqjLrvweTfgv4qMtlxOA1vp p389uyFrAny1REMidvluyijHYFYYiGX0iaxWseaop9RUwCbujIrcADwX1aS+khrcDj9m uQgiXWeeGnCiAAeeqo8Bsy6YI/cRmQxqNjWF3vUICcdyA06G39w9TgVyiXTaGLy4x5op 566MwrO9vyXgem/2N2KmiwsJpvpVi386mSUt+kVs8riFGuddf1qtPZddXLJJ6kTqcxMM /JbGG+B6n2maWCbQP/bmaXI5eiAnG6f7cA6J9SBv4bZWA2GVyflitaCWbN9kizUWz5gy Rqtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705949883; x=1706554683; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VWOf8TrU3RfJgWEayn+bJz3W2oVeMtgyadg74e0TLO8=; b=Di4f9lqKvXLK3xbP0E/vmBf4eSsG4L2RwwX+VC7zdZfsqfG9yFHzRrlZzQRJ3+EMhd RHtI5WKSuOUCmqw7y4KssCVHSfWOay0rA2eEcqFmxNOCuoTHphUWFxUtJcFBJxgzZB1I eJf9ug7D7D8lu+G79c5M1NIyGNfPkNcxtpaSJIiMCOgJ8XkXByBs7AKe98RlAqSYNW6L OGCbz0wgK9d2zDIOr4QwRbX7/m2/odnXOK0gQRV8F5vbleZYIgd6cvXeb0XlwlYT8oS7 +xrL9rEAFed9x1z9r7hoOBP3FwRU0QMKlYsa/et4shhvGm23L41JYO0bFcEanBJk0Pf8 os4Q== X-Gm-Message-State: AOJu0YypyG3E6+boErClAg8EN8hSZp06PCQb0tfFBPJvLUy5AQj5urQc Kkc9YW1KFkTDLTA7BUOuvp2ATW6+nwJ7QW9X2zx/JOuH74cNYp8856dq/U1gxzt9bm9ksGyWLDi lm3LWnAyGKkBf6hP4K4RRM2QI2QpllMpxBEoZ X-Received: by 2002:a05:6102:3a13:b0:469:93d3:9fed with SMTP id b19-20020a0561023a1300b0046993d39fedmr3292716vsu.15.1705949883381; Mon, 22 Jan 2024 10:58:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240122184608.11863-1-dakr@redhat.com> In-Reply-To: <20240122184608.11863-1-dakr@redhat.com> From: Alice Ryhl Date: Mon, 22 Jan 2024 19:57:52 +0100 Message-ID: Subject: Re: [PATCH] rust: str: add to_ascii_{upper,lower}case() to CString To: Danilo Krummrich Cc: ojeda@kernel.org, alex.gaynor@gmail.com, wedsonaf@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, benno.lossin@proton.me, a.hindborg@samsung.com, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 7:46=E2=80=AFPM Danilo Krummrich = wrote: > > Add functions to convert a CString to upper- / lowercase assuming all > characters are ASCII encoded. > > Signed-off-by: Danilo Krummrich What is this for? Alice