Lines Matching defs:fmt

1 /* Defines String::ucompose(fmt, arg...) for easy, i18n-friendly
55 explicit Composition(std::string fmt);
182 inline Composition::Composition(std::string fmt)
197 while (i < fmt.length()) {
198 if (fmt[i] == '%' && i + 1 < fmt.length()) {
199 if (fmt[i + 1] == '%') { // catch %%
200 fmt.replace(i, 2, "%");
203 else if (is_number(fmt[i + 1])) { // aha! a spec!
205 output.push_back(fmt.substr(b, i - b));
211 spec_no += char_to_int(fmt[i + n]);
214 } while (i + n < fmt.length() && is_number(fmt[i + n]));
234 output.push_back(fmt.substr(b, i - b));
257 inline Glib::ustring ucompose(const Glib::ustring &fmt, const T1 &o1)
259 UStringPrivate::Composition c(fmt);
265 inline Glib::ustring ucompose(const Glib::ustring &fmt,
268 UStringPrivate::Composition c(fmt);
274 inline Glib::ustring ucompose(const Glib::ustring &fmt,
277 UStringPrivate::Composition c(fmt);
283 inline Glib::ustring ucompose(const Glib::ustring &fmt,
287 UStringPrivate::Composition c(fmt);
293 inline Glib::ustring ucompose(const Glib::ustring &fmt,
297 UStringPrivate::Composition c(fmt);
304 inline Glib::ustring ucompose(const Glib::ustring &fmt,
308 UStringPrivate::Composition c(fmt);
315 inline Glib::ustring ucompose(const Glib::ustring &fmt,
320 UStringPrivate::Composition c(fmt);
327 inline Glib::ustring ucompose(const Glib::ustring &fmt,
332 UStringPrivate::Composition c(fmt);
339 inline Glib::ustring ucompose(const Glib::ustring &fmt,
344 UStringPrivate::Composition c(fmt);
351 inline Glib::ustring ucompose(const Glib::ustring &fmt,
357 UStringPrivate::Composition c(fmt);
366 inline Glib::ustring ucompose(const Glib::ustring &fmt,
372 UStringPrivate::Composition c(fmt);
381 inline Glib::ustring ucompose(const Glib::ustring &fmt,
387 UStringPrivate::Composition c(fmt);
396 inline Glib::ustring ucompose(const Glib::ustring &fmt,
403 UStringPrivate::Composition c(fmt);
412 inline Glib::ustring ucompose(const Glib::ustring &fmt,
419 UStringPrivate::Composition c(fmt);
429 inline Glib::ustring ucompose(const Glib::ustring &fmt,
436 UStringPrivate::Composition c(fmt);