Scala Standard Library 2.13.15 - scala.collection.StringOps (original) (raw)
final class StringOps extends AnyVal
Ordering
- Alphabetic
- By Inheritance
Inherited
- StringOps
- AnyVal
- Any
Implicitly
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- final def ##: Int
- def *(n: Int): String
- def +(other: String): String
- def ++(xs: String): String
- def ++(suffix: IterableOnce[Char]): String
- def ++[B >: Char](suffix: Iterable[B]): immutable.IndexedSeq[B]
- def ++:(prefix: String): String
- def ++:[B >: Char](prefix: IterableOnce[B]): immutable.IndexedSeq[B]
- def +:(c: Char): String
- def +:[B >: Char](elem: B): immutable.IndexedSeq[B]
- def ->[B](y: B): (StringOps, B)
- def :+(c: Char): String
- def :+[B >: Char](elem: B): immutable.IndexedSeq[B]
- def :++(suffix: String): String
- def :++[B >: Char](suffix: IterableOnce[B]): immutable.IndexedSeq[B]
- def <(that: String): Boolean
- def <=(that: String): Boolean
- final def ==(arg0: Any): Boolean
- def >(that: String): Boolean
- def >=(that: String): Boolean
- final def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): b.type
- final def addString(b: mutable.StringBuilder, sep: String): b.type
- final def addString(b: mutable.StringBuilder): b.type
- def appended(c: Char): String
- def appended[B >: Char](elem: B): immutable.IndexedSeq[B]
- def appendedAll(suffix: String): String
- def appendedAll[B >: Char](suffix: IterableOnce[B]): immutable.IndexedSeq[B]
- def apply(i: Int): Char
- final def asInstanceOf[T0]: T0
- def capitalize: String
- def charStepper: IntStepper with EfficientSplit
- def codePointStepper: IntStepper with EfficientSplit
- def collect[B](pf: PartialFunction[Char, B]): immutable.IndexedSeq[B]
- def collect(pf: PartialFunction[Char, Char]): String
- def combinations(n: Int): Iterator[String]
- def compare(that: String): Int
- def concat(suffix: String): String
- def concat(suffix: IterableOnce[Char]): String
- def concat[B >: Char](suffix: IterableOnce[B]): immutable.IndexedSeq[B]
- def contains(elem: Char): Boolean
- def copyToArray(xs: Array[Char], start: Int, len: Int): Int
- def copyToArray(xs: Array[Char], start: Int): Int
- def copyToArray(xs: Array[Char]): Int
- def count(p: (Char) => Boolean): Int
- def diff[B >: Char](that: Seq[B]): String
- def distinct: String
- def distinctBy[B](f: (Char) => B): String
- def drop(n: Int): String
- def dropRight(n: Int): String
- def dropWhile(p: (Char) => Boolean): String
- def ensuring(cond: (StringOps) => Boolean, msg: => Any): StringOps
- def ensuring(cond: (StringOps) => Boolean): StringOps
- def ensuring(cond: Boolean, msg: => Any): StringOps
- def ensuring(cond: Boolean): StringOps
- def exists(p: (Char) => Boolean): Boolean
- def filter(pred: (Char) => Boolean): String
- def filterNot(pred: (Char) => Boolean): String
- def find(p: (Char) => Boolean): Option[Char]
- def flatMap(f: (Char) => String): String
- def flatMap[B](f: (Char) => IterableOnce[B]): immutable.IndexedSeq[B]
- def fold[A1 >: Char](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, Char) => B): B
- def foldRight[B](z: B)(op: (Char, B) => B): B
- def forall(p: (Char) => Boolean): Boolean
- def foreach[U](f: (Char) => U): Unit
- def format(args: Any*): String
- def formatLocal(l: Locale, args: Any*): String
- def getClass(): Class[_ <: AnyVal]
- def groupBy[K](f: (Char) => K): immutable.Map[K, String]
- def grouped(size: Int): Iterator[String]
- def head: Char
- def headOption: Option[Char]
- def indexWhere(p: (Char) => Boolean, from: Int = 0): Int
- def indices: Range
- def init: String
- def inits: Iterator[String]
- def intersect[B >: Char](that: Seq[B]): String
- final def isInstanceOf[T0]: Boolean
- def iterator: Iterator[Char]
- def knownSize: Int
- def last: Char
- def lastIndexWhere(p: (Char) => Boolean, end: Int = Int.MaxValue): Int
- def lastOption: Option[Char]
- def lazyZip[B](that: Iterable[B]): LazyZip2[Char, B, String]
- def lengthCompare(len: Int): Int
- def lengthIs: Int
- def linesIterator: Iterator[String]
- def linesWithSeparators: Iterator[String]
- def map(f: (Char) => Char): String
- def map[B](f: (Char) => B): immutable.IndexedSeq[B]
- final def mkString: String
- final def mkString(sep: String): String
- final def mkString(start: String, sep: String, end: String): String
- def nonEmpty: Boolean
- def padTo(len: Int, elem: Char): String
- def padTo[B >: Char](len: Int, elem: B): immutable.IndexedSeq[B]
- def partition(p: (Char) => Boolean): (String, String)
- def partitionMap(f: (Char) => Either[Char, Char]): (String, String)
- def patch(from: Int, other: String, replaced: Int): String
- def patch(from: Int, other: IterableOnce[Char], replaced: Int): String
- def patch[B >: Char](from: Int, other: IterableOnce[B], replaced: Int): immutable.IndexedSeq[B]
- def permutations: Iterator[String]
- def prepended(c: Char): String
- def prepended[B >: Char](elem: B): immutable.IndexedSeq[B]
- def prependedAll(prefix: String): String
- def prependedAll[B >: Char](prefix: IterableOnce[B]): immutable.IndexedSeq[B]
- def r: Regex
- def reverse: String
- def reverseIterator: Iterator[Char]
- def size: Int
- def sizeCompare(otherSize: Int): Int
- def sizeIs: Int
- def slice(from: Int, until: Int): String
- def sliding(size: Int, step: Int = 1): Iterator[String]
- def sortBy[B](f: (Char) => B)(implicit ord: Ordering[B]): String
- def sortWith(lt: (Char, Char) => Boolean): String
- def sorted[B >: Char](implicit ord: Ordering[B]): String
- def span(p: (Char) => Boolean): (String, String)
- def split(separators: Array[Char]): Array[String]
- def split(separator: Char): Array[String]
- def splitAt(n: Int): (String, String)
- def stepper: IntStepper with EfficientSplit
- def stripLineEnd: String
- def stripMargin: String
- def stripMargin(marginChar: Char): String
- def stripPrefix(prefix: String): String
- def stripSuffix(suffix: String): String
- def tail: String
- def tails: Iterator[String]
- def take(n: Int): String
- def takeRight(n: Int): String
- def takeWhile(p: (Char) => Boolean): String
- def toArray[B >: Char](implicit tag: ClassTag[B]): Array[B]
- def toBoolean: Boolean
- def toBooleanOption: Option[Boolean]
- def toByte: Byte
- def toByteOption: Option[Byte]
- def toDouble: Double
- def toDoubleOption: Option[Double]
- def toFloat: Float
- def toFloatOption: Option[Float]
- def toInt: Int
- def toIntOption: Option[Int]
- def toLong: Long
- def toLongOption: Option[Long]
- def toShort: Short
- def toShortOption: Option[Short]
- def toString(): String
- def updated(index: Int, elem: Char): String
- def view: StringView
- def withFilter(p: (Char) => Boolean): StringOps.WithFilter