Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 46) sorted by relevance

12

/ndk/sources/android/support/src/musl-locale/
Dstrfmon.c8 static ssize_t vstrfmon_l(char *s, size_t n, locale_t loc, const char *fmt, va_list ap) in vstrfmon_l() argument
15 for (; n && *fmt; ) { in vstrfmon_l()
16 if (*fmt != '%') { in vstrfmon_l()
18 *s++ = *fmt++; in vstrfmon_l()
22 fmt++; in vstrfmon_l()
23 if (*fmt == '%') goto literal; in vstrfmon_l()
30 for (; ; fmt++) { in vstrfmon_l()
31 switch (*fmt) { in vstrfmon_l()
33 fill = *++fmt; in vstrfmon_l()
52 for (fw=0; isdigit(*fmt); fmt++) in vstrfmon_l()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.results/re.results.form/
Dform1.pass.cpp32 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
34 fmt, fmt + std::char_traits<char>::length(fmt)).base(); in main()
44 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
46 fmt, fmt + std::char_traits<char>::length(fmt), in main()
57 const char fmt[] = "match: &, m[1]: \\1, m[2]: \\2"; in main() local
59 fmt, fmt + std::char_traits<char>::length(fmt), in main()
71 const wchar_t fmt[] = L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
73 fmt, fmt + std::char_traits<wchar_t>::length(fmt)).base(); in main()
83 const wchar_t fmt[] = L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
85 fmt, fmt + std::char_traits<wchar_t>::length(fmt), in main()
[all …]
Dform4.pass.cpp30 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
31 std::string out = m.format(fmt); in main()
39 const char fmt[] = "prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
40 std::string out = m.format(fmt, std::regex_constants::format_sed); in main()
48 const char fmt[] = "match: &, m[1]: \\1, m[2]: \\2"; in main() local
49 std::string out = m.format(fmt, std::regex_constants::format_sed); in main()
58 const wchar_t fmt[] = L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
59 std::wstring out = m.format(fmt); in main()
67 const wchar_t fmt[] = L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"; in main() local
68 std::wstring out = m.format(fmt, std::regex_constants::format_sed); in main()
[all …]
Dform3.pass.cpp35 nstr fmt("prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
36 nstr out = m.format(fmt); in main()
44 nstr fmt("prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
45 nstr out = m.format(fmt, std::regex_constants::format_sed); in main()
53 nstr fmt("match: &, m[1]: \\1, m[2]: \\2"); in main() local
54 nstr out = m.format(fmt, std::regex_constants::format_sed); in main()
63 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
64 wstr out = m.format(fmt); in main()
72 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
73 wstr out = m.format(fmt, std::regex_constants::format_sed); in main()
[all …]
Dform2.pass.cpp37 nstr fmt("prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
38 char* r = m.format(output_iterator<char*>(out), fmt).base(); in main()
48 nstr fmt("prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
50 fmt, std::regex_constants::format_sed).base(); in main()
60 nstr fmt("match: &, m[1]: \\1, m[2]: \\2"); in main() local
62 fmt, std::regex_constants::format_sed).base(); in main()
73 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
74 wchar_t* r = m.format(output_iterator<wchar_t*>(out), fmt).base(); in main()
84 wstr fmt(L"prefix: $`, match: $&, suffix: $', m[1]: $1, m[2]: $2"); in main() local
86 fmt, std::regex_constants::format_sed).base(); in main()
[all …]
/ndk/sources/android/support/src/
Dlocale_support.c51 int vasprintf_l(char** strp, locale_t l, const char* fmt, va_list args) { in vasprintf_l() argument
53 return vasprintf(strp, fmt, args); in vasprintf_l()
56 int asprintf_l(char** strp, locale_t locale, const char* fmt, ...) { in asprintf_l() argument
58 va_start(args, fmt); in asprintf_l()
59 int result = vasprintf_l(strp, locale, fmt, args); in asprintf_l()
64 int vsprintf_l(char* str, locale_t l, const char* fmt, va_list args) { in vsprintf_l() argument
66 return vsprintf(str, fmt, args); in vsprintf_l()
69 int sprintf_l(char* str, locale_t l, const char* fmt, ...) { in sprintf_l() argument
71 va_start(args, fmt); in sprintf_l()
72 int result = vsprintf_l(str, l, fmt, args); in sprintf_l()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_many.pass.cpp42 const char fmt[] = "%Y %b %d, %I:%M%p"; in main() local
45 I i = f.get(I(in), I(in+sizeof(in)-1), ios, err, &t, fmt, fmt+sizeof(fmt)-1); in main()
56 const char fmt[] = "%I:%M%p %b %d, %Y"; in main() local
59 I i = f.get(I(in), I(in+sizeof(in)-1), ios, err, &t, fmt, fmt+sizeof(fmt)-1); in main()
/ndk/sources/android/support/src/musl-stdio/
Dwprintf.c5 int wprintf(const wchar_t *restrict fmt, ...) in wprintf() argument
9 va_start(ap, fmt); in wprintf()
10 ret = vwprintf(fmt, ap); in wprintf()
Dwscanf.c6 int wscanf(const wchar_t *restrict fmt, ...) in wscanf() argument
10 va_start(ap, fmt); in wscanf()
11 ret = vwscanf(fmt, ap); in wscanf()
Dswprintf.c5 int swprintf(wchar_t *restrict s, size_t n, const wchar_t *restrict fmt, ...) in swprintf() argument
9 va_start(ap, fmt); in swprintf()
10 ret = vswprintf(s, n, fmt, ap); in swprintf()
Dvwprintf.c4 int vwprintf(const wchar_t *restrict fmt, va_list ap) in vwprintf() argument
6 return vfwprintf(stdout, fmt, ap); in vwprintf()
Dvwscanf.c6 int vwscanf(const wchar_t *restrict fmt, va_list ap) in vwscanf() argument
8 return vfwscanf(stdin, fmt, ap); in vwscanf()
/ndk/sources/host-tools/make-3.81/
Dmisc.c191 message (int prefix, const char *fmt, ...) in message() argument
193 message (prefix, fmt, va_alist) in message()
195 const char *fmt;
205 if (fmt != 0)
214 VA_START (args, fmt);
215 VA_PRINTF (stdout, fmt, args);
227 error (const struct floc *flocp, const char *fmt, ...) in error() argument
229 error (flocp, fmt, va_alist) in error()
231 const char *fmt;
248 VA_START(args, fmt);
[all …]
Dmake.h401 extern void message (int prefix, const char *fmt, ...)
403 extern void error (const struct floc *flocp, const char *fmt, ...)
405 extern void fatal (const struct floc *flocp, const char *fmt, ...)
/ndk/sources/cxx-stl/stlport/src/
Dtime_facets.cpp465 const char * fmt = _Locale_d_fmt(time); in __get_date_order() local
468 while (*fmt != 0 && *fmt != '%') ++fmt; in __get_date_order()
469 if (*fmt == 0) in __get_date_order()
471 first = *++fmt; in __get_date_order()
472 while (*fmt != 0 && *fmt != '%') ++fmt; in __get_date_order()
473 if (*fmt == 0) in __get_date_order()
475 second = *++fmt; in __get_date_order()
476 while (*fmt != 0 && *fmt != '%') ++fmt; in __get_date_order()
477 if (*fmt == 0) in __get_date_order()
479 third = *++fmt; in __get_date_order()
/ndk/tests/device/test-stlport_shared-exception/jni/
Deh-vararg-1.cpp30 foo (const char *fmt, ...) throw (B,A) in foo() argument
38 va_start (arg, fmt); in foo()
Deh-vararg-2.cpp64 foo (const char *fmt, ...) in foo() argument
67 va_start (arg, fmt); in foo()
/ndk/tests/device/test-stlport_static-exception/jni/
Deh-vararg-1.cpp30 foo (const char *fmt, ...) throw (B,A) in foo() argument
38 va_start (arg, fmt); in foo()
Deh-vararg-2.cpp64 foo (const char *fmt, ...) in foo() argument
67 va_start (arg, fmt); in foo()
/ndk/sources/host-tools/sed-4.2.1/lib/
Dstrerror.c337 static char const fmt[] = "Unknown error (%d)"; in rpl_strerror() local
338 static char msg_buf[sizeof fmt + INT_STRLEN_BOUND (n)]; in rpl_strerror()
339 sprintf (msg_buf, fmt, n); in rpl_strerror()
/ndk/sources/host-tools/nawk-20071023/
Dlib.c497 void SYNTAX(const char *fmt, ...) in SYNTAX() argument
506 va_start(varg, fmt); in SYNTAX()
507 vfprintf(stderr, fmt, varg); in SYNTAX()
552 void FATAL(const char *fmt, ...) in FATAL() argument
559 va_start(varg, fmt); in FATAL()
560 vfprintf(stderr, fmt, varg); in FATAL()
568 void WARNING(const char *fmt, ...) in WARNING() argument
575 va_start(varg, fmt); in WARNING()
576 vfprintf(stderr, fmt, varg); in WARNING()
Drun.c809 char *fmt; in format() local
821 if ((fmt = (char *) malloc(fmtsz)) == NULL) in format()
839 for (t = fmt; (*t++ = *s) != '\0'; s++) { in format()
840 if (!adjbuf(&fmt, &fmtsz, MAXNUMSIZE+1+t-fmt, recsize, &t, "format3")) in format()
851 t = fmt + strlen(fmt); in format()
881 WARNING("weird printf conversion %s", fmt); in format()
894 case '?': sprintf(p, "%s", fmt); /* unknown, so dump it too */ in format()
903 case 'f': sprintf(p, fmt, getfval(x)); break; in format()
904 case 'd': sprintf(p, fmt, (long) getfval(x)); break; in format()
905 case 'u': sprintf(p, fmt, (int) getfval(x)); break; in format()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/support/win32/
Dsupport.h25 int vasprintf( char **sptr, const char *__restrict fmt, va_list ap );
26 int asprintf( char **sptr, const char *__restrict fmt, ...);
/ndk/sources/host-tools/sed-4.2.1/sed/
DMakefile.am6 sed_SOURCES = sed.c compile.c execute.c regexp.c fmt.c mbcs.c utils.c
/ndk/sources/android/support/src/stdio/
Dvfwprintf.c278 static int wprintf_core(Out *out, const wchar_t *fmt, va_list *ap, union arg *nl_arg, int *nl_type) in wprintf_core() argument
280 wchar_t *a, *z, *s=(wchar_t *)fmt, *s0; in wprintf_core()
456 int vfwprintf(FILE *restrict f, const wchar_t *restrict fmt, va_list ap) in vfwprintf() argument
466 if (wprintf_core(0, fmt, &ap2, nl_arg, nl_type) < 0) { in vfwprintf()
470 ret = wprintf_core(out, fmt, &ap2, nl_arg, nl_type); in vfwprintf()
475 int vswprintf(wchar_t *restrict s, size_t l, const wchar_t *restrict fmt, va_list ap) in vswprintf() argument
484 ret = wprintf_core(out, fmt, &ap2, nl_arg, nl_type); in vswprintf()

12