Lines Matching refs:str
98 inline std::string_view StripTrailingNulls(std::string_view str) { in StripTrailingNulls() argument
100 for (auto it = str.rbegin(); it != str.rend(); ++it) { in StripTrailingNulls()
107 str.remove_suffix(n); in StripTrailingNulls()
108 return str; in StripTrailingNulls()
113 inline bool ParseUint(T* result, std::string_view str, std::string_view* remaining = nullptr) {
114 if (str.empty() || !isdigit(str[0])) {
121 for (it = str.begin(); it != str.end() && isdigit(*it); ++it) {
137 *remaining = str.substr(it - str.begin());
139 return it == str.end();
145 inline bool ConsumePrefix(std::string_view* str, std::string_view prefix) { in ConsumePrefix() argument
146 if (str->starts_with(prefix)) { in ConsumePrefix()
147 str->remove_prefix(prefix.size()); in ConsumePrefix()