Skip to content

Commit 7b5a981

Browse files
authored
Merge pull request #11 from JuliaString/spj/perf
Improve performance of is_alphanumeric
2 parents 93a301b + 4507363 commit 7b5a981

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
version:
13-
- '1.5'
1413
- '1.6'
14+
- '1.9'
1515
- 'nightly'
1616
os:
1717
- ubuntu-latest

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ keywords = ["Characters"]
44
license = "MIT"
55
desc = "Basic functionality for Chr type"
66
authors = ["ScottPJones <[email protected]>"]
7-
version = "1.0.3"
7+
version = "1.0.4"
88

99
[deps]
1010
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

src/unicode.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const _isnumeric_a = _isdigit
8282
@inline _ispunct_l(ch) = ((UInt64(1) << (ch-0x80)) & 0x88c0_0882_0000_0000) != 0
8383
@inline _isspace_l(ch) = (ch == 0x85) | (ch == 0xa0)
8484
@inline _isalpha_l(ch) = ((0xff7f_ffff_ff7f_ffff_0420_0400_0000_0000 >>> (ch-0x80)) & 1) != 0
85-
@inline _isalnum_l(ch) = _isalpha_l(ch) || _isnumeric_l(ch)
85+
@inline _isalnum_l(ch) = ((0xff7f_ffff_ff7f_ffff_762c_0400_0000_0000 >>> (ch-0x80)) & 1) != 0
8686
@inline _isprint_l(ch) = ((0xa0 <= ch <= 0xff) & (ch != 0xad))
8787
@inline _isgraph_l(ch) = ((0xa0 < ch <= 0xff) & (ch != 0xad))
8888

0 commit comments

Comments
 (0)