Skip to content

Commit

Permalink
Deprecate is_utf8_start is_utf8_continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed Jul 30, 2015
1 parent 7985e00 commit e493348
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,25 @@ function utf16_get_supplementary(lead::UInt16, trail::UInt16)
Base.get_supplementary(lead, trail)
end

function is_utf8_start(byte::UInt8)
depwarn("""
Base.is_utf8_start(c::UInt8) was undocumented and unexported,
and has been removed. Use !Base.is_valid_continuation(c) instead,
however it is also undocumented and unexported, and may change in the future.
""",
symbol("is_utf8_start"))
!Base.is_valid_continuation(byte)
end
function is_utf8_continuation(byte::UInt8)
depwarn("""
Base.is_utf8_continuation(c::UInt8) was undocumented and unexported,
and has been removed. Use Base.is_valid_continuation(c) instead,
however it is also undocumented and unexported, and may change in the future.
""",
symbol("is_utf8_continuation"))
Base.is_valid_continuation(byte)
end

# 11280, mmap

export msync
Expand Down

0 comments on commit e493348

Please sign in to comment.