Lines Matching refs:String
167 IN CONST CHAR16 *String in StrLen() argument
172 ASSERT (String != NULL); in StrLen()
173 ASSERT (((UINTN) String & BIT0) == 0); in StrLen()
175 for (Length = 0; *String != L'\0'; String++, Length++) { in StrLen()
208 IN CONST CHAR16 *String in StrSize() argument
211 return (StrLen (String) + 1) * sizeof (*String); in StrSize()
474 IN CONST CHAR16 *String, in StrStr() argument
485 ASSERT (StrSize (String) != 0); in StrStr()
489 return (CHAR16 *) String; in StrStr()
492 while (*String != L'\0') { in StrStr()
494 FirstMatch = String; in StrStr()
496 while ((*String == *SearchStringTmp) in StrStr()
497 && (*String != L'\0')) { in StrStr()
498 String++; in StrStr()
506 if (*String == L'\0') { in StrStr()
510 String = FirstMatch + 1; in StrStr()
655 IN CONST CHAR16 *String in StrDecimalToUintn() argument
664 ASSERT (StrSize (String) != 0); in StrDecimalToUintn()
669 while ((*String == L' ') || (*String == L'\t')) { in StrDecimalToUintn()
670 String++; in StrDecimalToUintn()
676 while (*String == L'0') { in StrDecimalToUintn()
677 String++; in StrDecimalToUintn()
682 while (InternalIsDecimalDigitCharacter (*String)) { in StrDecimalToUintn()
687 ASSERT (Result <= ((((UINTN) ~0) - (*String - L'0')) / 10)); in StrDecimalToUintn()
689 Result = Result * 10 + (*String - L'0'); in StrDecimalToUintn()
690 String++; in StrDecimalToUintn()
734 IN CONST CHAR16 *String in StrDecimalToUint64() argument
743 ASSERT (StrSize (String) != 0); in StrDecimalToUint64()
748 while ((*String == L' ') || (*String == L'\t')) { in StrDecimalToUint64()
749 String++; in StrDecimalToUint64()
755 while (*String == L'0') { in StrDecimalToUint64()
756 String++; in StrDecimalToUint64()
761 while (InternalIsDecimalDigitCharacter (*String)) { in StrDecimalToUint64()
766 ASSERT (Result <= DivU64x32 (((UINT64) ~0) - (*String - L'0') , 10)); in StrDecimalToUint64()
768 Result = MultU64x32 (Result, 10) + (*String - L'0'); in StrDecimalToUint64()
769 String++; in StrDecimalToUint64()
813 IN CONST CHAR16 *String in StrHexToUintn() argument
822 ASSERT (StrSize (String) != 0); in StrHexToUintn()
827 while ((*String == L' ') || (*String == L'\t')) { in StrHexToUintn()
828 String++; in StrHexToUintn()
834 while (*String == L'0') { in StrHexToUintn()
835 String++; in StrHexToUintn()
838 if (InternalCharToUpper (*String) == L'X') { in StrHexToUintn()
839 if (*(String - 1) != L'0') { in StrHexToUintn()
845 String++; in StrHexToUintn()
850 while (InternalIsHexaDecimalDigitCharacter (*String)) { in StrHexToUintn()
855 ASSERT (Result <= ((((UINTN) ~0) - InternalHexCharToUintn (*String)) >> 4)); in StrHexToUintn()
857 Result = (Result << 4) + InternalHexCharToUintn (*String); in StrHexToUintn()
858 String++; in StrHexToUintn()
903 IN CONST CHAR16 *String in StrHexToUint64() argument
912 ASSERT (StrSize (String) != 0); in StrHexToUint64()
917 while ((*String == L' ') || (*String == L'\t')) { in StrHexToUint64()
918 String++; in StrHexToUint64()
924 while (*String == L'0') { in StrHexToUint64()
925 String++; in StrHexToUint64()
928 if (InternalCharToUpper (*String) == L'X') { in StrHexToUint64()
929 ASSERT (*(String - 1) == L'0'); in StrHexToUint64()
930 if (*(String - 1) != L'0') { in StrHexToUint64()
936 String++; in StrHexToUint64()
941 while (InternalIsHexaDecimalDigitCharacter (*String)) { in StrHexToUint64()
946 ASSERT (Result <= RShiftU64 (((UINT64) ~0) - InternalHexCharToUintn (*String) , 4)); in StrHexToUint64()
949 Result = Result + InternalHexCharToUintn (*String); in StrHexToUint64()
950 String++; in StrHexToUint64()
1227 IN CONST CHAR8 *String in AsciiStrLen() argument
1232 ASSERT (String != NULL); in AsciiStrLen()
1234 for (Length = 0; *String != '\0'; String++, Length++) { in AsciiStrLen()
1266 IN CONST CHAR8 *String in AsciiStrSize() argument
1269 return (AsciiStrLen (String) + 1) * sizeof (*String); in AsciiStrSize()
1624 IN CONST CHAR8 *String, in AsciiStrStr() argument
1634 ASSERT (AsciiStrSize (String) != 0); in AsciiStrStr()
1638 return (CHAR8 *) String; in AsciiStrStr()
1641 while (*String != '\0') { in AsciiStrStr()
1643 FirstMatch = String; in AsciiStrStr()
1645 while ((*String == *SearchStringTmp) in AsciiStrStr()
1646 && (*String != '\0')) { in AsciiStrStr()
1647 String++; in AsciiStrStr()
1655 if (*String == '\0') { in AsciiStrStr()
1659 String = FirstMatch + 1; in AsciiStrStr()
1698 IN CONST CHAR8 *String in AsciiStrDecimalToUintn() argument
1706 ASSERT (AsciiStrSize (String) != 0); in AsciiStrDecimalToUintn()
1711 while ((*String == ' ') || (*String == '\t' )) { in AsciiStrDecimalToUintn()
1712 String++; in AsciiStrDecimalToUintn()
1718 while (*String == '0') { in AsciiStrDecimalToUintn()
1719 String++; in AsciiStrDecimalToUintn()
1724 while (InternalAsciiIsDecimalDigitCharacter (*String)) { in AsciiStrDecimalToUintn()
1729 ASSERT (Result <= ((((UINTN) ~0) - (*String - L'0')) / 10)); in AsciiStrDecimalToUintn()
1731 Result = Result * 10 + (*String - '0'); in AsciiStrDecimalToUintn()
1732 String++; in AsciiStrDecimalToUintn()
1772 IN CONST CHAR8 *String in AsciiStrDecimalToUint64() argument
1780 ASSERT (AsciiStrSize (String) != 0); in AsciiStrDecimalToUint64()
1785 while ((*String == ' ') || (*String == '\t' )) { in AsciiStrDecimalToUint64()
1786 String++; in AsciiStrDecimalToUint64()
1792 while (*String == '0') { in AsciiStrDecimalToUint64()
1793 String++; in AsciiStrDecimalToUint64()
1798 while (InternalAsciiIsDecimalDigitCharacter (*String)) { in AsciiStrDecimalToUint64()
1803 ASSERT (Result <= DivU64x32 (((UINT64) ~0) - (*String - L'0') , 10)); in AsciiStrDecimalToUint64()
1805 Result = MultU64x32 (Result, 10) + (*String - '0'); in AsciiStrDecimalToUint64()
1806 String++; in AsciiStrDecimalToUint64()
1849 IN CONST CHAR8 *String in AsciiStrHexToUintn() argument
1857 ASSERT (AsciiStrSize (String) != 0); in AsciiStrHexToUintn()
1862 while ((*String == ' ') || (*String == '\t' )) { in AsciiStrHexToUintn()
1863 String++; in AsciiStrHexToUintn()
1869 while (*String == '0') { in AsciiStrHexToUintn()
1870 String++; in AsciiStrHexToUintn()
1873 if (InternalBaseLibAsciiToUpper (*String) == 'X') { in AsciiStrHexToUintn()
1874 ASSERT (*(String - 1) == '0'); in AsciiStrHexToUintn()
1875 if (*(String - 1) != '0') { in AsciiStrHexToUintn()
1881 String++; in AsciiStrHexToUintn()
1886 while (InternalAsciiIsHexaDecimalDigitCharacter (*String)) { in AsciiStrHexToUintn()
1891 ASSERT (Result <= ((((UINTN) ~0) - InternalHexCharToUintn (*String)) >> 4)); in AsciiStrHexToUintn()
1893 Result = (Result << 4) + InternalAsciiHexCharToUintn (*String); in AsciiStrHexToUintn()
1894 String++; in AsciiStrHexToUintn()
1938 IN CONST CHAR8 *String in AsciiStrHexToUint64() argument
1946 ASSERT (AsciiStrSize (String) != 0); in AsciiStrHexToUint64()
1954 while ((*String == ' ') || (*String == '\t' )) { in AsciiStrHexToUint64()
1955 String++; in AsciiStrHexToUint64()
1961 while (*String == '0') { in AsciiStrHexToUint64()
1962 String++; in AsciiStrHexToUint64()
1965 if (InternalBaseLibAsciiToUpper (*String) == 'X') { in AsciiStrHexToUint64()
1966 ASSERT (*(String - 1) == '0'); in AsciiStrHexToUint64()
1967 if (*(String - 1) != '0') { in AsciiStrHexToUint64()
1973 String++; in AsciiStrHexToUint64()
1978 while (InternalAsciiIsHexaDecimalDigitCharacter (*String)) { in AsciiStrHexToUint64()
1983 ASSERT (Result <= RShiftU64 (((UINT64) ~0) - InternalHexCharToUintn (*String) , 4)); in AsciiStrHexToUint64()
1986 Result = Result + InternalAsciiHexCharToUintn (*String); in AsciiStrHexToUint64()
1987 String++; in AsciiStrHexToUint64()