diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-22 00:58:21 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-22 00:58:21 +0000 |
commit | 6fd5fbe3ec4ac0852b276f37127603c198df57af (patch) | |
tree | 10ac89b034e5c8f1f28853551f46d0a851dfc67f | |
parent | 57d6f36db6c38d96e3faed6c0ecfff9fa442822b (diff) | |
download | edk2-6fd5fbe3ec4ac0852b276f37127603c198df57af.zip edk2-6fd5fbe3ec4ac0852b276f37127603c198df57af.tar.gz edk2-6fd5fbe3ec4ac0852b276f37127603c198df57af.tar.bz2 |
Add in ConvertIso639LanguageToRfc3066Language API.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5267 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Include/Library/HiiLib.h | 37 |
1 files changed, 35 insertions, 2 deletions
diff --git a/MdePkg/Include/Library/HiiLib.h b/MdePkg/Include/Library/HiiLib.h index 199a5ec..30c1fe0 100644 --- a/MdePkg/Include/Library/HiiLib.h +++ b/MdePkg/Include/Library/HiiLib.h @@ -409,6 +409,12 @@ HiiLibGetSupportedLanguageNumber ( /**
Convert language code from RFC3066 to ISO639-2.
+ LanguageRfc3066 contain a single RFC 3066 code such as
+ "en-US" or "fr-FR".
+
+ The LanguageRfc3066 must be a buffer large enough
+ for ISO_639_2_ENTRY_SIZE characters.
+
If LanguageRfc3066 is NULL, then ASSERT.
If LanguageIso639 is NULL, then ASSERT.
@@ -422,8 +428,35 @@ HiiLibGetSupportedLanguageNumber ( EFI_STATUS
EFIAPI
ConvertRfc3066LanguageToIso639Language (
- CHAR8 *LanguageRfc3066,
- CHAR8 *LanguageIso639
+ IN CHAR8 *LanguageRfc3066,
+ OUT CHAR8 *LanguageIso639
+ )
+;
+
+/**
+ Convert language code from ISO639-2 to RFC3066.
+
+ LanguageIso639 contain a single ISO639-2 code such as
+ "eng" or "fra".
+
+ The LanguageRfc3066 must be a buffer large enough
+ for RFC_3066_ENTRY_SIZE characters.
+
+ If LanguageIso639 is NULL, then ASSERT.
+ If LanguageRfc3066 is NULL, then ASSERT.
+
+ @param LanguageIso639 ISO639-2 language code.
+ @param LanguageRfc3066 RFC3066 language code.
+
+ @retval EFI_SUCCESS Language code converted.
+ @retval EFI_NOT_FOUND Language code not found.
+
+**/
+EFI_STATUS
+EFIAPI
+ConvertIso639LanguageToRfc3066Language (
+ IN CONST CHAR8 *LanguageIso639,
+ OUT CHAR8 *LanguageRfc3066
)
;
|