Lines Matching refs:end
44 const StringPiece::const_iterator end = std::end(str); in SplitAndTransform() local
48 current = std::find(start, end, sep); in SplitAndTransform()
52 std::transform(part.begin(), part.end(), part.begin(), f); in SplitAndTransform()
55 } while (current != end); in SplitAndTransform()
87 const char* end = start + str.length(); in TrimLeadingWhitespace() local
89 while (start != end && isspace(*start)) { in TrimLeadingWhitespace()
92 return StringPiece(start, end - start); in TrimLeadingWhitespace()
101 const char* end = start + str.length(); in TrimTrailingWhitespace() local
103 while (end != start && isspace(*(end - 1))) { in TrimTrailingWhitespace()
104 end--; in TrimTrailingWhitespace()
106 return StringPiece(start, end - start); in TrimTrailingWhitespace()
115 const char* end = str.data() + str.length(); in TrimWhitespace() local
117 while (start != end && isspace(*start)) { in TrimWhitespace()
121 while (end != start && isspace(*(end - 1))) { in TrimWhitespace()
122 end--; in TrimWhitespace()
125 return StringPiece(start, end - start); in TrimWhitespace()
159 bool valid = std::all_of(piece.begin() + 1, piece.end(), [](const char c) -> bool { in IsAndroidNameImpl()
223 static size_t ConsumeDigits(const char* start, const char* end) { in ConsumeDigits() argument
225 for (; c != end && *c >= '0' && *c <= '9'; c++) { in ConsumeDigits()
232 const char* const end = str.end(); in VerifyJavaStringFormat() local
236 while (c != end) { in VerifyJavaStringFormat()
237 if (*c == '%' && c + 1 < end) { in VerifyJavaStringFormat()
247 size_t num_digits = ConsumeDigits(c, end); in VerifyJavaStringFormat()
250 if (c != end && *c != '$') { in VerifyJavaStringFormat()
262 if (c != end && *c == '$') { in VerifyJavaStringFormat()
270 while (c != end && (*c == '-' || *c == '#' || *c == '+' || *c == ' ' || in VerifyJavaStringFormat()
287 if (c != end) { in VerifyJavaStringFormat()
305 if (c != end) { in VerifyJavaStringFormat()
468 const char* start = token_.end(); in operator ++()
469 const char* end = str_.end(); in operator ++() local
470 if (start == end) { in operator ++()
472 token_.assign(token_.end(), 0); in operator ++()
478 while (current != end) { in operator ++()
485 token_.assign(start, end - start); in operator ++()
493 token_.end() == rhs.token_.end() && end_ == rhs.end_; in operator ==()
500 Tokenizer::iterator::iterator(const StringPiece& s, char sep, const StringPiece& tok, bool end) in iterator() argument
501 : str_(s), separator_(sep), token_(tok), end_(end) {} in iterator()
505 end_(str, sep, StringPiece(str.end(), 0), true) {} in Tokenizer()
514 StringPiece::const_iterator last_occurence = path.end(); in ExtractResFilePathParts()
515 for (auto iter = path.begin() + res_prefix.size(); iter != path.end(); in ExtractResFilePathParts()
522 if (last_occurence == path.end()) { in ExtractResFilePathParts()
526 auto iter = std::find(last_occurence, path.end(), '.'); in ExtractResFilePathParts()
527 *out_suffix = StringPiece(iter, path.end() - iter); in ExtractResFilePathParts()