mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
Replace vim_isxdigit() with to ascii_isxdigit() defined in ascii.h
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user