Scala Library
|
|
scala/util/matching/Regex.scala
]
class
MatchIterator(val
source : java.lang.CharSequence, val
regex : Regex, val
groupNames : Seq[java.lang.String])
extends
Iterator[java.lang.String] with
MatchDataMethod Summary | |
def
|
end
: Int
The index of the last matched character
|
def
|
end
(i : Int) : Int
The index following the last matched character in group
i |
def
|
groupCount
: Int
The number of subgroups
|
def
|
hasNext
: Boolean
Is there another match?
|
def
|
matchData
: Iterator[Match]
Convert to an iterator that yields MatchData elements instead of Strings
|
def
|
next
: java.lang.String
The next matched substring of `source'
|
def
|
start
: Int
The index of the first matched character
|
def
|
start
(i : Int) : Int
The index of the first matched character in group
i |
override def
|
toString
: java.lang.String
The matched string; equivalent to
matched.toString |
Methods inherited from MatchData | |
matched, group, subgroups, before, before, after, after, group |
Methods inherited from Iterator | |
take, drop, slice, map, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, buffered, counted, duplicate, copyToArray, readInto, readInto, readInto, copyToBuffer, toList, collect, mkString, mkString, mkString, addString |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
hasNext : Boolean
def
next : java.lang.String
override
def
toString : java.lang.String
matched.toString
def
start : Int
i
def
end : Int
i
def
groupCount : Int
Scala Library
|
|