@@ -525,22 +525,13 @@ _prevind(::MultiCU, str::Str{RawUTF8CSE}, pos::Int) =
525
525
prevind (str. data, pos)
526
526
527
527
#=
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
-
538
528
const _ByteStr = Union{Str{ASCIICSE}, SubString{<:Str{ASCIICSE}},
539
- Str{UTF8CSE}, SubString{<: Str{UTF8CSE} },
540
- String}
529
+ Str{UTF8CSE}, SubString{<:Str{UTF8CSE}}}
541
530
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))
543
533
# ^^ at least one must be UTF-8 or the ASCII-only method would get called
534
+ =#
544
535
545
536
function _reverse (:: MultiCU , :: Type{UTF8CSE} , len, pnt:: Ptr{T} ) where {T<: CodeUnitTypes }
546
537
buf, beg = _allocate (T, len)
0 commit comments