Skip to content

Commit

Permalink
Remove 0.6 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Dec 11, 2017
1 parent 5cf2280 commit c076efa
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions stdlib/Unicode/src/Unicode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,14 @@ __precompile__(true)

module Unicode

import Base.UTF8proc: normalize_string, graphemes, is_assigned_char, textwidth, isvalid,
islower, isupper, isalpha, isdigit, isxdigit, isnumber, isalnum,
iscntrl, ispunct, isspace, isprint, isgraph,
lowercase, uppercase, titlecase, lcfirst, ucfirst
using Base.UTF8proc: normalize_string, graphemes, is_assigned_char, textwidth, isvalid,
islower, isupper, isalpha, isdigit, isxdigit, isnumber, isalnum,
iscntrl, ispunct, isspace, isprint, isgraph,
lowercase, uppercase, titlecase, lcfirst, ucfirst

export normalize_string, graphemes, is_assigned_char, textwidth, isvalid,
islower, isupper, isalpha, isdigit, isxdigit, isnumber, isalnum,
iscntrl, ispunct, isspace, isprint, isgraph,
lowercase, uppercase, titlecase, lcfirst, ucfirst

# Julia 0.7 deprecations
for name in ("alnum", "alpha", "cntrl", "digit", "number", "graph",
"lower", "print", "punct", "space", "upper", "xdigit")
f = Symbol("is", name)
@eval Base.@deprecate ($f)(s::AbstractString) all($f, s)
end

end

0 comments on commit c076efa

Please sign in to comment.