Lines Matching refs:pos
60 CString::size_type pos(0);
61 while ((pos = str.find(oldValue, pos)) != CString::npos) {
62 str.replace(pos, oldValue.length(), newValue);
63 pos += newValue.length();
74 CString::size_type pos(0);
75 if ((pos = str.find(oldValue, pos)) != CString::npos) {
76 str.replace(pos, oldValue.length(), newValue);
123 static inline size_t Find(const std::string &thisStr, const std::string &searchStr, int32_t pos)
125 size_t idx = thisStr.find(searchStr, pos);
129 static inline size_t Find(const std::u16string &thisStr, const std::u16string &searchStr, int32_t pos)
131 size_t idx = thisStr.find(searchStr, pos);
135 static inline size_t RFind(const std::u16string &thisStr, const std::u16string &searchStr, int32_t pos)
137 size_t idx = thisStr.rfind(searchStr, pos);
391 std::size_t pos = str.find_first_of(delimiter, strIndex);
392 while ((pos < str.size()) && (pos > strIndex)) {
393 std::string subStr = str.substr(strIndex, pos - strIndex);
395 strIndex = pos;
397 pos = str.find_first_of(delimiter, strIndex);
399 if (pos > strIndex) {
400 std::string subStr = str.substr(strIndex, pos - strIndex);
444 size_t pos = 0;
446 while ((pos = str.find(c, left)) != CString::npos) {
450 out.emplace_back(str.substr(left, pos - left));
451 left = pos + 1;