Replace vim_isxdigit() with to ascii_isxdigit() defined in ascii.h

This commit is contained in:
Felipe Oliveira Carvalho
2015-04-22 19:49:53 -03:00
parent caabcae0b7
commit 2ca8afc74e
7 changed files with 26 additions and 26 deletions

View File

@@ -4551,7 +4551,7 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
case 'x':
case 'u': /* Unicode: "\u0023" */
case 'U':
if (vim_isxdigit(p[1])) {
if (ascii_isxdigit(p[1])) {
int n, nr;
int c = toupper(*p);
@@ -4560,7 +4560,7 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
else
n = 4;
nr = 0;
while (--n >= 0 && vim_isxdigit(p[1])) {
while (--n >= 0 && ascii_isxdigit(p[1])) {
++p;
nr = (nr << 4) + hex2nr(*p);
}