TianoCore EDK2 master
|
#include "Fat.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | InitializeUnicodeCollationSupportWorker (IN EFI_HANDLE AgentHandle, IN EFI_GUID *ProtocolGuid, IN CONST CHAR16 *VariableName, IN CONST CHAR8 *DefaultLanguage) |
EFI_STATUS | InitializeUnicodeCollationSupport (IN EFI_HANDLE AgentHandle) |
INTN | FatStriCmp (IN CHAR16 *S1, IN CHAR16 *S2) |
VOID | FatStrUpr (IN OUT CHAR16 *String) |
VOID | FatStrLwr (IN OUT CHAR16 *String) |
VOID | FatFatToStr (IN UINTN FatSize, IN CHAR8 *Fat, OUT CHAR16 *String) |
BOOLEAN | FatStrToFat (IN CHAR16 *String, IN UINTN FatSize, OUT CHAR8 *Fat) |
Variables | |
EFI_UNICODE_COLLATION_PROTOCOL * | mUnicodeCollationInterface = NULL |
Unicode Collation Support component that hides the trivial difference of Unicode Collation and Unicode collation 2 Protocol.
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UnicodeCollation.c.
Convert FAT string to unicode string.
FatSize | The size of FAT string. |
Fat | The FAT string. |
String | The unicode string. |
Definition at line 227 of file UnicodeCollation.c.
Performs a case-insensitive comparison of two Null-terminated Unicode strings.
S1 | A pointer to a Null-terminated Unicode string. |
S2 | A pointer to a Null-terminated Unicode string. |
0 | S1 is equivalent to S2. |
>0 | S1 is lexically greater than S2. |
<0 | S1 is lexically less than S2. |
Definition at line 164 of file UnicodeCollation.c.
Lowercase a string
String | The string which will be lower-cased. |
Definition at line 206 of file UnicodeCollation.c.
Convert unicode string to Fat string.
String | The unicode string. |
FatSize | The size of the FAT string. |
Fat | The FAT string. |
TRUE | Convert successfully. |
FALSE | Convert error. |
Definition at line 253 of file UnicodeCollation.c.
Uppercase a string.
String | The string which will be upper-cased. |
Definition at line 188 of file UnicodeCollation.c.
EFI_STATUS InitializeUnicodeCollationSupport | ( | IN EFI_HANDLE | AgentHandle | ) |
Initialize Unicode Collation support.
It tries to locate Unicode Collation 2 protocol and matches it with current platform language code. If for any reason the first attempt fails, it then tries to use Unicode Collation Protocol.
AgentHandle | The handle used to open Unicode Collation (2) protocol. |
EFI_SUCCESS | The Unicode Collation (2) protocol has been successfully located. |
Others | The Unicode Collation (2) protocol has not been located. |
Definition at line 120 of file UnicodeCollation.c.
EFI_STATUS InitializeUnicodeCollationSupportWorker | ( | IN EFI_HANDLE | AgentHandle, |
IN EFI_GUID * | ProtocolGuid, | ||
IN CONST CHAR16 * | VariableName, | ||
IN CONST CHAR8 * | DefaultLanguage | ||
) |
Worker function to initialize Unicode Collation support.
It tries to locate Unicode Collation (2) protocol and matches it with current platform language code.
AgentHandle | The handle used to open Unicode Collation (2) protocol. |
ProtocolGuid | The pointer to Unicode Collation (2) protocol GUID. |
VariableName | The name of the RFC 4646 or ISO 639-2 language variable. |
DefaultLanguage | The default language in case the RFC 4646 or ISO 639-2 language is absent. |
EFI_SUCCESS | The Unicode Collation (2) protocol has been successfully located. |
Others | The Unicode Collation (2) protocol has not been located. |
Definition at line 30 of file UnicodeCollation.c.
EFI_UNICODE_COLLATION_PROTOCOL* mUnicodeCollationInterface = NULL |
Definition at line 12 of file UnicodeCollation.c.