Lines Matching refs:token
33 std::string_view token = p; in ValidateHexInteger() local
34 token.remove_prefix(2U); in ValidateHexInteger()
36 for (auto i : token) { in ValidateHexInteger()
47 std::string_view token = p; in ValidateBinInteger() local
48 token.remove_prefix(2U); in ValidateBinInteger()
49 if (token.empty()) { in ValidateBinInteger()
52 for (auto i : token) { in ValidateBinInteger()
63 std::string_view token = p; in ValidateOctalInteger() local
64 token.remove_prefix(1); in ValidateOctalInteger()
66 for (auto i : token) { in ValidateOctalInteger()
77 std::string_view token = p; in ValidateInteger() local
79 if (token.back() == '-' || token.back() == '+' || token.back() == 'x' || token == ".") { in ValidateInteger()
83 if (token[0] == '-' || token[0] == '+') { in ValidateInteger()
84 token.remove_prefix(1); in ValidateInteger()
87 if (token[0] == '0' && token.size() > 1 && token.find('.') == std::string::npos) { in ValidateInteger()
88 if (token[1] == 'x') { in ValidateInteger()
89 return ValidateHexInteger(token); in ValidateInteger()
92 if (token[1] == 'b') { in ValidateInteger()
93 return ValidateBinInteger(token); in ValidateInteger()
96 if (token[1] >= '0' && token[1] <= '9' && token.find('e') == std::string::npos) { in ValidateInteger()
97 return ValidateOctalInteger(token); in ValidateInteger()
101 for (auto i : token) { in ValidateInteger()
142 std::string_view token = p; in ValidateFloat() local
144 if (ValidateInteger(token)) { in ValidateFloat()
148 if (token[0] == '-' || token[0] == '+') { in ValidateFloat()
149 token.remove_prefix(1); in ValidateFloat()
156 for (auto i : token) { in ValidateFloat()