Lines Matching refs:found
67 size_t found;
69 found = line.find_first_of(delimiters, base);
70 if (found != base) {
71 std::string word = (*func) (line.substr(base, found - base));
76 if (found == line.npos) break;
77 base = found + 1;
212 auto found = line->find_first_of(cut);
213 if (found == std::string::npos) {
218 std::string head = line->substr(0, found);
219 while(line->at(found) == cut) found++; // trim more cut of the rest
220 line->assign(line->substr(found));
289 fprintf(stderr, "Field '%s' not found", field);
311 uint64_t found = mFields[name];
313 switch ((found & FIELD_COUNT_MASK) | (found & FIELD_TYPE_MASK)) {
316 proto->write(found, toDouble(value));
320 proto->write(found, value);
327 proto->write(found, toLongLong(value));
331 proto->write(found, true);
335 proto->write(found, false);
343 proto->write(found, mEnums[name][value]);
345 proto->write(found, 0); // TODO: should get the default enum value (Unknown)
348 proto->write(found, mEnumValuesByName[value]);
350 proto->write(found, toInt(value));
360 proto->write(found, toInt(value));
366 proto->write(found, toInt(repeats[i]));
372 proto->write(found, repeats[i]);
408 // If the field name can be found, it means the name is a primitive field.