Home
last modified time | relevance | path

Searched refs:startPos (Results 1 – 4 of 4) sorted by relevance

/system/tools/hidl/utils/
DFormatter.cpp192 size_t startPos = matchPos + spaceLength; in output() local
193 while ((matchPos = text.find(mSpace, startPos)) in output()
195 newText.append(text.substr(startPos, matchPos - startPos)); in output()
196 startPos = matchPos + spaceLength; in output()
198 newText.append(text.substr(startPos)); in output()
DStringHelper.cpp224 size_t startPos = 0; in SplitString() local
226 while ((matchPos = s.find(c, startPos)) != std::string::npos) { in SplitString()
227 components->push_back(s.substr(startPos, matchPos - startPos)); in SplitString()
228 startPos = matchPos + 1; in SplitString()
231 if (startPos <= s.length()) { in SplitString()
232 components->push_back(s.substr(startPos)); in SplitString()
/system/libvintf/
Dparse_string.cpp34 size_t startPos = 0; in SplitString() local
36 while ((matchPos = s.find(c, startPos)) != std::string::npos) { in SplitString()
37 components.push_back(s.substr(startPos, matchPos - startPos)); in SplitString()
38 startPos = matchPos + 1; in SplitString()
41 if (startPos <= s.length()) { in SplitString()
42 components.push_back(s.substr(startPos)); in SplitString()
/system/tools/hidl/
DCoordinator.cpp254 size_t startPos = 0; in getPackagePath() local
256 while ((dotPos = packageSuffix.find('.', startPos)) != std::string::npos) { in getPackagePath()
257 packagePath.append(packageSuffix.substr(startPos, dotPos - startPos)); in getPackagePath()
260 startPos = dotPos + 1; in getPackagePath()
262 CHECK_LT(startPos + 1, packageSuffix.length()); in getPackagePath()
263 packagePath.append(packageSuffix.substr(startPos)); in getPackagePath()