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
(i : Int) : Int
The index following the last matched character in group
i |
def
|
end
: Int
The index of the last matched character
|
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
(i : Int) : Int
The index of the first matched character in group
i |
def
|
start
: Int
The index of the first matched character
|
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, ++, flatMap, filter, filterNot, partialMap, takeWhile, partition, dropWhile, zip, padTo, zipWithIndex, zipAll, foreach, forall, exists, contains, find, indexWhere, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, reduceLeftOption, reduceRightOption, buffered, grouped, sliding, length, duplicate, patch, copyToArray, copyToArray, copyToArray, copyToBuffer, toList, toStream, toSeq, mkString, mkString, mkString, addString, addString, addString, append, findIndexOf, collect, counted, readInto, readInto, readInto |
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
|
|