@@ -433,7 +433,7 @@ The delimiter can be a `UInt8`, `AbstractChar`, string, or vector.
433
433
Keyword argument `keep` controls whether the delimiter is included in the result.
434
434
The text is assumed to be encoded in UTF-8.
435
435
436
- See also: [`skipchars `](@ref)
436
+ See also: [`skipuntil `](@ref)
437
437
438
438
# Examples
439
439
```jldoctest
@@ -1014,7 +1014,7 @@ end
1014
1014
1015
1015
Return an iterable object yielding [`read(io, T)`](@ref).
1016
1016
1017
- See also: [`skipchars `](@ref), [`eachline`](@ref), [`readuntil`](@ref)
1017
+ See also: [`skipuntil `](@ref), [`eachline`](@ref), [`readuntil`](@ref)
1018
1018
1019
1019
# Examples
1020
1020
```jldoctest
@@ -1109,7 +1109,7 @@ Commit all currently buffered writes to the given stream.
1109
1109
flush (io:: IO ) = nothing
1110
1110
1111
1111
"""
1112
- skipchars (predicate, io::IO; linecomment=nothing)
1112
+ skipuntil (predicate, io::IO; linecomment=nothing)
1113
1113
1114
1114
Advance the stream `io` such that the next-read character will be the first remaining for
1115
1115
which `predicate` returns `false`. If the keyword argument `linecomment` is specified, all
@@ -1122,14 +1122,14 @@ See also: [`readuntil`](@ref)
1122
1122
julia> buf = IOBuffer(" text")
1123
1123
IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=8, maxsize=Inf, ptr=1, mark=-1)
1124
1124
1125
- julia> skipchars (isspace, buf)
1125
+ julia> skipuntil (isspace, buf)
1126
1126
IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=8, maxsize=Inf, ptr=5, mark=-1)
1127
1127
1128
1128
julia> String(readavailable(buf))
1129
1129
"text"
1130
1130
```
1131
1131
"""
1132
- function skipchars (predicate, io:: IO ; linecomment= nothing )
1132
+ function skipuntil (predicate, io:: IO ; linecomment= nothing )
1133
1133
while ! eof (io)
1134
1134
c = read (io, Char)
1135
1135
if c === linecomment
0 commit comments