]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.h
cdab4090c7329ecdb5d048820c8a0d34f1f24108
[mirror_edk2.git] / MdeModulePkg / Universal / Disk / UnicodeCollation / EnglishDxe / UnicodeCollationEng.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 UnicodeCollationEng.h
15
16 Abstract:
17
18 Head file for Unicode Collation Protocol (English)
19
20 Revision History
21
22 --*/
23
24 #ifndef _UNICODE_COLLATION_ENG_H
25 #define _UNICODE_COLLATION_ENG_H
26
27
28
29 #include <Uefi.h>
30
31
32 #include <Protocol/UnicodeCollation.h>
33
34 #include <Library/DebugLib.h>
35 #include <Library/UefiDriverEntryPoint.h>
36 #include <Library/UefiBootServicesTableLib.h>
37
38 //
39 // Defines
40 //
41 #define CHAR_FAT_VALID 0x01
42
43 #define ToUpper(a) (CHAR16) (a <= 0xFF ? mEngUpperMap[a] : a)
44 #define ToLower(a) (CHAR16) (a <= 0xFF ? mEngLowerMap[a] : a)
45
46 //
47 // Prototypes
48 //
49 INTN
50 EFIAPI
51 EngStriColl (
52 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
53 IN CHAR16 *s1,
54 IN CHAR16 *s2
55 )
56 ;
57
58 BOOLEAN
59 EFIAPI
60 EngMetaiMatch (
61 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
62 IN CHAR16 *String,
63 IN CHAR16 *Pattern
64 )
65 ;
66
67 VOID
68 EFIAPI
69 EngStrLwr (
70 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
71 IN OUT CHAR16 *Str
72 )
73 ;
74
75 VOID
76 EFIAPI
77 EngStrUpr (
78 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
79 IN OUT CHAR16 *Str
80 )
81 ;
82
83 VOID
84 EFIAPI
85 EngFatToStr (
86 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
87 IN UINTN FatSize,
88 IN CHAR8 *Fat,
89 OUT CHAR16 *String
90 )
91 ;
92
93 BOOLEAN
94 EFIAPI
95 EngStrToFat (
96 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
97 IN CHAR16 *String,
98 IN UINTN FatSize,
99 OUT CHAR8 *Fat
100 )
101 ;
102
103 EFI_STATUS
104 EFIAPI
105 InitializeUnicodeCollationEng (
106 IN EFI_HANDLE ImageHandle,
107 IN EFI_SYSTEM_TABLE *SystemTable
108 )
109 ;
110
111 #endif