require 0.4.1

pull/3/head v0.1.0
matthieugomez 2015-11-09 14:13:57 -05:00
parent 7caed43f71
commit dee136e1c3
2 changed files with 1 additions and 16 deletions

View File

@ -1,3 +1,3 @@
julia 0.4
julia 0.4.1
Distances
Iterators

View File

@ -37,21 +37,6 @@ TokenMax
##############################################################################
typealias GraphemeOrString Union{GraphemeIterator, AbstractString}
# retwrite next
function Base.next(g::GraphemeIterator, i)
s = g.s
j = i
c0, k = next(s, i)
while !done(s, k) # loop until next grapheme is s[i:j]
c, = next(s, k)
Base.UTF8proc.isgraphemebreak(c0, c) && break
j = k
k =
c0 = c
end
return (SubString(s, i, j), k)
end
# add the following methods
Base.nextind(g::GraphemeIterator, state::Integer) = next(g, state)[2]
function Base.chr2ind(s::GraphemeIterator, i::Integer)