]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/UnicodeCollationEng.h
1163d7a7221e088cafa7b5aaa87ce3b59038a926
[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 // The package level header files this module uses
30 //
31 #include <Uefi.h>
32
33 //
34 // The protocols, PPI and GUID defintions for this module
35 //
36 #include <Protocol/UnicodeCollation.h>
37 //
38 // The Library classes this module consumes
39 //
40 #include <Library/DebugLib.h>
41 #include <Library/UefiDriverEntryPoint.h>
42 #include <Library/UefiBootServicesTableLib.h>
43
44 //
45 // Defines
46 //
47 #define CHAR_FAT_VALID 0x01
48
49 #define ToUpper(a) (CHAR16) (a <= 0xFF ? mEngUpperMap[a] : a)
50 #define ToLower(a) (CHAR16) (a <= 0xFF ? mEngLowerMap[a] : a)
51
52 //
53 // Prototypes
54 //
55 INTN
56 EFIAPI
57 EngStriColl (
58 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
59 IN CHAR16 *s1,
60 IN CHAR16 *s2
61 )
62 ;
63
64 BOOLEAN
65 EFIAPI
66 EngMetaiMatch (
67 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
68 IN CHAR16 *String,
69 IN CHAR16 *Pattern
70 )
71 ;
72
73 VOID
74 EFIAPI
75 EngStrLwr (
76 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
77 IN OUT CHAR16 *Str
78 )
79 ;
80
81 VOID
82 EFIAPI
83 EngStrUpr (
84 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
85 IN OUT CHAR16 *Str
86 )
87 ;
88
89 VOID
90 EFIAPI
91 EngFatToStr (
92 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
93 IN UINTN FatSize,
94 IN CHAR8 *Fat,
95 OUT CHAR16 *String
96 )
97 ;
98
99 BOOLEAN
100 EFIAPI
101 EngStrToFat (
102 IN EFI_UNICODE_COLLATION_PROTOCOL *This,
103 IN CHAR16 *String,
104 IN UINTN FatSize,
105 OUT CHAR8 *Fat
106 )
107 ;
108
109 EFI_STATUS
110 EFIAPI
111 InitializeUnicodeCollationEng (
112 IN EFI_HANDLE ImageHandle,
113 IN EFI_SYSTEM_TABLE *SystemTable
114 )
115 ;
116
117 #endif