Lines Matching refs:str
32 bool JsonHelper::IsFastValueToQuotedString(const CString& str)
34 for (const auto ch : str) {
59 void JsonHelper::AppendValueToQuotedString(const CString& str, CString& output)
62 bool isFast = IsFastValueToQuotedString(str); // fast mode
64 output += str;
68 for (uint32_t i = 0; i < str.size(); ++i) {
69 auto ch = str[i];
97 if (i + 2 < str.size() && // 2: Check 2 more characters
98 str[i + 1] >= ALONE_SURROGATE_3B_SECOND_START && // 1: The first character after ch
99 str[i + 1] <= ALONE_SURROGATE_3B_SECOND_END && // 1: The first character after ch
100 str[i + 2] >= ALONE_SURROGATE_3B_THIRD_START && // 2: The second character after ch
101 str[i + 2] <= ALONE_SURROGATE_3B_THIRD_END) { // 2: The second character after ch
103 reinterpret_cast<const uint8_t*>(str.c_str() + i), 3); // 3: Parse 3 characters