Lines Matching refs:Str
82 bool ParseOneDictionaryEntry(const std::string &Str, Unit *U) {
84 if (Str.empty()) return false;
85 size_t L = 0, R = Str.size() - 1; // We are parsing the range [L,R].
87 while (L < R && isspace(Str[L])) L++;
88 while (R > L && isspace(Str[R])) R--;
91 if (Str[R] != '"') return false;
94 while (L < R && Str[L] != '"') L++;
96 assert(Str[L] == '\"');
100 uint8_t V = (uint8_t)Str[Pos];
104 if (Pos + 1 <= R && (Str[Pos + 1] == '\\' || Str[Pos + 1] == '"')) {
105 U->push_back(Str[Pos + 1]);
110 if (Pos + 3 <= R && Str[Pos + 1] == 'x'
111 && isxdigit(Str[Pos + 2]) && isxdigit(Str[Pos + 3])) {
113 Hex[2] = Str[Pos + 2];
114 Hex[3] = Str[Pos + 3];