/** @file\r
\r
Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
\r
**/\r
return RetVal;\r
}\r
\r
-/**\r
-\r
- Convert the character to upper case.\r
-\r
- @param Chr the character to be converted.\r
-\r
-**/\r
-STATIC\r
-CHAR16\r
-InternalUnicodeToUpper (\r
- IN CHAR16 Chr\r
- )\r
-{\r
- return (Chr >= L'a' && Chr <= L'z') ? Chr - (L'a' - L'A') : Chr;\r
-}\r
-\r
-/**\r
-\r
- Convert the character to upper case.\r
-\r
- @param Chr the character to be converted.\r
-\r
-**/\r
-STATIC\r
-CHAR8\r
-InternalAsciiToUpper (\r
- IN CHAR8 Chr\r
- )\r
-{\r
- return (Chr >= 'a' && Chr <= 'z') ? Chr - ('a' - 'A') : Chr;\r
-}\r
\r
/**\r
Compare the Unicode and Ascii string pointed by String to the string pointed by String2.\r
)\r
{\r
while ((*String != L'\0') &&\r
- (InternalUnicodeToUpper (*String) == InternalUnicodeToUpper (*String2))) {\r
+ (CharToUpper (*String) == CharToUpper (*String2))) {\r
String++;\r
String2++;\r
}\r
\r
- return InternalUnicodeToUpper (*String) - InternalUnicodeToUpper (*String2);\r
+ return CharToUpper (*String) - CharToUpper (*String2);\r
}\r
\r
/**\r
)\r
{\r
while ((*String != L'\0') &&\r
- (InternalUnicodeToUpper (*String) == (CHAR16)InternalAsciiToUpper (*String2))) {\r
+ (CharToUpper (*String) == (CHAR16)AsciiCharToUpper (*String2))) {\r
String++;\r
String2++;\r
}\r
\r
- return InternalUnicodeToUpper (*String) - (CHAR16)InternalAsciiToUpper (*String2);\r
+ return CharToUpper (*String) - (CHAR16)AsciiCharToUpper (*String2);\r
}\r
\r
/**\r