@@ -730,10 +730,10 @@ end
730730@deprecate charwidth textwidth
731731
732732@deprecate find (x:: Number ) findall (! iszero, x)
733- @deprecate findnext (A, v, i:: Integer ) coalesce (findnext (isequal (v), A, i), 0 )
734- @deprecate findfirst (A, v) coalesce (findfirst (isequal (v), A), 0 )
735- @deprecate findprev (A, v, i:: Integer ) coalesce (findprev (isequal (v), A, i), 0 )
736- @deprecate findlast (A, v) coalesce (findlast (isequal (v), A), 0 )
733+ @deprecate findnext (A, v, i:: Integer ) something (findnext (isequal (v), A, i), 0 )
734+ @deprecate findfirst (A, v) something (findfirst (isequal (v), A), 0 )
735+ @deprecate findprev (A, v, i:: Integer ) something (findprev (isequal (v), A, i), 0 )
736+ @deprecate findlast (A, v) something (findlast (isequal (v), A), 0 )
737737# to fix ambiguities introduced by deprecations
738738findnext (pred:: Function , A, i:: Integer ) = invoke (findnext, Tuple{Function, Any, Any}, pred, A, i)
739739findprev (pred:: Function , A, i:: Integer ) = invoke (findprev, Tuple{Function, Any, Any}, pred, A, i)
@@ -1239,47 +1239,47 @@ end
12391239@deprecate_binding HasOrder Ordered
12401240@deprecate_binding ArithmeticOverflows ArithmeticWraps
12411241
1242- @deprecate search (str:: Union{String,SubString} , re:: Regex , idx:: Integer ) coalesce (findnext (re, str, idx), 0 : - 1 )
1243- @deprecate search (s:: AbstractString , r:: Regex , idx:: Integer ) coalesce (findnext (r, s, idx), 0 : - 1 )
1244- @deprecate search (s:: AbstractString , r:: Regex ) coalesce (findfirst (r, s), 0 : - 1 )
1245- @deprecate search (s:: AbstractString , c:: Char , i:: Integer ) coalesce (findnext (isequal (c), s, i), 0 )
1246- @deprecate search (s:: AbstractString , c:: Char ) coalesce (findfirst (isequal (c), s), 0 )
1247- @deprecate search (a:: ByteArray , b:: Union{Int8,UInt8} , i:: Integer ) coalesce (findnext (isequal (b), a, i), 0 )
1248- @deprecate search (a:: ByteArray , b:: Union{Int8,UInt8} ) coalesce (findfirst (isequal (b), a), 0 )
1249- @deprecate search (a:: String , b:: Union{Int8,UInt8} , i:: Integer ) coalesce (findnext (isequal (b), unsafe_wrap (Vector{UInt8}, a), i), 0 )
1250- @deprecate search (a:: String , b:: Union{Int8,UInt8} ) coalesce (findfirst (isequal (b), unsafe_wrap (Vector{UInt8}, a)), 0 )
1251- @deprecate search (a:: ByteArray , b:: Char , i:: Integer ) coalesce (findnext (isequal (UInt8 (b)), a, i), 0 )
1252- @deprecate search (a:: ByteArray , b:: Char ) coalesce (findfirst (isequal (UInt8 (b)), a), 0 )
1253-
1254- @deprecate search (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} , i:: Integer ) coalesce (findnext (in (c), s, i), 0 )
1255- @deprecate search (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} ) coalesce (findfirst (in (c), s), 0 )
1256- @deprecate search (s:: AbstractString , t:: AbstractString , i:: Integer ) coalesce (findnext (t, s, i), 0 : - 1 )
1257- @deprecate search (s:: AbstractString , t:: AbstractString ) coalesce (findfirst (t, s), 0 : - 1 )
1258-
1259- @deprecate rsearch (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} , i:: Integer ) coalesce (findprev (in (c), s, i), 0 )
1260- @deprecate rsearch (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} ) coalesce (findlast (in (c), s), 0 )
1261- @deprecate rsearch (s:: AbstractString , t:: AbstractString , i:: Integer ) coalesce (findprev (t, s, i), 0 : - 1 )
1262- @deprecate rsearch (s:: AbstractString , t:: AbstractString ) coalesce (findlast (t, s), 0 : - 1 )
1263-
1264- @deprecate rsearch (str:: Union{String,SubString} , re:: Regex , idx:: Integer ) coalesce (findprev (re, str, idx), 0 : - 1 )
1265- @deprecate rsearch (str:: Union{String,SubString} , re:: Regex ) coalesce (findlast (re, str), 0 : - 1 )
1266- @deprecate rsearch (s:: AbstractString , r:: Regex , idx:: Integer ) coalesce (findprev (r, s, idx), 0 : - 1 )
1267- @deprecate rsearch (s:: AbstractString , r:: Regex ) coalesce (findlast (r, s), 0 : - 1 )
1268- @deprecate rsearch (s:: AbstractString , c:: Char , i:: Integer ) coalesce (findprev (isequal (c), s, i), 0 )
1269- @deprecate rsearch (s:: AbstractString , c:: Char ) coalesce (findlast (isequal (c), s), 0 )
1270- @deprecate rsearch (a:: Union{String,ByteArray} , b:: Union{Int8,UInt8} , i:: Integer = lastindex (a)) coalesce (findprev (isequal (b), a, i), 0 )
1271- @deprecate rsearch (a:: String , b:: Union{Int8,UInt8} , i:: Integer = lastindex (a)) coalesce (findprev (isequal (Char (b)), a, i), 0 )
1272- @deprecate rsearch (a:: ByteArray , b:: Char , i:: Integer = lastindex (a)) coalesce (findprev (isequal (UInt8 (b)), a, i), 0 )
1273-
1274- @deprecate searchindex (s:: AbstractString , t:: AbstractString ) first (coalesce (findfirst (t, s), 0 : - 1 ))
1275- @deprecate searchindex (s:: AbstractString , t:: AbstractString , i:: Integer ) first (coalesce (findnext (t, s, i), 0 : - 1 ))
1276- @deprecate rsearchindex (s:: AbstractString , t:: AbstractString ) first (coalesce (findlast (t, s), 0 : - 1 ))
1277- @deprecate rsearchindex (s:: AbstractString , t:: AbstractString , i:: Integer ) first (coalesce (findprev (t, s, i), 0 : - 1 ))
1278-
1279- @deprecate searchindex (s:: AbstractString , c:: Char ) coalesce (findfirst (isequal (c), s), 0 )
1280- @deprecate searchindex (s:: AbstractString , c:: Char , i:: Integer ) coalesce (findnext (isequal (c), s, i), 0 )
1281- @deprecate rsearchindex (s:: AbstractString , c:: Char ) coalesce (findlast (isequal (c), s), 0 )
1282- @deprecate rsearchindex (s:: AbstractString , c:: Char , i:: Integer ) coalesce (findprev (isequal (c), s, i), 0 )
1242+ @deprecate search (str:: Union{String,SubString} , re:: Regex , idx:: Integer ) something (findnext (re, str, idx), 0 : - 1 )
1243+ @deprecate search (s:: AbstractString , r:: Regex , idx:: Integer ) something (findnext (r, s, idx), 0 : - 1 )
1244+ @deprecate search (s:: AbstractString , r:: Regex ) something (findfirst (r, s), 0 : - 1 )
1245+ @deprecate search (s:: AbstractString , c:: Char , i:: Integer ) something (findnext (isequal (c), s, i), 0 )
1246+ @deprecate search (s:: AbstractString , c:: Char ) something (findfirst (isequal (c), s), 0 )
1247+ @deprecate search (a:: ByteArray , b:: Union{Int8,UInt8} , i:: Integer ) something (findnext (isequal (b), a, i), 0 )
1248+ @deprecate search (a:: ByteArray , b:: Union{Int8,UInt8} ) something (findfirst (isequal (b), a), 0 )
1249+ @deprecate search (a:: String , b:: Union{Int8,UInt8} , i:: Integer ) something (findnext (isequal (b), unsafe_wrap (Vector{UInt8}, a), i), 0 )
1250+ @deprecate search (a:: String , b:: Union{Int8,UInt8} ) something (findfirst (isequal (b), unsafe_wrap (Vector{UInt8}, a)), 0 )
1251+ @deprecate search (a:: ByteArray , b:: Char , i:: Integer ) something (findnext (isequal (UInt8 (b)), a, i), 0 )
1252+ @deprecate search (a:: ByteArray , b:: Char ) something (findfirst (isequal (UInt8 (b)), a), 0 )
1253+
1254+ @deprecate search (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} , i:: Integer ) something (findnext (in (c), s, i), 0 )
1255+ @deprecate search (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} ) something (findfirst (in (c), s), 0 )
1256+ @deprecate search (s:: AbstractString , t:: AbstractString , i:: Integer ) something (findnext (t, s, i), 0 : - 1 )
1257+ @deprecate search (s:: AbstractString , t:: AbstractString ) something (findfirst (t, s), 0 : - 1 )
1258+
1259+ @deprecate rsearch (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} , i:: Integer ) something (findprev (in (c), s, i), 0 )
1260+ @deprecate rsearch (s:: AbstractString , c:: Union{Tuple{Vararg{Char}},AbstractVector{Char},Set{Char}} ) something (findlast (in (c), s), 0 )
1261+ @deprecate rsearch (s:: AbstractString , t:: AbstractString , i:: Integer ) something (findprev (t, s, i), 0 : - 1 )
1262+ @deprecate rsearch (s:: AbstractString , t:: AbstractString ) something (findlast (t, s), 0 : - 1 )
1263+
1264+ @deprecate rsearch (str:: Union{String,SubString} , re:: Regex , idx:: Integer ) something (findprev (re, str, idx), 0 : - 1 )
1265+ @deprecate rsearch (str:: Union{String,SubString} , re:: Regex ) something (findlast (re, str), 0 : - 1 )
1266+ @deprecate rsearch (s:: AbstractString , r:: Regex , idx:: Integer ) something (findprev (r, s, idx), 0 : - 1 )
1267+ @deprecate rsearch (s:: AbstractString , r:: Regex ) something (findlast (r, s), 0 : - 1 )
1268+ @deprecate rsearch (s:: AbstractString , c:: Char , i:: Integer ) something (findprev (isequal (c), s, i), 0 )
1269+ @deprecate rsearch (s:: AbstractString , c:: Char ) something (findlast (isequal (c), s), 0 )
1270+ @deprecate rsearch (a:: Union{String,ByteArray} , b:: Union{Int8,UInt8} , i:: Integer = lastindex (a)) something (findprev (isequal (b), a, i), 0 )
1271+ @deprecate rsearch (a:: String , b:: Union{Int8,UInt8} , i:: Integer = lastindex (a)) something (findprev (isequal (Char (b)), a, i), 0 )
1272+ @deprecate rsearch (a:: ByteArray , b:: Char , i:: Integer = lastindex (a)) something (findprev (isequal (UInt8 (b)), a, i), 0 )
1273+
1274+ @deprecate searchindex (s:: AbstractString , t:: AbstractString ) first (something (findfirst (t, s), 0 : - 1 ))
1275+ @deprecate searchindex (s:: AbstractString , t:: AbstractString , i:: Integer ) first (something (findnext (t, s, i), 0 : - 1 ))
1276+ @deprecate rsearchindex (s:: AbstractString , t:: AbstractString ) first (something (findlast (t, s), 0 : - 1 ))
1277+ @deprecate rsearchindex (s:: AbstractString , t:: AbstractString , i:: Integer ) first (something (findprev (t, s, i), 0 : - 1 ))
1278+
1279+ @deprecate searchindex (s:: AbstractString , c:: Char ) something (findfirst (isequal (c), s), 0 )
1280+ @deprecate searchindex (s:: AbstractString , c:: Char , i:: Integer ) something (findnext (isequal (c), s, i), 0 )
1281+ @deprecate rsearchindex (s:: AbstractString , c:: Char ) something (findlast (isequal (c), s), 0 )
1282+ @deprecate rsearchindex (s:: AbstractString , c:: Char , i:: Integer ) something (findprev (isequal (c), s, i), 0 )
12831283
12841284@deprecate ismatch (r:: Regex , s:: AbstractString ) occursin (r, s)
12851285
0 commit comments