added qse_fmtulongtombs()/qse_fmtulongtowcs()

This commit is contained in:
2011-11-03 14:56:26 +00:00
parent e5a9693411
commit 6ee7a71b8d
27 changed files with 402 additions and 65 deletions

View File

@ -106,9 +106,7 @@ static const struct tre_macro_struct
static QSE_INLINE int xdigit_to_num (qse_char_t c)
{
return (c >= QSE_T('0') && c <= QSE_T('9'))? (c - QSE_T('0')):
(c >= QSE_T('A') && c <= QSE_T('F'))? (c - QSE_T('A') + 10):
(c >= QSE_T('a') && c <= QSE_T('f'))? (c - QSE_T('a') + 10): -1;
return QSE_XDIGITTONUM (c);
}
/* Expands a macro delimited by `regex' and `regex_end' to `buf', which