30 MaxVal = (
UINTN)-1 >> 4;
34 while (*Str !=
'\0' && *Str ==
' ') {
41 while (*Str !=
'\0' && *Str ==
'0') {
48 if ((*Str !=
'\0') && ((*Str ==
'x') || (*Str ==
'X'))) {
57 while (TempChar !=
'\0') {
58 if ((TempChar >=
'a') && (TempChar <=
'f')) {
59 TempChar -=
'a' -
'A';
62 if (((TempChar >=
'0') && (TempChar <=
'9')) || ((TempChar >=
'A') && (TempChar <=
'F'))) {
63 if (RetVal > MaxVal) {
67 RetVal = (RetVal << 4) | (TempChar - (TempChar >=
'A' ?
'A' - 10 :
'0'));
101 while (*Str !=
'\0' && *Str ==
' ') {
108 while (*Str !=
'\0' && *Str ==
'0') {
115 if ((*Str !=
'\0') && ((*Str ==
'x') || (*Str ==
'X'))) {
124 while (TempChar !=
'\0') {
125 if ((TempChar >=
'a') && (TempChar <=
'f')) {
126 TempChar -=
'a' -
'A';
129 if (((TempChar >=
'0') && (TempChar <=
'9')) || ((TempChar >=
'A') && (TempChar <=
'F'))) {
130 if (RetVal > MaxVal) {
135 RetVal = RetVal + (TempChar - (TempChar >=
'A' ?
'A' - 10 :
'0'));
164 ASSERT (Str !=
NULL);
166 MaxVal = (
UINTN)-1 / 10;
167 ResteVal = (
UINTN)-1 % 10;
171 while (*Str !=
'\0' && *Str ==
' ') {
180 while (TempChar !=
'\0') {
181 if ((TempChar >=
'0') && (TempChar <=
'9')) {
182 if ((RetVal > MaxVal) || ((RetVal == MaxVal) && (TempChar -
'0' > (
INTN)ResteVal))) {
186 RetVal = (RetVal * 10) + TempChar -
'0';
214 ASSERT (Str !=
NULL);
216 MaxVal = (
UINTN)-1 >> 4;
220 while (*Str !=
'\0' && *Str ==
' ') {
227 while (*Str !=
'\0' && *Str ==
'0') {
234 if ((*Str !=
'\0') && ((*Str ==
'x') || (*Str ==
'X'))) {
243 while (TempChar !=
'\0') {
244 if ((TempChar >=
'a') && (TempChar <=
'f')) {
245 TempChar -=
'a' -
'A';
248 if (((TempChar >=
'0') && (TempChar <=
'9')) || ((TempChar >=
'A') && (TempChar <=
'F'))) {
249 if (RetVal > MaxVal) {
253 RetVal = (RetVal << 4) | (TempChar - (TempChar >=
'A' ?
'A' - 10 :
'0'));
282 ASSERT (Str !=
NULL);
284 MaxVal = (
UINTN)-1 / 10;
285 ResteVal = (
UINTN)-1 % 10;
289 while (*Str !=
'\0' && *Str ==
' ') {
298 while (TempChar !=
'\0') {
299 if ((TempChar >=
'0') && (TempChar <=
'9')) {
300 if ((RetVal > MaxVal) || ((RetVal == MaxVal) && (TempChar -
'0' > (
INTN)ResteVal))) {
304 RetVal = (RetVal * 10) + TempChar -
'0';
334 while (*String !=
'\0') {
335 if (*String != (CHAR16)*String2) {
343 return (*String - (CHAR16)*String2);
365 while ((*String != L
'\0') &&
394 while ((*String != L
'\0') &&
430 if (
StriCmp (Temp, SubStr) == 0) {
452 Size = (
StrLen (Src) + 1) *
sizeof (CHAR16);
461CHAR16 *mLineBuffer =
NULL;
462CHAR16 *mFieldBuffer =
NULL;
485 for (Str1 = String; *Str1 != L
'\0'; Str1++) {
486 for (Str2 = CharSet; *Str2 != L
'\0'; Str2++) {
487 if (*Str1 == *Str2) {
492 if (*Str2 == L
'\0') {
521 for (Str1 = String; *Str1 != L
'\0'; Str1++) {
522 for (Str2 = CharSet; *Str2 != L
'\0'; Str2++) {
523 if (*Str1 == *Str2) {
524 return (CHAR16 *)Str1;
543 IN CHAR16 *String OPTIONAL,
550 Begin = (String ==
NULL) ? mLineBuffer : String;
555 Begin +=
StrSpn (Begin, CharSet);
556 if (*Begin == L
'\0') {
561 End =
StrBrk (Begin, CharSet);
562 if ((End !=
NULL) && (*End != L
'\0')) {
582 IN CHAR16 *String OPTIONAL,
589 Begin = (String ==
NULL) ? mFieldBuffer : String;
594 if (*Begin == L
'\0') {
599 End =
StrBrk (Begin, CharSet);
600 if ((End !=
NULL) && (*End != L
'\0')) {
694 if (Buffer ==
NULL) {
705 while (*(Str++) !=
'\0') {
732 if (Buffer ==
NULL) {
737 while (*(Str--) !=
'\0') {
738 if ((*Str == 0) || (*Str == Patch)) {
748CHAR8 *mAsciiLineBuffer =
NULL;
749CHAR8 *mAsciiFieldBuffer =
NULL;
772 for (Str1 = String; *Str1 !=
'\0'; Str1++) {
773 for (Str2 = CharSet; *Str2 !=
'\0'; Str2++) {
774 if (*Str1 == *Str2) {
807 for (Str1 = String; *Str1 !=
'\0'; Str1++) {
808 for (Str2 = CharSet; *Str2 !=
'\0'; Str2++) {
809 if (*Str1 == *Str2) {
810 return (CHAR8 *)Str1;
829 IN CHAR8 *String OPTIONAL,
836 Begin = (String ==
NULL) ? mAsciiLineBuffer : String;
842 if (*Begin ==
'\0') {
843 mAsciiLineBuffer =
NULL;
848 if ((End !=
NULL) && (*End !=
'\0')) {
853 mAsciiLineBuffer = End;
868 IN CHAR8 *String OPTIONAL,
875 Begin = (String ==
NULL) ? mAsciiFieldBuffer : String;
880 if (*Begin ==
'\0') {
881 mAsciiFieldBuffer =
NULL;
886 if ((End !=
NULL) && (*End !=
'\0')) {
891 mAsciiFieldBuffer = End;
980 if (Buffer ==
NULL) {
991 while (*(Str++) !=
'\0') {
1018 if (Buffer ==
NULL) {
1023 while (*(Str--) !=
'\0') {
1024 if ((*Str == 0) || (*Str == Patch)) {
CHAR16 EFIAPI CharToUpper(IN CHAR16 Char)
UINT64 EFIAPI RShiftU64(IN UINT64 Operand, IN UINTN Count)
UINT64 EFIAPI LShiftU64(IN UINT64 Operand, IN UINTN Count)
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
CHAR8 EFIAPI AsciiCharToUpper(IN CHAR8 Chr)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID EFIAPI PatchForAsciiStrTokenAfter(IN CHAR8 *Buffer, IN CHAR8 Patch)
CHAR8 *EFIAPI AsciiStrGetNewTokenLine(IN CHAR8 *String, IN CHAR8 *CharSet)
CHAR8 *EFIAPI AsciiStrTokenField(IN CHAR8 *String OPTIONAL, IN CHAR8 *CharSet)
UINTN EFIAPI AsciiAtoi(CHAR8 *Str)
VOID EFIAPI PatchForAsciiStrTokenBefore(IN CHAR8 *Buffer, IN CHAR8 Patch)
BOOLEAN EFIAPI StrEndWith(IN CHAR16 *Str, IN CHAR16 *SubStr)
CHAR16 *EFIAPI StrBrk(IN CHAR16 *String, IN CHAR16 *CharSet)
CHAR16 *EFIAPI StrTokenLine(IN CHAR16 *String OPTIONAL, IN CHAR16 *CharSet)
VOID EFIAPI PatchForStrTokenAfter(IN CHAR16 *Buffer, IN CHAR16 Patch)
CHAR16 *EFIAPI StrGetNewTokenLine(IN CHAR16 *String, IN CHAR16 *CharSet)
UINTN EFIAPI Xtoi(CHAR16 *Str)
CHAR16 *EFIAPI StrGetNewTokenField(IN CHAR16 *String, IN CHAR16 *CharSet)
UINTN EFIAPI StrSpn(IN CHAR16 *String, IN CHAR16 *CharSet)
CHAR16 *EFIAPI StrGetNextTokenLine(IN CHAR16 *CharSet)
CHAR8 *EFIAPI AsciiStrBrk(IN CHAR8 *String, IN CHAR8 *CharSet)
CHAR16 *EFIAPI StrTokenField(IN CHAR16 *String OPTIONAL, IN CHAR16 *CharSet)
CHAR16 *EFIAPI StrDuplicate(IN CHAR16 *Src)
UINTN EFIAPI Atoi(CHAR16 *Str)
UINTN EFIAPI AsciiStrSpn(IN CHAR8 *String, IN CHAR8 *CharSet)
UINT64 EFIAPI LXtoi(CHAR16 *Str)
UINTN EFIAPI AsciiXtoi(CHAR8 *Str)
INTN EFIAPI StriCmpUnicodeAndAscii(IN CHAR16 *String, IN CHAR8 *String2)
INTN EFIAPI StrCmpUnicodeAndAscii(IN CHAR16 *String, IN CHAR8 *String2)
VOID EFIAPI PatchForStrTokenBefore(IN CHAR16 *Buffer, IN CHAR16 Patch)
CHAR8 *EFIAPI AsciiStrTokenLine(IN CHAR8 *String OPTIONAL, IN CHAR8 *CharSet)
CHAR8 *EFIAPI AsciiStrGetNextTokenLine(IN CHAR8 *CharSet)
CHAR8 *EFIAPI AsciiStrGetNextTokenField(IN CHAR8 *CharSet)
CHAR8 *EFIAPI AsciiStrGetNewTokenField(IN CHAR8 *String, IN CHAR8 *CharSet)
CHAR16 *EFIAPI StrGetNextTokenField(IN CHAR16 *CharSet)
INTN EFIAPI StriCmp(IN CHAR16 *String, IN CHAR16 *String2)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)