]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/EbcDebugger: Use AsciiCharToUpper and CharToUpper
authorShenglei Zhang <shenglei.zhang@intel.com>
Tue, 25 Dec 2018 03:32:57 +0000 (11:32 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 31 Jan 2019 12:19:16 +0000 (20:19 +0800)
InternalUnicodeToUpper and InternalAsciiToUpper are internal functions,
so they are substituted by public functions AsciiCharToUpper and CharToUpper.
And their implements are removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1369

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbSupportString.c

index 8495af99002e8b4d7a0b329a5098e619fcc40f82..1f90ab02de194fd9c54f7b2e3487cda60760dd79 100644 (file)
@@ -307,37 +307,6 @@ AsciiAtoi (
   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
@@ -390,12 +359,12 @@ StriCmp (
   )\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
@@ -418,12 +387,12 @@ StriCmpUnicodeAndAscii (
   )\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