mirror of https://github.com/acidanthera/audk.git
Add in ConvertIso639LanguageToRfc3066Language API.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5267 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
57d6f36db6
commit
6fd5fbe3ec
|
@ -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
|
||||
)
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue