]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
1) Add BufToHexString, HexStringToBuf and IsHexDigit to BaseLib.
[mirror_edk2.git] / MdeModulePkg / Universal / HiiDatabaseDxe / ConfigRouting.c
index 15a55d794ae68477691f8bda74cfbcc0f62c981e..3f35ed9005e27405399beb58e09ae6da29bdc13e 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2007, Intel Corporation\r
+Copyright (c) 2007 - 2008, Intel Corporation\r
 All rights reserved. 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
@@ -92,7 +92,7 @@ HexStringToBufPrivate (
   //\r
   // Find out how many hex characters the string has.\r
   //\r
-  for (Idx = 0, HexCnt = 0; R8_IsHexDigit (&Digit, Str[Idx]); Idx++, HexCnt++);\r
+  for (Idx = 0, HexCnt = 0; IsHexDigit (&Digit, Str[Idx]); Idx++, HexCnt++);\r
 \r
   if (HexCnt == 0) {\r
     *Len = 0;\r
@@ -115,7 +115,7 @@ HexStringToBufPrivate (
 \r
   for (Idx = 0; Idx < HexCnt; Idx++) {\r
 \r
-    R8_IsHexDigit (&Digit, Str[Idx]);\r
+    IsHexDigit (&Digit, Str[Idx]);\r
 \r
     //\r
     // For odd charaters, write the lower nibble for each buffer byte,\r
@@ -765,7 +765,7 @@ GetValueOfNumber (
     goto Exit;\r
   }\r
 \r
-  Status = R8_HexStringToBuf (Buf, &Length, Str, NULL);\r
+  Status = HexStringToBuf (Buf, &Length, Str, NULL);\r
   if (EFI_ERROR (Status)) {\r
     goto Exit;\r
   }\r
@@ -1607,7 +1607,7 @@ HiiBlockToConfig (
       goto Exit;\r
     }\r
 \r
-    Status = R8_BufToHexString (ValueStr, &Length, Value, Width);\r
+    Status = BufToHexString (ValueStr, &Length, Value, Width);\r
     ASSERT_EFI_ERROR (Status);\r
     SafeFreePool (Value);\r
     Value = NULL;\r
@@ -2114,3 +2114,4 @@ Exit:
 \r
 }\r
 \r
+\r