changed the awk parser to accept \u and \U in the MCHAR mode.

implemented k/K in the awk's builtin printf function
This commit is contained in:
2019-03-20 07:06:00 +00:00
parent 6c61e0bab6
commit c139017593
4 changed files with 136 additions and 92 deletions

View File

@ -109,7 +109,7 @@ static char_t* sprintn (char_t* nbuf, qse_uintmax_t num, int base, int *lenp, in
PUT_CHAR(__xbuf[1]); \
} while (0)
#define BYTE_PRINTABLE(x) ((x >= 'a' && x <= 'z') || (x >= 'A' && x <= 'Z') || (x >= '0' && x <= '9') || (x == ' '))
#define BYTE_PRINTABLE(x) ((x) <= 0x7F && QSE_ISMPRINT(x) && (x) != '\\')
int fmtout (const char_t* fmt, fmtout_t* data, va_list ap)
{