From 44b213f9469f6c0fd32a0c22d6fe33b108589608 Mon Sep 17 00:00:00 2001 From: ScottPJones Date: Tue, 10 Nov 2020 12:34:02 -0500 Subject: [PATCH] Fix classification of Latin-1 male/female ordinals --- .drone.yml | 28 ---------------------------- Project.toml | 4 ++-- src/unicode.jl | 4 ++-- 3 files changed, 4 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index b2771d5..2607e25 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,31 +1,3 @@ ---- -kind: pipeline -name: linux - arm - Julia 1.0 - -platform: - os: linux - arch: arm - -steps: -- name: build - image: julia:1.0 - commands: - - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" - ---- -kind: pipeline -name: linux - arm64 - Julia 1.0 - -platform: - os: linux - arch: arm64 - -steps: -- name: build - image: julia:1.0 - commands: - - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" - --- kind: pipeline name: linux - arm64 - Julia 1.5 diff --git a/Project.toml b/Project.toml index e3d788d..85ec0e9 100644 --- a/Project.toml +++ b/Project.toml @@ -4,7 +4,7 @@ keywords = ["Characters"] license = "MIT" desc = "Basic functionality for Chr type" authors = ["ScottPJones "] -version = "1.0.1" +version = "1.0.2" [deps] Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" @@ -22,7 +22,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" test = ["Test"] [compat] -julia = "^1.0.0" +julia = "1" ModuleInterfaceTools = "1" StrAPI = "1" CharSetEncodings = "1" diff --git a/src/unicode.jl b/src/unicode.jl index fbe2554..13bade1 100644 --- a/src/unicode.jl +++ b/src/unicode.jl @@ -81,8 +81,8 @@ const _isnumeric_a = _isdigit @inline _isnumeric_l(ch) = (ch <= 0xbe && ((1<<(ch-0xb2)) & 0x1c83) != 0) @inline _ispunct_l(ch) = ((UInt64(1) << (ch-0x80)) & 0x88c0_0882_0000_0000) != 0 @inline _isspace_l(ch) = (ch == 0x85) | (ch == 0xa0) -@inline _isalpha_l(c) = ((0xc0 <= c <= 0xff) & (c != 0xf7) & (c != 0xd7)) | (c == 0xb5) -@inline _isalnum_l(c) = _isalpha_l(c) || _isnumeric_l(c) +@inline _isalpha_l(ch) = ((0xff7f_ffff_ff7f_ffff_0420_0400_0000_0000 >>> (ch-0x80)) & 1) != 0 +@inline _isalnum_l(ch) = _isalpha_l(ch) || _isnumeric_l(ch) @inline _isprint_l(ch) = ((0xa0 <= ch <= 0xff) & (ch != 0xad)) @inline _isgraph_l(ch) = ((0xa0 < ch <= 0xff) & (ch != 0xad))