]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Dxe/Include/EfiUiLib.h
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / Include / EfiUiLib.h
index 7cfeffe5fb66d80e03030ef16bcb6ea6855b81b5..946742cb17d19adbc163de8580e302b21a1c8a1f 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2010, 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
@@ -202,4 +202,33 @@ Returns:
 --*/\r
 ;\r
 \r
+EFI_STATUS\r
+EfiStringToValue (\r
+  OUT UINT64        *Val,\r
+  IN  CHAR16        *String,\r
+  OUT UINT8         *EndIdx OPTIONAL\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+  Parses and converts Unicode string to decimal value.\r
+  The returned value is 64-bit.\r
+  The string is expected in decimal format,\r
+  the string is parsed and format verified.\r
+\r
+Arguments:\r
+  Val    - pointer to the variable to store the value to\r
+  String - string that contains the value to parse and convert\r
+  EndIdx - index on which the parsing stopped. It points to the\r
+           first character that was not part of the returned Val.\r
+           It's valid only if the function returns success.\r
+           It's optional and it could be NULL.\r
+\r
+Returns:\r
+  EFI_SUCCESS           - if successful\r
+  EFI_INVALID_PARAMETER - if String is in unexpected format\r
+\r
+--*/\r
+;\r
+\r
 #endif\r