Lines Matching defs:fmt
951 * Report how many next-level elements inbetween fmt[0] and the matching
966 format_scan(const char *fmt)
971 literal = *fmt == '\'';
972 stack[sp] = *fmt++;
975 // lwsl_notice("%s: start %s\n", __func__, fmt - 1);
977 while (*fmt) {
979 // lwsl_notice("%s: %c %d %d\n", __func__, *fmt, sp, literal);
983 fmt++;
988 if (*fmt >= '0' && *fmt <= '9')
989 fmt++;
991 if (*fmt != '(')
996 if (*fmt == '\\' && fmt[1]) {
997 fmt += 2;
1000 if (*fmt == '\'') {
1007 fmt++;
1012 fmt++;
1016 if (*fmt == '\'') {
1020 fmt++;
1026 if (*fmt == '.') {
1028 fmt++;
1031 if (*fmt == 'l') {
1033 fmt++;
1038 if (*fmt == '*') {
1040 fmt++;
1043 if (*fmt == 'l') {
1045 fmt++;
1052 fmt++;
1056 switch (*fmt) {
1069 stack[sp] = *fmt;
1110 __func__, count[0], fmt);
1140 fmt++;
1146 lwsl_err("%s: format mismatch %c %c\n", __func__, stack[sp], *fmt);
1242 lws_lec_vsprintf(lws_lec_pctx_t *ctx, const char *fmt, va_list args)
1244 size_t fl = strlen(fmt);
1312 c = fmt[ctx->fmt_pos];
1321 n = format_scan(&fmt[ctx->fmt_pos]);
1328 n = format_scan(&fmt[ctx->fmt_pos]);
1369 n = format_scan(&fmt[ctx->fmt_pos]);
1526 c = fmt[ctx->fmt_pos];
1612 n = format_scan(&fmt[ctx->fmt_pos]);