fix incorrect folder name for julia-0.6.x
Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
This commit is contained in:
15
julia-0.6.3/share/julia/base/strings/errors.jl
Normal file
15
julia-0.6.3/share/julia/base/strings/errors.jl
Normal file
@@ -0,0 +1,15 @@
|
||||
# This file is a part of Julia. License is MIT: https://julialang.org/license
|
||||
|
||||
## Error messages for Unicode / UTF support
|
||||
|
||||
const UTF_ERR_SHORT = "invalid UTF-8 sequence starting at index <<1>> (0x<<2>> missing one or more continuation bytes)"
|
||||
const UTF_ERR_INVALID_INDEX = "invalid character index <<1>> (0x<<2>> is a continuation byte)"
|
||||
|
||||
mutable struct UnicodeError <: Exception
|
||||
errmsg::AbstractString ##< A UTF_ERR_ message
|
||||
errpos::Int32 ##< Position of invalid character
|
||||
errchr::UInt32 ##< Invalid character
|
||||
end
|
||||
|
||||
show(io::IO, exc::UnicodeError) = print(io, replace(replace(string("UnicodeError: ",exc.errmsg),
|
||||
"<<1>>",string(exc.errpos)),"<<2>>",hex(exc.errchr)))
|
||||
Reference in New Issue
Block a user