54 IN EFI_STRING_ID StringId OPTIONAL,
56 IN CONST CHAR8 *SupportedLanguages OPTIONAL
60 CHAR8 *AllocatedLanguages;
64 ASSERT (HiiHandle !=
NULL);
65 ASSERT (String !=
NULL);
67 if (SupportedLanguages ==
NULL) {
82 if (AllocatedLanguages ==
NULL) {
83 return (EFI_STRING_ID)(0);
86 Status = EFI_INVALID_PARAMETER;
90 for (Supported = AllocatedLanguages; *Supported !=
'\0'; ) {
99 for ( ; *Supported != 0 && *Supported !=
';'; Supported++) {
102 if (*Supported != 0) {
103 *(Supported++) =
'\0';
116 if (StringId == (EFI_STRING_ID)(0)) {
125 if (EFI_ERROR (Status)) {
135 if (EFI_ERROR (Status)) {
136 return (EFI_STRING_ID)(0);
173 IN EFI_STRING_ID StringId,
174 IN CONST CHAR8 *Language OPTIONAL
180 ASSERT (PackageListGuid !=
NULL);
183 if (HiiHandleBuffer ==
NULL) {
187 HiiHandle = HiiHandleBuffer[0];
213 IN EFI_STRING_ID StringId,
214 IN CONST CHAR8 *Language OPTIONAL
257 IN EFI_STRING_ID StringId,
258 IN CONST CHAR8 *Language OPTIONAL,
259 IN BOOLEAN TryBestLanguage
266 CHAR8 *SupportedLanguages;
267 CHAR8 *PlatformLanguage;
270 ASSERT (HiiHandle !=
NULL);
271 ASSERT (StringId != 0);
275 ASSERT (!(!TryBestLanguage && Language ==
NULL));
279 SupportedLanguages =
NULL;
280 PlatformLanguage =
NULL;
288 if (SupportedLanguages ==
NULL) {
301 if (Language ==
NULL) {
305 if (TryBestLanguage) {
313 PlatformLanguage !=
NULL ? PlatformLanguage :
"",
317 if (BestLanguage ==
NULL) {
321 BestLanguage = (CHAR8 *)Language;
343 if (Status != EFI_BUFFER_TOO_SMALL) {
351 if (String ==
NULL) {
367 if (EFI_ERROR (Status)) {
379 if (SupportedLanguages !=
NULL) {
383 if (PlatformLanguage !=
NULL) {
387 if (TryBestLanguage && (BestLanguage !=
NULL)) {
UINTN EFIAPI AsciiStrLen(IN CONST CHAR8 *String)
INTN EFIAPI AsciiStrnCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString, IN UINTN Length)
UINTN EFIAPI AsciiStrSize(IN CONST CHAR8 *String)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocateCopyPool(IN UINTN AllocationSize, IN CONST VOID *Buffer)
EFI_HII_HANDLE *EFIAPI HiiGetHiiHandles(IN CONST EFI_GUID *PackageListGuid OPTIONAL)
CHAR8 *EFIAPI HiiGetSupportedLanguages(IN EFI_HII_HANDLE HiiHandle)
EFI_STRING EFIAPI HiiGetStringEx(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId, IN CONST CHAR8 *Language OPTIONAL, IN BOOLEAN TryBestLanguage)
EFI_STRING EFIAPI HiiGetString(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId, IN CONST CHAR8 *Language OPTIONAL)
EFI_STRING EFIAPI HiiGetPackageString(IN CONST EFI_GUID *PackageListGuid, IN EFI_STRING_ID StringId, IN CONST CHAR8 *Language OPTIONAL)
EFI_STRING_ID EFIAPI HiiSetString(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId OPTIONAL, IN CONST EFI_STRING String, IN CONST CHAR8 *SupportedLanguages OPTIONAL)
EFI_HII_STRING_PROTOCOL * gHiiString
EFI_STATUS EFIAPI GetEfiGlobalVariable2(IN CONST CHAR16 *Name, OUT VOID **Value, OUT UINTN *Size OPTIONAL)
CHAR8 *EFIAPI GetBestLanguage(IN CONST CHAR8 *SupportedLanguages, IN UINTN Iso639Language,...)