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