TianoCore EDK2 master
Loading...
Searching...
No Matches
UnicodeCollationEng.h
Go to the documentation of this file.
1
9#ifndef _UNICODE_COLLATION_ENG_H_
10#define _UNICODE_COLLATION_ENG_H_
11
12#include <Uefi.h>
13
15
16#include <Library/DebugLib.h>
19#include <Library/PcdLib.h>
20
21//
22// Bit mask to indicate the validity of character in FAT file name.
23//
24#define CHAR_FAT_VALID 0x01
25
26//
27// Maximum FAT table size.
28//
29#define MAP_TABLE_SIZE 0x100
30
31//
32// Macro to map character a to upper case.
33//
34#define TO_UPPER(a) (CHAR16) ((a) <= 0xFF ? mEngUpperMap[a] : (a))
35
36//
37// Macro to map character a to lower case.
38//
39#define TO_LOWER(a) (CHAR16) ((a) <= 0xFF ? mEngLowerMap[a] : (a))
40
41//
42// Prototypes
43//
44
57INTN
58EFIAPI
61 IN CHAR16 *Str1,
62 IN CHAR16 *Str2
63 );
64
77BOOLEAN
78EFIAPI
81 IN CHAR16 *String,
82 IN CHAR16 *Pattern
83 );
84
93VOID
94EFIAPI
97 IN OUT CHAR16 *Str
98 );
99
108VOID
109EFIAPI
110EngStrUpr (
112 IN OUT CHAR16 *Str
113 );
114
126VOID
127EFIAPI
130 IN UINTN FatSize,
131 IN CHAR8 *Fat,
132 OUT CHAR16 *String
133 );
134
150BOOLEAN
151EFIAPI
154 IN CHAR16 *String,
155 IN UINTN FatSize,
156 OUT CHAR8 *Fat
157 );
158
173EFIAPI
175 IN EFI_HANDLE ImageHandle,
176 IN EFI_SYSTEM_TABLE *SystemTable
177 );
178
179#endif
UINT64 UINTN
INT64 INTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
BOOLEAN EFIAPI EngStrToFat(IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN CHAR16 *String, IN UINTN FatSize, OUT CHAR8 *Fat)
VOID EFIAPI EngStrLwr(IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN OUT CHAR16 *Str)
VOID EFIAPI EngFatToStr(IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN UINTN FatSize, IN CHAR8 *Fat, OUT CHAR16 *String)
EFI_STATUS EFIAPI InitializeUnicodeCollationEng(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
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)
INTN EFIAPI EngStriColl(IN EFI_UNICODE_COLLATION_PROTOCOL *This, IN CHAR16 *Str1, IN CHAR16 *Str2)