@@ -26,7 +26,7 @@ function make_argspec(s::AbstractString, pos::Int)
2626 ff:: Function = Base. identity
2727
2828 if ! isempty (s)
29- filrange = Compat . findfirst (" |>" , s)
29+ filrange = findfirst (" |>" , s)
3030 if filrange === nothing
3131 iarg = parse (Int, s)
3232 else
6464function make_formatentry (s:: AbstractString , pos:: Int )
6565 @assert s[1 ] == ' {' && s[end ] == ' }'
6666 sc = s[2 : prevind (s, lastindex (s))]
67- icolon = Compat . findfirst (isequal (' :' ), sc)
67+ icolon = findfirst (isequal (' :' ), sc)
6868 if icolon === nothing # no colon
6969 (argspec, pos) = make_argspec (sc, pos)
7070 spec = FormatSpec (' s' )
@@ -89,10 +89,10 @@ _raise_unmatched_lbrace() = error("Unmatched { in format expression.")
8989
9090function find_next_entry_open (s:: AbstractString , si:: Int )
9191 slen = lastindex (s)
92- p = Compat . findnext (isequal (' {' ), s, si)
92+ p = findnext (isequal (' {' ), s, si)
9393 (p === nothing || p < slen) || _raise_unmatched_lbrace ()
9494 while p != = nothing && s[p+ 1 ] == ' {' # escape `{{`
95- p = Compat . findnext (isequal (' {' ), s, p+ 2 )
95+ p = findnext (isequal (' {' ), s, p+ 2 )
9696 (p === nothing || p < slen) || _raise_unmatched_lbrace ()
9797 end
9898 pre = p != = nothing ? s[si: prevind (s, p)] : s[si: end ]
@@ -104,7 +104,7 @@ function find_next_entry_open(s::AbstractString, si::Int)
104104end
105105
106106function find_next_entry_close (s:: AbstractString , si:: Int )
107- p = Compat . findnext (isequal (' }' ), s, si)
107+ p = findnext (isequal (' }' ), s, si)
108108 p != = nothing || _raise_unmatched_lbrace ()
109109 return p
110110end
0 commit comments