Skip to content

Commit

Permalink
Merge pull request #9 from invenia/aa/ncodeunits
Browse files Browse the repository at this point in the history
Add ncodeunits
  • Loading branch information
rofinn authored Aug 17, 2018
2 parents 63b3a4f + 5b23de9 commit d86dcec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FilePathsBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ abstract type AbstractPath <: AbstractString end

# Required methods for subtype of AbstractString
Compat.lastindex(p::AbstractPath) = lastindex(String(p))
Compat.ncodeunits(p::AbstractPath) = ncodeunits(String(p))
if VERSION >= v"0.7-"
Base.iterate(p::AbstractPath) = iterate(String(p))
Base.iterate(p::AbstractPath, state::Int) = iterate(String(p), state)
Expand Down

0 comments on commit d86dcec

Please sign in to comment.