Skip to content

Commit 7b64316

Browse files
committed
Unicode functions moved out of base in 0.7
Importing via Compat (see JuliaLang/Compat.jl#432) to keep 0.6 compatability.
1 parent 271c820 commit 7b64316

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/LibExpat.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ module LibExpat
55
using Compat
66

77
import Base: getindex, show, parse
8+
import Compat.Unicode: isspace, isalpha, isalnum
89

9-
if Compat.Sys.iswindows()
10+
if Compat.Sys.iswindows()
1011
const libexpat = "libexpat-1"
11-
elseif Compat.Sys.isunix()
12+
elseif Compat.Sys.isunix()
1213
const libexpat = "libexpat"
1314
end
1415

@@ -211,7 +212,7 @@ function attrs_in_to_dict(attrs_in::Ptr{Ptr{UInt8}})
211212
v = unsafe_string(attr)
212213

213214
attrs[k] = v
214-
215+
215216
i += 1
216217
attr = unsafe_load(attrs_in, i)
217218
end

0 commit comments

Comments
 (0)