594,7 → 594,7 |
|
while (true) { |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
|
if (uc == '\0') break; |
|
618,7 → 618,7 |
|
do { |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
switch (uc) { |
case '#': |
flags |= __PRINTF_FLAG_PREFIX; |
648,7 → 648,7 |
width += uc - '0'; |
|
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
if (uc == '\0') |
break; |
if (!isdigit(uc)) |
657,7 → 657,7 |
} else if (uc == '*') { |
/* Get width value from argument list */ |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
width = (int) va_arg(ap, int); |
if (width < 0) { |
/* Negative width sets '-' flag */ |
670,7 → 670,7 |
int precision = 0; |
if (uc == '.') { |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
if (isdigit(uc)) { |
while (true) { |
precision *= 10; |
677,7 → 677,7 |
precision += uc - '0'; |
|
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
if (uc == '\0') |
break; |
if (!isdigit(uc)) |
686,7 → 686,7 |
} else if (uc == '*') { |
/* Get precision value from the argument list */ |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
precision = (int) va_arg(ap, int); |
if (precision < 0) { |
/* Ignore negative precision */ |
705,10 → 705,10 |
/* Char or short */ |
qualifier = PrintfQualifierShort; |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
if (uc == 'h') { |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
qualifier = PrintfQualifierByte; |
} |
break; |
716,10 → 716,10 |
/* Long or long long */ |
qualifier = PrintfQualifierLong; |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
if (uc == 'l') { |
i = nxt; |
uc = utf8_decode(fmt, &nxt, UTF8_NO_LIMIT); |
uc = chr_decode(fmt, &nxt, UTF8_NO_LIMIT); |
qualifier = PrintfQualifierLongLong; |
} |
break; |