From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=jaben.carsey@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 50F04211C2808 for ; Wed, 30 Jan 2019 08:13:32 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2019 08:13:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,541,1539673200"; d="scan'208";a="134463116" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 30 Jan 2019 08:13:31 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 30 Jan 2019 08:13:31 -0800 Received: from fmsmsx103.amr.corp.intel.com ([169.254.2.205]) by FMSMSX113.amr.corp.intel.com ([169.254.13.29]) with mapi id 14.03.0415.000; Wed, 30 Jan 2019 08:13:30 -0800 From: "Carsey, Jaben" To: "Zhang, Shenglei" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH v5 6/7] ShellPkg/Shell: Use BaseLib api CharToUpper Thread-Index: AQHUuGXdh/KOxVvbC0KgpSiI7g0o7qXH/Kqg Date: Wed, 30 Jan 2019 16:13:30 +0000 Message-ID: References: <20190130063417.11308-1-shenglei.zhang@intel.com> <20190130063417.11308-7-shenglei.zhang@intel.com> In-Reply-To: <20190130063417.11308-7-shenglei.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDY2NDdjZWYtOWNjOS00NDZlLThmMTctZDYzN2M5NDhkZTNkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibWY2TVdpeGxTb3ZcLzRjRndNWE1RVE1JM3lVMVl6SU1LUXRqZkErNDdiWFZQVEhDR0hKNHNrNkI5SlwvSGxNeW5NIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.1.200.107] MIME-Version: 1.0 Subject: Re: [PATCH v5 6/7] ShellPkg/Shell: Use BaseLib api CharToUpper X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 X-List-Received-Date: Wed, 30 Jan 2019 16:13:32 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jaben Carsey > -----Original Message----- > From: Zhang, Shenglei > Sent: Tuesday, January 29, 2019 10:34 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ray ; Carsey, Jaben > Subject: [PATCH v5 6/7] ShellPkg/Shell: Use BaseLib api CharToUpper > Importance: High >=20 > Substitute InternalShellCharToUpper with a public function > CharToUpper which has the same function. > Remove the implement of InternalShellCharToUpper. >=20 > Cc: Ruiyu Ni > Cc: Jaben Carsey > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Shenglei Zhang > Reviewed-by: Jaben Carsey > Reviewed-by: Liming Gao > --- > ShellPkg/Application/Shell/ShellManParser.c | 23 +-------------------- > 1 file changed, 1 insertion(+), 22 deletions(-) >=20 > diff --git a/ShellPkg/Application/Shell/ShellManParser.c > b/ShellPkg/Application/Shell/ShellManParser.c > index b180c6c8f7..2c044dbe4a 100644 > --- a/ShellPkg/Application/Shell/ShellManParser.c > +++ b/ShellPkg/Application/Shell/ShellManParser.c > @@ -46,27 +46,6 @@ SHELL_MAN_HII_VENDOR_DEVICE_PATH > mShellManHiiDevicePath =3D { > } > }; >=20 > - > -/** > - Convert a Unicode character to upper case only if > - it maps to a valid small-case ASCII character. > - > - This internal function only deal with Unicode character > - which maps to a valid small-case ASCII character, i.e. > - L'a' to L'z'. For other Unicode character, the input character > - is returned directly. > - > - @param Char The character to convert. > - > - @retval LowerCharacter If the Char is with range L'a' to L'z'. > - @retval Unchanged Otherwise. > - > -**/ > -CHAR16 > -InternalShellCharToUpper ( > - IN CHAR16 Char > - ); > - > /** > Verifies that the filename has .EFI on the end. >=20 > @@ -416,7 +395,7 @@ IsTitleHeader( > ReturnFound =3D TRUE; // This is the desired command's title = header line. > State =3D (BriefDesc =3D=3D NULL) ? Final : GetBriefDescriptio= n; > } > - else if (InternalShellCharToUpper (*Line) !=3D InternalShellChar= ToUpper > (*(Command + CommandIndex++))) { > + else if (CharToUpper (*Line) !=3D CharToUpper (*(Command + > CommandIndex++))) { > State =3D Final; > } > Line++; > -- > 2.18.0.windows.1