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.cpp208 size_t startPos = 0; in SplitString() local
210 while ((matchPos = s.find(c, startPos)) != std::string::npos) { in SplitString()
211 components->push_back(s.substr(startPos, matchPos - startPos)); in SplitString()
212 startPos = matchPos + 1; in SplitString()
215 if (startPos <= s.length()) { in SplitString()
216 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.cpp268 size_t startPos = 0; in getPackagePath() local
270 while ((dotPos = packageSuffix.find('.', startPos)) != std::string::npos) { in getPackagePath()
271 packagePath.append(packageSuffix.substr(startPos, dotPos - startPos)); in getPackagePath()
274 startPos = dotPos + 1; in getPackagePath()
276 CHECK_LT(startPos + 1, packageSuffix.length()); in getPackagePath()
277 packagePath.append(packageSuffix.substr(startPos)); in getPackagePath()