summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Library/UefiLib.h
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-06 15:19:20 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-06 15:19:20 +0000
commita73480f6f2e211947ac19ef049adcba6f50bb655 (patch)
tree1142c6c03237e760272c32e01e4e55f9b2093935 /MdePkg/Include/Library/UefiLib.h
parent04eced5b5281adee80dc108a963371e8424d30fc (diff)
downloadedk2-platforms-a73480f6f2e211947ac19ef049adcba6f50bb655.tar.xz
Enable Intel IPF compilation for MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3130 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Library/UefiLib.h')
-rw-r--r--MdePkg/Include/Library/UefiLib.h138
1 files changed, 138 insertions, 0 deletions
diff --git a/MdePkg/Include/Library/UefiLib.h b/MdePkg/Include/Library/UefiLib.h
index 7b247e063c..874ad1f8c9 100644
--- a/MdePkg/Include/Library/UefiLib.h
+++ b/MdePkg/Include/Library/UefiLib.h
@@ -357,6 +357,73 @@ LookupUnicodeString (
);
/**
+ This function looks up a Unicode string in UnicodeStringTable.
+ If Language is a member of SupportedLanguages and a Unicode
+ string is found in UnicodeStringTable that matches the
+ language code specified by Language, then it is returned in
+ UnicodeString.
+
+ @param Language A pointer to the ISO 639-2 or
+ RFC 3066 language code for the
+ Unicode string to look up and
+ return.
+
+ @param SupportedLanguages A pointer to the set of ISO
+ 639-2 or RFC 3066 language
+ codes that the Unicode string
+ table supports. Language must
+ be a member of this set.
+
+ @param UnicodeStringTable A pointer to the table of
+ Unicode strings.
+
+ @param UnicodeString A pointer to the Unicode
+ string from UnicodeStringTable
+ that matches the language
+ specified by Language.
+
+ @param Iso639Language Specify the language code
+ format supported. If true,
+ then the format follow ISO
+ 639-2. If false, then it
+ follows RFC3066.
+
+ @retval EFI_SUCCESS The Unicode string that
+ matches the language specified
+ by Language was found in the
+ table of Unicoide strings
+ UnicodeStringTable, and it was
+ returned in UnicodeString.
+
+ @retval EFI_INVALID_PARAMETER Language is NULL.
+
+ @retval EFI_INVALID_PARAMETER UnicodeString is NULL.
+
+ @retval EFI_UNSUPPORTED SupportedLanguages is NULL.
+
+ @retval EFI_UNSUPPORTED UnicodeStringTable is NULL.
+
+ @retval EFI_UNSUPPORTED The language specified by
+ Language is not a member
+ ofSupportedLanguages.
+
+ @retval EFI_UNSUPPORTED The language specified by
+ Language is not supported by
+ UnicodeStringTable.
+
+**/
+EFI_STATUS
+EFIAPI
+LookupUnicodeString2 (
+ IN CONST CHAR8 *Language,
+ IN CONST CHAR8 *SupportedLanguages,
+ IN CONST EFI_UNICODE_STRING_TABLE *UnicodeStringTable,
+ OUT CHAR16 **UnicodeString,
+ IN BOOLEAN Iso639Language
+ )
+;
+
+/**
This function adds a Unicode string to UnicodeStringTable.
If Language is a member of SupportedLanguages then UnicodeString is added to
UnicodeStringTable. New buffers are allocated for both Language and
@@ -398,6 +465,77 @@ AddUnicodeString (
);
/**
+
+ This function adds a Unicode string to UnicodeStringTable.
+ If Language is a member of SupportedLanguages then
+ UnicodeString is added to UnicodeStringTable. New buffers are
+ allocated for both Language and UnicodeString. The contents
+ of Language and UnicodeString are copied into these new
+ buffers. These buffers are automatically freed when
+ FreeUnicodeStringTable() is called.
+
+ @param Language A pointer to the ISO 639-2 or
+ RFC 3066 language code for the
+ Unicode string to add.
+
+ @param SupportedLanguages A pointer to the set of ISO
+ 639-2 or RFC 3.66 language
+ codes that the Unicode string
+ table supports. Language must
+ be a member of this set.
+
+ @param UnicodeStringTable A pointer to the table of
+ Unicode strings.
+
+ @param UnicodeString A pointer to the Unicode
+ string to add.
+
+ @param Iso639Language Specify the language code
+ format supported. If true,
+ then the format follow ISO
+ 639-2. If false, then it
+ follows RFC3066.
+
+ @retval EFI_SUCCESS The Unicode string that
+ matches the language specified
+ by Language was found in the
+ table of Unicode strings
+ UnicodeStringTable, and it was
+ returned in UnicodeString.
+
+ @retval EFI_INVALID_PARAMETER Language is NULL.
+
+ @retval EFI_INVALID_PARAMETER UnicodeString is NULL.
+
+ @retval EFI_INVALID_PARAMETER UnicodeString is an empty string.
+
+ @retval EFI_UNSUPPORTED SupportedLanguages is NULL.
+
+ @retval EFI_ALREADY_STARTED A Unicode string with language
+ Language is already present in
+ UnicodeStringTable.
+
+ @retval EFI_OUT_OF_RESOURCES There is not enough memory to
+ add another Unicode string to
+ UnicodeStringTable.
+
+ @retval EFI_UNSUPPORTED The language specified by
+ Language is not a member of
+ SupportedLanguages.
+
+**/
+EFI_STATUS
+EFIAPI
+AddUnicodeString2 (
+ IN CONST CHAR8 *Language,
+ IN CONST CHAR8 *SupportedLanguages,
+ IN EFI_UNICODE_STRING_TABLE **UnicodeStringTable,
+ IN CONST CHAR16 *UnicodeString,
+ IN BOOLEAN Iso639Language
+ )
+;
+
+/**
This function frees the table of Unicode strings in UnicodeStringTable.
If UnicodeStringTable is NULL, then EFI_SUCCESS is returned.
Otherwise, each language code, and each Unicode string in the Unicode string