Home
last modified time | relevance | path

Searched refs:spec_pos (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/gallium/frontends/clover/core/
Dprintf.cpp66 const size_t spec_pos = util_printf_next_spec_pos(format.c_str(), fmt_pos); in print_formatted() local
67 const size_t cur_tok = format.rfind('%', spec_pos); in print_formatted()
68 const size_t next_spec = util_printf_next_spec_pos(format.c_str(), spec_pos); in print_formatted()
83 print_str = format.substr(cur_tok, spec_pos + 1 - cur_tok); in print_formatted()
90 if (spec_pos != std::string::npos && valid_str) { in print_formatted()
92 vec_pos + 1 < spec_pos; in print_formatted()
93 bool is_string = format[spec_pos] == 's'; in print_formatted()
95 .find(format[spec_pos]) != std::string::npos; in print_formatted()
109 size_t l = std::min(mod_pos, spec_pos) - vec_pos - 1; in print_formatted()
119 print_str.erase(vec_pos - cur_tok, std::min(mod_pos, spec_pos) - vec_pos); in print_formatted()
[all …]
/third_party/mesa3d/src/util/
Du_printf.c62 char *spec_pos = strpbrk(str_found, "cdieEfFgGaAosuxXp%"); in util_printf_next_spec_pos() local
63 if (spec_pos == NULL) { in util_printf_next_spec_pos()
65 } else if (*spec_pos == '%') { in util_printf_next_spec_pos()
66 str_found = spec_pos; in util_printf_next_spec_pos()
68 return spec_pos - str; in util_printf_next_spec_pos()