stringsplit
package stringsplit
Simple string tokenizers
- split1 splits the string at each of the separator characters - splitM plits the string at continuous runs of the separator characters
- Alphabetic
- By Inheritance
- stringsplit
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class StringWithFastSplit extends AnyRef
Value Members
- def split1(str: String, sep: Set[Char]): IndexedSeq[String]
- def split1(str: String, sep: Char): IndexedSeq[String]
- def split1Array(str: String, sep: Set[Char]): Array[String]
- def split1Array(str: String, sep: Char): Array[String]
-
def
split1Iter(str: String, sep: Set[Char]): Iterator[String]
Splits a string onto substrings.
Splits a string onto substrings.
Cuts the string into substrings and gives an iterator on them. Whether the string is copied or not depends on String.substring
-
def
split1Iter(str: String, sep: Char): Iterator[String]
Splits a string onto substrings.
Splits a string onto substrings.
Cuts the string into substrings and gives an iterator on them. Whether the string is copied or not depends on String.substring
- def splitM(str: String, sep: Set[Char]): IndexedSeq[String]
- def splitM(str: String, sep: Char): IndexedSeq[String]
- def splitMArray(str: String, sep: Set[Char]): Array[String]
- def splitMArray(str: String, sep: Char): Array[String]
- def splitMIter(str: String, sep: Set[Char]): Iterator[String]
-
def
splitMIter(str: String, sep: Char): Iterator[String]
Splits string onto substrings, while continuous spans of separators are merged.
-
def
storeIterInArrayAll[T](iter: Iterator[T], destination: ArrayBuffer[T]): Unit
Stores all elements in the given mutable buffer.
-
def
storeIterInArrayInterval[T](iter: Iterator[T], destination: ArrayBuffer[T], i: Int, j: Int): Unit
Stores the elements between [i,j) indices (exclusive end) in the given mutable buffer.