Eliminate some function calls when locale not used
This commit is contained in:
parent
8dc8604567
commit
1fc112af6f
@ -187,12 +187,10 @@ rangematch(pattern, test, flags)
|
||||
if (flags & FNM_CASEFOLD)
|
||||
c2 = tolower((unsigned char)c2);
|
||||
|
||||
if ( ( __collate_load_error
|
||||
&& c <= test && test <= c2
|
||||
)
|
||||
|| ( __collate_range_cmp(c, test) <= 0
|
||||
&& __collate_range_cmp(test, c2) <= 0
|
||||
)
|
||||
if (__collate_load_error ?
|
||||
c <= test && test <= c2 :
|
||||
__collate_range_cmp(c, test) <= 0
|
||||
&& __collate_range_cmp(test, c2) <= 0
|
||||
)
|
||||
ok = 1;
|
||||
} else if (c == test)
|
||||
|
@ -187,12 +187,10 @@ rangematch(pattern, test, flags)
|
||||
if (flags & FNM_CASEFOLD)
|
||||
c2 = tolower((unsigned char)c2);
|
||||
|
||||
if ( ( __collate_load_error
|
||||
&& c <= test && test <= c2
|
||||
)
|
||||
|| ( __collate_range_cmp(c, test) <= 0
|
||||
&& __collate_range_cmp(test, c2) <= 0
|
||||
)
|
||||
if (__collate_load_error ?
|
||||
c <= test && test <= c2 :
|
||||
__collate_range_cmp(c, test) <= 0
|
||||
&& __collate_range_cmp(test, c2) <= 0
|
||||
)
|
||||
ok = 1;
|
||||
} else if (c == test)
|
||||
|
Loading…
Reference in New Issue
Block a user