Home
last modified time | relevance | path

Searched refs:begin_index (Results 1 – 2 of 2) sorted by relevance

/third_party/gn/src/base/strings/
Dstring_split.cc133 for (size_type begin_index = 0, end_index = 0; end_index != Piece::npos; in SplitStringUsingSubstrT() local
134 begin_index = end_index + delimiter.size()) { in SplitStringUsingSubstrT()
135 end_index = input.find(delimiter, begin_index); in SplitStringUsingSubstrT()
137 ? input.substr(begin_index) in SplitStringUsingSubstrT()
138 : input.substr(begin_index, end_index - begin_index); in SplitStringUsingSubstrT()
/third_party/protobuf/src/google/protobuf/stubs/
Dstrutil.cc198 string::size_type begin_index, end_index; in SplitStringToIteratorUsing() local
199 begin_index = full.find_first_not_of(delim); in SplitStringToIteratorUsing()
200 while (begin_index != string::npos) { in SplitStringToIteratorUsing()
201 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorUsing()
203 *result++ = std::string(full.substr(begin_index)); in SplitStringToIteratorUsing()
207 std::string(full.substr(begin_index, (end_index - begin_index))); in SplitStringToIteratorUsing()
208 begin_index = full.find_first_not_of(delim, end_index); in SplitStringToIteratorUsing()
233 string::size_type begin_index, end_index; in SplitStringToIteratorAllowEmpty() local
234 begin_index = 0; in SplitStringToIteratorAllowEmpty()
237 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorAllowEmpty()
[all …]