3
Copyright (c) 1998 Intel Corporation
28
return RtStrCmp(s1, s2);
49
return len ? *s1 - *s2 : 0;
55
IN EFI_UNICODE_COLLATION_INTERFACE *This,
60
return StrCmp (s1, s2);
65
IN EFI_UNICODE_COLLATION_INTERFACE *This,
78
return UnicodeInterface->StriColl(UnicodeInterface, s1, s2);
87
UnicodeInterface->StrLwr(UnicodeInterface, Str);
96
UnicodeInterface->StrUpr(UnicodeInterface, Str);
106
RtStrCpy (Dest, Src);
133
return RtStrSize(s1);
140
// duplicate a string
146
Dest = AllocatePool (Size);
148
CopyMem (Dest, Src, Size);
161
for (len=0; *s1; s1+=1, len+=1) ;
202
return len ? *s1 - *s2 : 0;
211
// convert hex string to uint
216
// skip preceeding white space
217
while (*str && *str == ' ') {
221
// convert hex digits
223
while ((c = *(str++))) {
224
if (c >= 'a' && c <= 'f') {
228
if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'F')) {
229
u = (u << 4) | (c - (c >= 'A' ? 'A'-10 : '0'));
242
// convert hex string to uint
247
// skip preceeding white space
248
while (*str && *str == ' ') {
254
while ((c = *(str++))) {
255
if (c >= '0' && c <= '9') {
256
u = (u * 10) + c - '0';
279
// End of pattern. If end of string, TRUE match
280
return *String ? FALSE : TRUE;
283
// Match zero or more chars
285
if (MetaMatch (String, Pattern)) {
290
return MetaMatch (String, Pattern);
293
// Match any one char
304
return FALSE; // syntax problem
308
while ((p = *Pattern++)) {
313
if (p == '-') { // if range of chars,
314
p = *Pattern; // get high range
315
if (p == 0 || p == ']') {
316
return FALSE; // syntax problem
319
if (c >= l && c <= p) { // if in range,
320
break; // it's a match
325
if (c == p) { // if char matches
330
// skip to end of match char set
331
while (p && p != ']') {
354
IN EFI_UNICODE_COLLATION_INTERFACE *This,
359
return MetaMatch (String, Pattern);
369
return UnicodeInterface->MetaiMatch(UnicodeInterface, String, Pattern);