Retire language conversion APIs from HII library class.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8104 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -268,73 +268,6 @@ HiiGetSupportedLanguages (
|
||||
)
|
||||
;
|
||||
|
||||
/**
|
||||
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.
|
||||
|
||||
@param LanguageRfc3066 RFC3066 language code.
|
||||
@param LanguageIso639 ISO639-2 language code.
|
||||
|
||||
@retval EFI_SUCCESS Language code converted.
|
||||
@retval EFI_NOT_FOUND Language code not found.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
ConvertRfc3066LanguageToIso639Language (
|
||||
IN CHAR8 *LanguageRfc3066,
|
||||
OUT CHAR8 *LanguageIso639
|
||||
)
|
||||
;
|
||||
|
||||
/**
|
||||
Convert language code from ISO639-2 to RFC3066 and return the converted language.
|
||||
Caller is responsible for freeing the allocated buffer.
|
||||
|
||||
LanguageIso639 contain a single ISO639-2 code such as
|
||||
"eng" or "fra".
|
||||
|
||||
If LanguageIso639 is NULL, then ASSERT.
|
||||
If LanguageRfc3066 is NULL, then ASSERT.
|
||||
|
||||
@param LanguageIso639 ISO639-2 language code.
|
||||
|
||||
@return the allocated buffer or NULL, if the language is not found.
|
||||
|
||||
**/
|
||||
CHAR8*
|
||||
EFIAPI
|
||||
ConvertIso639LanguageToRfc3066Language (
|
||||
IN CONST CHAR8 *LanguageIso639
|
||||
)
|
||||
;
|
||||
|
||||
/**
|
||||
Convert language code list from RFC3066 to ISO639-2, e.g. "en-US;fr-FR" will
|
||||
be converted to "engfra".
|
||||
|
||||
If SupportedLanguages is NULL, then ASSERT.
|
||||
|
||||
@param SupportedLanguages The RFC3066 language list.
|
||||
|
||||
@return The ISO639-2 language list.
|
||||
|
||||
**/
|
||||
CHAR8 *
|
||||
EFIAPI
|
||||
Rfc3066ToIso639 (
|
||||
CHAR8 *SupportedLanguages
|
||||
)
|
||||
;
|
||||
|
||||
/**
|
||||
Allocates and returns a Null-terminated Unicode <ConfigHdr> string using routing
|
||||
information that includes a GUID, an optional Unicode string name, and a device
|
||||
|
Reference in New Issue
Block a user