File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2525include Infix
2626
2727let is_uppercase_ascii c = c > '\064' && c < '\091'
28- let is_lowercase_ascii c = c > '\097' && c < '\123'
29- let is_letter_ascii c = is_uppercase_ascii c || is_lowercase_ascii c
28+ let is_lowercase_ascii c = c > '\096' && c < '\123'
29+ let is_letter_ascii c =
30+ (is_lowercase_ascii[@ inlined]) c || (is_uppercase_ascii[@ inlined]) c
3031let is_digit_ascii c = c > '\047' && c < '\058'
3132let is_whitespace_ascii c = c = '\032' || (c > '\008' && c < '\014' )
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ val is_digit_ascii : t -> bool
6262
6363val is_whitespace_ascii : t -> bool
6464(* * [is_whitespace_ascii c] is true exactly when [c] is an ASCII
65- whitespace character, i.e. either [c = ' '] or ['\008'] < [c] < ['\014'].
65+ whitespace character as defined by Unicode, i.e. either [c = ' ']
66+ or ['\008'] < [c] < ['\014'].
6667 @since 3.16 *)
6768
6869(* * {2 Infix Operators}
You can’t perform that action at this time.
0 commit comments