File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ _cat_mask(a) = UInt(a)
5252@inline _cat_mask (rng:: (@static V6_COMPAT ? Range : AbstractRange) ) =
5353 ((UInt (2 ) << (rng. stop% UInt)) - UInt (1 )) & ~ ((UInt (1 ) << (rng. start% UInt)) - UInt (1 ))
5454
55- @inline _check_mask (ch, mask) = ((UInt (1 ) << category_code (ch)% UInt) & mask) != 0
55+ @inline _check_mask (ch, mask) = ((UInt (1 ) << ( category_code (ch)% UInt) ) & mask) != 0
5656
5757# # libc character class predicates ##
5858
@@ -61,8 +61,8 @@ _cat_mask(a) = UInt(a)
6161@inline _can_upper (c) = _islower_a (c) | _can_upper_l (c)
6262
6363@inline _iscntrl (ch) = (ch <= 0x1f ) | (0x7f <= ch <= 0x9f )
64- @inline _isdigit (ch) = (ch - ' 0' % UInt8) <= 9
65- @inline _isxdigit (ch) = _isdigit (ch) | (ch - ' A' % UInt8 < 6 ) | (ch - ' a' % UInt8 < 6 )
64+ @inline _isdigit (ch) = (ch - ( ' 0' % UInt8) ) <= 9
65+ @inline _isxdigit (ch) = _isdigit (ch) | (ch - ( ' A' % UInt8) < 6 ) | (ch - ( ' a' % UInt8) < 6 )
6666
6767const _isupper_mask = _cat_mask (Uni. Lu, Uni. Lt)
6868const _isalpha_mask = _cat_mask (Uni. Lu : Uni. Lo)
You can’t perform that action at this time.
0 commit comments