Skip to content

Commit 0a436e9

Browse files
authored
Merge pull request #7 from JuliaString/spj/ordinals
Fix classification of Latin-1 male/female ordinals
2 parents 600b659 + 44b213f commit 0a436e9

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

.drone.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
---
2-
kind: pipeline
3-
name: linux - arm - Julia 1.0
4-
5-
platform:
6-
os: linux
7-
arch: arm
8-
9-
steps:
10-
- name: build
11-
image: julia:1.0
12-
commands:
13-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
14-
15-
---
16-
kind: pipeline
17-
name: linux - arm64 - Julia 1.0
18-
19-
platform:
20-
os: linux
21-
arch: arm64
22-
23-
steps:
24-
- name: build
25-
image: julia:1.0
26-
commands:
27-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
28-
291
---
302
kind: pipeline
313
name: linux - arm64 - Julia 1.5

Project.toml

Lines changed: 2 additions & 2 deletions
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 <scottjones@alum.mit.edu>"]
7-
version = "1.0.1"
7+
version = "1.0.2"
88

99
[deps]
1010
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
@@ -22,7 +22,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2222
test = ["Test"]
2323

2424
[compat]
25-
julia = "^1.0.0"
25+
julia = "1"
2626
ModuleInterfaceTools = "1"
2727
StrAPI = "1"
2828
CharSetEncodings = "1"

src/unicode.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ const _isnumeric_a = _isdigit
8181
@inline _isnumeric_l(ch) = (ch <= 0xbe && ((1<<(ch-0xb2)) & 0x1c83) != 0)
8282
@inline _ispunct_l(ch) = ((UInt64(1) << (ch-0x80)) & 0x88c0_0882_0000_0000) != 0
8383
@inline _isspace_l(ch) = (ch == 0x85) | (ch == 0xa0)
84-
@inline _isalpha_l(c) = ((0xc0 <= c <= 0xff) & (c != 0xf7) & (c != 0xd7)) | (c == 0xb5)
85-
@inline _isalnum_l(c) = _isalpha_l(c) || _isnumeric_l(c)
84+
@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)
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)