OpenCore
1.0.4
OpenCore Bootloader
|
#include "OcUnicodeCollationEngInternal.h"
Go to the source code of this file.
Functions | |
VOID | OcUnicodeCollationUpdatePlatformLanguage (VOID) |
VOID | OcUnicodeCollationInitializeMappingTables (VOID) |
INTN EFIAPI | EngStriColl (IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN CHAR16 *Str1, IN CHAR16 *Str2) |
VOID EFIAPI | EngStrLwr (IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN OUT CHAR16 *Str) |
VOID EFIAPI | EngStrUpr (IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN OUT CHAR16 *Str) |
BOOLEAN EFIAPI | EngMetaiMatch (IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN CHAR16 *String, IN CHAR16 *Pattern) |
VOID EFIAPI | EngFatToStr (IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN UINTN FatSize, IN CHAR8 *Fat, OUT CHAR16 *String) |
BOOLEAN EFIAPI | EngStrToFat (IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN CHAR16 *String, IN UINTN FatSize, OUT CHAR8 *Fat) |
Variables | |
CHAR8 | mEngUpperMap [MAP_TABLE_SIZE] |
CHAR8 | mEngLowerMap [MAP_TABLE_SIZE] |
CHAR8 | mEngInfoMap [MAP_TABLE_SIZE] |
CHAR8 | mOtherChars [] |
STATIC CHAR8 | UnicodeLanguages [6] = "en" |
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_COLLATION_PROTOCOL | gInternalUnicode2Eng |
Driver to implement English version of Unicode Collation Protocol.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file OcUnicodeCollationEngCommon.c.
VOID EFIAPI EngFatToStr | ( | IN EFI_UNICODE_COLLATION_PROTOCOL * | This, |
IN UINTN | FatSize, | ||
IN CHAR8 * | Fat, | ||
OUT CHAR16 * | String ) |
Converts an 8.3 FAT file name in an OEM character set to a Null-terminated string.
This | Protocol instance pointer. |
FatSize | The size of the string Fat in bytes. |
Fat | A pointer to a Null-terminated string that contains an 8.3 file name using an 8-bit OEM character set. |
String | A pointer to a Null-terminated string. The string must be preallocated to hold FatSize characters. |
Definition at line 408 of file OcUnicodeCollationEngCommon.c.
BOOLEAN EFIAPI EngMetaiMatch | ( | IN EFI_UNICODE_COLLATION_PROTOCOL * | This, |
IN CHAR16 * | String, | ||
IN CHAR16 * | Pattern ) |
Performs a case-insensitive comparison of a Null-terminated pattern string and a Null-terminated string.
This | Protocol instance pointer. |
String | A pointer to a Null-terminated string. |
Pattern | A pointer to a Null-terminated pattern string. |
TRUE | Pattern was found in String. |
FALSE | Pattern was not found in String. |
Definition at line 272 of file OcUnicodeCollationEngCommon.c.
INTN EFIAPI EngStriColl | ( | IN EFI_UNICODE_COLLATION_PROTOCOL * | This, |
IN CHAR16 * | Str1, | ||
IN CHAR16 * | Str2 ) |
Performs a case-insensitive comparison of two Null-terminated strings.
This | Protocol instance pointer. |
Str1 | A pointer to a Null-terminated string. |
Str2 | A pointer to a Null-terminated string. |
0 | Str1 is equivalent to Str2 |
> | 0 Str1 is lexically greater than Str2 |
< | 0 Str1 is lexically less than Str2 |
Definition at line 198 of file OcUnicodeCollationEngCommon.c.
VOID EFIAPI EngStrLwr | ( | IN EFI_UNICODE_COLLATION_PROTOCOL * | This, |
IN OUT CHAR16 * | Str ) |
Converts all the characters in a Null-terminated string to lower case characters.
This | Protocol instance pointer. |
Str | A pointer to a Null-terminated string. |
Definition at line 226 of file OcUnicodeCollationEngCommon.c.
BOOLEAN EFIAPI EngStrToFat | ( | IN EFI_UNICODE_COLLATION_PROTOCOL * | This, |
IN CHAR16 * | String, | ||
IN UINTN | FatSize, | ||
OUT CHAR8 * | Fat ) |
Converts a Null-terminated string to legal characters in a FAT filename using an OEM character set.
This | Protocol instance pointer. |
String | A pointer to a Null-terminated string. The string must be preallocated to hold FatSize characters. |
FatSize | The size of the string Fat in bytes. |
Fat | A pointer to a Null-terminated string that contains an 8.3 file name using an OEM character set. |
TRUE | Fat is a Long File Name |
FALSE | Fat is an 8.3 file name |
Definition at line 445 of file OcUnicodeCollationEngCommon.c.
VOID EFIAPI EngStrUpr | ( | IN EFI_UNICODE_COLLATION_PROTOCOL * | This, |
IN OUT CHAR16 * | Str ) |
Converts all the characters in a Null-terminated string to upper case characters.
This | Protocol instance pointer. |
Str | A pointer to a Null-terminated string. |
Definition at line 247 of file OcUnicodeCollationEngCommon.c.
VOID OcUnicodeCollationInitializeMappingTables | ( | VOID | ) |
Initializes mapping tables for the protocol.
Definition at line 153 of file OcUnicodeCollationEngCommon.c.
VOID OcUnicodeCollationUpdatePlatformLanguage | ( | VOID | ) |
Sets EFI_PLATFORM_LANG_VARIABLE_NAME when it is missing and ensures that our installed protocol supports the language obtained from the existing EFI_PLATFORM_LANG_VARIABLE_NAME.
Definition at line 66 of file OcUnicodeCollationEngCommon.c.
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_COLLATION_PROTOCOL gInternalUnicode2Eng |
Unicode collation instance.
Definition at line 55 of file OcUnicodeCollationEngCommon.c.
CHAR8 mEngInfoMap[MAP_TABLE_SIZE] |
Definition at line 13 of file OcUnicodeCollationEngCommon.c.
CHAR8 mEngLowerMap[MAP_TABLE_SIZE] |
Definition at line 12 of file OcUnicodeCollationEngCommon.c.
CHAR8 mEngUpperMap[MAP_TABLE_SIZE] |
Definition at line 11 of file OcUnicodeCollationEngCommon.c.
CHAR8 mOtherChars[] |
Definition at line 15 of file OcUnicodeCollationEngCommon.c.
STATIC CHAR8 UnicodeLanguages[6] = "en" |
Definition at line 50 of file OcUnicodeCollationEngCommon.c.