Skip to content

Commit d86dcec

Browse files
authored
Merge pull request #9 from invenia/aa/ncodeunits
Add ncodeunits
2 parents 63b3a4f + 5b23de9 commit d86dcec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FilePathsBase.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ abstract type AbstractPath <: AbstractString end
6666

6767
# Required methods for subtype of AbstractString
6868
Compat.lastindex(p::AbstractPath) = lastindex(String(p))
69+
Compat.ncodeunits(p::AbstractPath) = ncodeunits(String(p))
6970
if VERSION >= v"0.7-"
7071
Base.iterate(p::AbstractPath) = iterate(String(p))
7172
Base.iterate(p::AbstractPath, state::Int) = iterate(String(p), state)

0 commit comments

Comments
 (0)