Home
last modified time | relevance | path

Searched refs:CompareLength (Results 1 – 13 of 13) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/BdsDxe/
DLanguage.c53 UINTN CompareLength; in IsLangInSupportedLangCodes() local
57 CompareLength = ISO_639_2_ENTRY_SIZE; in IsLangInSupportedLangCodes()
58 for (Index = 0; Index < AsciiStrLen (SupportedLang); Index += CompareLength) { in IsLangInSupportedLangCodes()
59 if (AsciiStrnCmp (Lang, SupportedLang + Index, CompareLength) == 0) { in IsLangInSupportedLangCodes()
73 for (; *SupportedLang != '\0'; SupportedLang += CompareLength) { in IsLangInSupportedLangCodes()
81 …for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';… in IsLangInSupportedLangCodes()
83 if ((CompareLength == LanguageLength) && in IsLangInSupportedLangCodes()
84 (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) { in IsLangInSupportedLangCodes()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/
DLanguage.c349 UINTN CompareLength; in IsLangInSupportedLangCodes() local
353 CompareLength = ISO_639_2_ENTRY_SIZE; in IsLangInSupportedLangCodes()
354 for (Index = 0; Index < AsciiStrLen (SupportedLang); Index += CompareLength) { in IsLangInSupportedLangCodes()
355 if (AsciiStrnCmp (Lang, SupportedLang + Index, CompareLength) == 0) { in IsLangInSupportedLangCodes()
369 for (; *SupportedLang != '\0'; SupportedLang += CompareLength) { in IsLangInSupportedLangCodes()
377 …for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';… in IsLangInSupportedLangCodes()
379 if ((CompareLength == LanguageLength) && in IsLangInSupportedLangCodes()
380 (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) { in IsLangInSupportedLangCodes()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/
DEmuVariable.c405 UINTN CompareLength; in GetIndexFromSupportedLangCodes() local
409 CompareLength = ISO_639_2_ENTRY_SIZE; in GetIndexFromSupportedLangCodes()
410 for (Index = 0; Index < AsciiStrLen (SupportedLang); Index += CompareLength) { in GetIndexFromSupportedLangCodes()
411 if (AsciiStrnCmp (Lang, SupportedLang + Index, CompareLength) == 0) { in GetIndexFromSupportedLangCodes()
415 Index = Index / CompareLength; in GetIndexFromSupportedLangCodes()
428 for (Index = 0; *SupportedLang != '\0'; Index++, SupportedLang += CompareLength) { in GetIndexFromSupportedLangCodes()
436 …for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';… in GetIndexFromSupportedLangCodes()
438 if ((CompareLength == LanguageLength) && in GetIndexFromSupportedLangCodes()
439 (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) { in GetIndexFromSupportedLangCodes()
485 UINTN CompareLength; in GetLangFromSupportedLangCodes() local
[all …]
/device/linaro/bootloader/edk2/DuetPkg/FSVariable/
DFSVariable.c592 UINTN CompareLength; in GetIndexFromSupportedLangCodes() local
596 CompareLength = ISO_639_2_ENTRY_SIZE; in GetIndexFromSupportedLangCodes()
597 for (Index = 0; Index < AsciiStrLen (SupportedLang); Index += CompareLength) { in GetIndexFromSupportedLangCodes()
598 if (AsciiStrnCmp (Lang, SupportedLang + Index, CompareLength) == 0) { in GetIndexFromSupportedLangCodes()
602 Index = Index / CompareLength; in GetIndexFromSupportedLangCodes()
615 for (Index = 0; *SupportedLang != '\0'; Index++, SupportedLang += CompareLength) { in GetIndexFromSupportedLangCodes()
623 …for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';… in GetIndexFromSupportedLangCodes()
625 if ((CompareLength == LanguageLength) && in GetIndexFromSupportedLangCodes()
626 (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) { in GetIndexFromSupportedLangCodes()
672 UINTN CompareLength; in GetLangFromSupportedLangCodes() local
[all …]
/device/linaro/bootloader/edk2/EmulatorPkg/MiscSubClassPlatformDxe/
DMiscNumberOfInstallableLanguagesFunction.c41 UINTN CompareLength; in CurrentLanguageMatch() local
61 CompareLength = AsciiStrLen (BestLanguage); in CurrentLanguageMatch()
68 …if ((EndMatchLang == MatchLang + CompareLength) && AsciiStrnCmp(MatchLang, BestLanguage, CompareLe… in CurrentLanguageMatch()
/device/linaro/bootloader/edk2/Nt32Pkg/MiscSubClassPlatformDxe/
DMiscNumberOfInstallableLanguagesFunction.c39 UINTN CompareLength; in CurrentLanguageMatch() local
59 CompareLength = AsciiStrLen (BestLanguage); in CurrentLanguageMatch()
66 …if ((EndMatchLang == MatchLang + CompareLength) && AsciiStrnCmp(MatchLang, BestLanguage, CompareLe… in CurrentLanguageMatch()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/SmBiosMiscDxe/
DMiscNumberOfInstallableLanguagesFunction.c64 UINTN CompareLength; in CurrentLanguageMatch()
84 CompareLength = AsciiStrLen (BestLanguage); in CurrentLanguageMatch()
91 …if ((EndMatchLang == MatchLang + CompareLength) && AsciiStrnCmp(MatchLang, BestLanguage, CompareLe… in CurrentLanguageMatch()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Dxe/SmbiosMiscDxe/
DMiscNumberOfInstallableLanguagesFunction.c46 UINTN CompareLength; in CurrentLanguageMatch() local
69 CompareLength = AsciiStrLen (BestLanguage); in CurrentLanguageMatch()
76 …if ((EndMatchLang == MatchLang + CompareLength) && AsciiStrnCmp(MatchLang, BestLanguage, CompareLe… in CurrentLanguageMatch()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DVariable.c1333 UINTN CompareLength; in GetIndexFromSupportedLangCodes() local
1337 CompareLength = ISO_639_2_ENTRY_SIZE; in GetIndexFromSupportedLangCodes()
1338 for (Index = 0; Index < AsciiStrLen (SupportedLang); Index += CompareLength) { in GetIndexFromSupportedLangCodes()
1339 if (AsciiStrnCmp (Lang, SupportedLang + Index, CompareLength) == 0) { in GetIndexFromSupportedLangCodes()
1343 Index = Index / CompareLength; in GetIndexFromSupportedLangCodes()
1356 for (Index = 0; *SupportedLang != '\0'; Index++, SupportedLang += CompareLength) { in GetIndexFromSupportedLangCodes()
1364 …for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';… in GetIndexFromSupportedLangCodes()
1366 if ((CompareLength == LanguageLength) && in GetIndexFromSupportedLangCodes()
1367 (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) { in GetIndexFromSupportedLangCodes()
1417 UINTN CompareLength; in GetLangFromSupportedLangCodes() local
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/FrameworkUefiLib/
DUefiLib.c1332 UINTN CompareLength; in GetBestLanguage() local
1344 CompareLength = 3; in GetBestLanguage()
1361 for (Supported = SupportedLanguages; *Supported != '\0'; Supported += CompareLength) { in GetBestLanguage()
1373 …for (CompareLength = 0; Supported[CompareLength] != 0 && Supported[CompareLength] != ';'; CompareL… in GetBestLanguage()
1377 if (LanguageLength > CompareLength) { in GetBestLanguage()
1389 BestLanguage = AllocateZeroPool (CompareLength + 1); in GetBestLanguage()
1393 return CopyMem (BestLanguage, Supported, CompareLength); in GetBestLanguage()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiLib/
DUefiLib.c1462 UINTN CompareLength; in GetBestLanguage() local
1474 CompareLength = 3; in GetBestLanguage()
1491 for (Supported = SupportedLanguages; *Supported != '\0'; Supported += CompareLength) { in GetBestLanguage()
1503 …for (CompareLength = 0; Supported[CompareLength] != 0 && Supported[CompareLength] != ';'; CompareL… in GetBestLanguage()
1507 if (LanguageLength > CompareLength) { in GetBestLanguage()
1519 BestLanguage = AllocateZeroPool (CompareLength + 1); in GetBestLanguage()
1523 return CopyMem (BestLanguage, Supported, CompareLength); in GetBestLanguage()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariable.c1404 UINTN CompareLength; in GetIndexFromSupportedLangCodes() local
1408 CompareLength = ISO_639_2_ENTRY_SIZE; in GetIndexFromSupportedLangCodes()
1409 for (Index = 0; Index < AsciiStrLen (SupportedLang); Index += CompareLength) { in GetIndexFromSupportedLangCodes()
1410 if (AsciiStrnCmp (Lang, SupportedLang + Index, CompareLength) == 0) { in GetIndexFromSupportedLangCodes()
1414 Index = Index / CompareLength; in GetIndexFromSupportedLangCodes()
1427 for (Index = 0; *SupportedLang != '\0'; Index++, SupportedLang += CompareLength) { in GetIndexFromSupportedLangCodes()
1435 …for (CompareLength = 0; SupportedLang[CompareLength] != '\0' && SupportedLang[CompareLength] != ';… in GetIndexFromSupportedLangCodes()
1437 if ((CompareLength == LanguageLength) && in GetIndexFromSupportedLangCodes()
1438 (AsciiStrnCmp (Lang, SupportedLang, CompareLength) == 0)) { in GetIndexFromSupportedLangCodes()
1484 UINTN CompareLength; in GetLangFromSupportedLangCodes() local
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/
DVfrUtilityLib.cpp3211 UINTN CompareLength; in GetBestLanguage() local
3231 for (Supported = SupportedLanguages; *Supported != '\0'; Supported += CompareLength) { in GetBestLanguage()
3239 …for (CompareLength = 0; Supported[CompareLength] != 0 && Supported[CompareLength] != ';'; CompareL… in GetBestLanguage()
3243 if (LanguageLength > CompareLength) { in GetBestLanguage()