Skip to content

Commit 804eec4

Browse files
committed
Disable string overloading
1 parent 30bd932 commit 804eec4

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/utf8.jl

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -525,22 +525,13 @@ _prevind(::MultiCU, str::Str{RawUTF8CSE}, pos::Int) =
525525
prevind(str.data, pos)
526526

527527
#=
528-
_nextind(::MultiCU, str::SubString{<:Str{RawUTF8CSE}}, pos::Int, nchar::Int) =
529-
nextind(str, pos, nchar)
530-
_nextind(::MultiCU, str::SubString{<:Str{RawUTF8CSE}}, pos::Int) =
531-
nextind(str, pos)
532-
_prevind(::MultiCU, str::SubString{<:Str{RawUTF8CSE}}, pos::Int, nchar::Int) =
533-
prevind(str, pos, nchar)
534-
_prevind(::MultiCU, str::SubString{<:Str{RawUTF8CSE}}, pos::Int) =
535-
prevind(str, pos)
536-
=#
537-
538528
const _ByteStr = Union{Str{ASCIICSE}, SubString{<:Str{ASCIICSE}},
539-
Str{UTF8CSE}, SubString{<:Str{UTF8CSE}},
540-
String}
529+
Str{UTF8CSE}, SubString{<:Str{UTF8CSE}}}
541530
542-
string(c::_ByteStr...) = length(c) == 1 ? c[1]::UTF8Str : UTF8Str(_string(c))
531+
string(s::_ByteStr) = s
532+
string(s::_ByteStr, c::_ByteStr...) = UTF8Str(_string(c))
543533
# ^^ at least one must be UTF-8 or the ASCII-only method would get called
534+
=#
544535

545536
function _reverse(::MultiCU, ::Type{UTF8CSE}, len, pnt::Ptr{T}) where {T<:CodeUnitTypes}
546537
buf, beg = _allocate(T, len)

0 commit comments

Comments
 (0)