Scala Standard Library 2.13.15 - scala.collection.StringView (original) (raw)

final case class StringView(s: String) extends AbstractIndexedSeqView[Char] with Product with Serializable

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. StringView
  2. Product
  3. Equals
  4. AbstractIndexedSeqView
  5. IndexedSeqView
  6. IndexedSeqOps
  7. AbstractSeqView
  8. SeqView
  9. SeqOps
  10. AbstractView
  11. View
  12. Serializable
  13. AbstractIterable
  14. Iterable
  15. IterableFactoryDefaults
  16. IterableOps
  17. IterableOnceOps
  18. IterableOnce
  19. AnyRef
  20. Any

Implicitly

  1. by iterableOnceExtensionMethods

  2. by any2stringadd

  3. by StringFormat

  4. by Ensuring

  5. by ArrowAssoc

  6. Hide All

  7. Show All

Visibility

  1. Public
  2. Protected

Instance Constructors

  1. new StringView(s: String)

Value Members

  1. final def !=(arg0: Any): Boolean
  2. final def ##: Int
  3. def +(other: String): String
  4. final def ++[B >: Char](suffix: IterableOnce[B]): View[B]
  5. final def ++:[B >: Char](prefix: IterableOnce[B]): View[B]
  6. final def +:[B >: Char](elem: B): View[B]
  7. def ->[B](y: B): (StringView, B)
  8. final def :+[B >: Char](elem: B): View[B]
  9. final def :++[B >: Char](suffix: IterableOnce[B]): View[B]
  10. final def ==(arg0: Any): Boolean
  11. final def addString(b: mutable.StringBuilder): b.type
  12. final def addString(b: mutable.StringBuilder, sep: String): b.type
  13. def addString(b: mutable.StringBuilder, start: String, sep: String, end: String): b.type
  14. def appended[B >: Char](elem: B): IndexedSeqView[B]
  15. def appendedAll[B >: Char](suffix: SomeIndexedSeqOps[B]): IndexedSeqView[B]
  16. def appendedAll[B >: Char](suffix: SomeSeqOps[B]): SeqView[B]
  17. def appendedAll[B >: Char](suffix: IterableOnce[B]): View[B]
  18. def apply(n: Int): Char
  19. final def asInstanceOf[T0]: T0
  20. def className: String
  21. def clone(): AnyRef
  22. final def coll: StringView.this.type
  23. def collect[B](pf: PartialFunction[Char, B]): View[B]
  24. def collectFirst[B](pf: PartialFunction[Char, B]): Option[B]
  25. def combinations(n: Int): Iterator[View[Char]]
  26. def concat[B >: Char](suffix: SomeIndexedSeqOps[B]): IndexedSeqView[B]
  27. def concat[B >: Char](suffix: SomeSeqOps[B]): SeqView[B]
  28. final def concat[B >: Char](suffix: IterableOnce[B]): View[B]
  29. def contains[A1 >: Char](elem: A1): Boolean
  30. def containsSlice[B >: Char](that: Seq[B]): Boolean
  31. def copyToArray[B >: Char](xs: Array[B], start: Int, len: Int): Int
  32. def copyToArray[B >: Char](xs: Array[B], start: Int): Int
  33. def copyToArray[B >: Char](xs: Array[B]): Int
  34. def corresponds[B](that: Seq[B])(p: (Char, B) => Boolean): Boolean
  35. def corresponds[B](that: IterableOnce[B])(p: (Char, B) => Boolean): Boolean
  36. def count(p: (Char) => Boolean): Int
  37. def diff[B >: Char](that: Seq[B]): View[Char]
  38. def distinct: View[Char]
  39. def distinctBy[B](f: (Char) => B): View[Char]
  40. def drop(n: Int): IndexedSeqView[Char]
  41. def dropRight(n: Int): IndexedSeqView[Char]
  42. def dropWhile(p: (Char) => Boolean): View[Char]
  43. def empty: View[Char]
  44. def endsWith[B >: Char](that: Iterable[B]): Boolean
  45. def ensuring(cond: (StringView) => Boolean, msg: => Any): StringView
  46. def ensuring(cond: (StringView) => Boolean): StringView
  47. def ensuring(cond: Boolean, msg: => Any): StringView
  48. def ensuring(cond: Boolean): StringView
  49. final def eq(arg0: AnyRef): Boolean
  50. def exists(p: (Char) => Boolean): Boolean
  51. def filter(pred: (Char) => Boolean): View[Char]
  52. def filterNot(pred: (Char) => Boolean): View[Char]
  53. def finalize(): Unit
  54. def find(p: (Char) => Boolean): Option[Char]
  55. def findLast(p: (Char) => Boolean): Option[Char]
  56. def flatMap[B](f: (Char) => IterableOnce[B]): View[B]
  57. def flatten[B](implicit asIterable: (Char) => IterableOnce[B]): View[B]
  58. def fold[A1 >: Char](z: A1)(op: (A1, A1) => A1): A1
  59. def foldLeft[B](z: B)(op: (B, Char) => B): B
  60. def foldRight[B](z: B)(op: (Char, B) => B): B
  61. def forall(p: (Char) => Boolean): Boolean
  62. def foreach[U](f: (Char) => U): Unit
  63. def fromSpecific(coll: IterableOnce[Char]): View[Char]
  64. final def getClass(): Class[_ <: AnyRef]
  65. def groupBy[K](f: (Char) => K): immutable.Map[K, View[Char]]
  66. def groupMap[K, B](key: (Char) => K)(f: (Char) => B): immutable.Map[K, View[B]]
  67. def groupMapReduce[K, B](key: (Char) => K)(f: (Char) => B)(reduce: (B, B) => B): immutable.Map[K, B]
  68. def grouped(size: Int): Iterator[View[Char]]
  69. def head: Char
  70. def headOption: Option[Char]
  71. def indexOf[B >: Char](elem: B): Int
  72. def indexOf[B >: Char](elem: B, from: Int): Int
  73. def indexOfSlice[B >: Char](that: Seq[B]): Int
  74. def indexOfSlice[B >: Char](that: Seq[B], from: Int): Int
  75. def indexWhere(p: (Char) => Boolean): Int
  76. def indexWhere(p: (Char) => Boolean, from: Int): Int
  77. def indices: immutable.Range
  78. def init: View[Char]
  79. def inits: Iterator[View[Char]]
  80. def intersect[B >: Char](that: Seq[B]): View[Char]
  81. def isDefinedAt(idx: Int): Boolean
  82. def isEmpty: Boolean
  83. final def isInstanceOf[T0]: Boolean
  84. def isTraversableAgain: Boolean
  85. def iterableFactory: IterableFactory[View]
  86. def iterator: Iterator[Char]
  87. def knownSize: Int
  88. def last: Char
  89. def lastIndexOf[B >: Char](elem: B, end: Int = length - 1): Int
  90. def lastIndexOfSlice[B >: Char](that: Seq[B]): Int
  91. def lastIndexOfSlice[B >: Char](that: Seq[B], end: Int): Int
  92. def lastIndexWhere(p: (Char) => Boolean): Int
  93. def lastIndexWhere(p: (Char) => Boolean, end: Int): Int
  94. def lastOption: Option[Char]
  95. def lazyZip[B](that: Iterable[B]): LazyZip2[Char, B, StringView.this.type]
  96. def length: Int
  97. final def lengthCompare(that: Iterable[_]): Int
  98. final def lengthCompare(len: Int): Int
  99. final def lengthIs: SizeCompareOps
  100. def map[B](f: (Char) => B): IndexedSeqView[B]
  101. def max[B >: Char](implicit ord: math.Ordering[B]): Char
  102. def maxBy[B](f: (Char) => B)(implicit ord: math.Ordering[B]): Char
  103. def maxByOption[B](f: (Char) => B)(implicit ord: math.Ordering[B]): Option[Char]
  104. def maxOption[B >: Char](implicit ord: math.Ordering[B]): Option[Char]
  105. def min[B >: Char](implicit ord: math.Ordering[B]): Char
  106. def minBy[B](f: (Char) => B)(implicit ord: math.Ordering[B]): Char
  107. def minByOption[B](f: (Char) => B)(implicit ord: math.Ordering[B]): Option[Char]
  108. def minOption[B >: Char](implicit ord: math.Ordering[B]): Option[Char]
  109. final def mkString: String
  110. final def mkString(sep: String): String
  111. final def mkString(start: String, sep: String, end: String): String
  112. final def ne(arg0: AnyRef): Boolean
  113. def newSpecificBuilder: Builder[Char, View[Char]]
  114. def nonEmpty: Boolean
  115. final def notify(): Unit
  116. final def notifyAll(): Unit
  117. def occCounts[B](sq: Seq[B]): mutable.Map[B, Int]
  118. def padTo[B >: Char](len: Int, elem: B): View[B]
  119. def partition(p: (Char) => Boolean): (View[Char], View[Char])
  120. def partitionMap[A1, A2](f: (Char) => Either[A1, A2]): (View[A1], View[A2])
  121. def patch[B >: Char](from: Int, other: IterableOnce[B], replaced: Int): View[B]
  122. def permutations: Iterator[View[Char]]
  123. def prepended[B >: Char](elem: B): IndexedSeqView[B]
  124. def prependedAll[B >: Char](prefix: SomeIndexedSeqOps[B]): IndexedSeqView[B]
  125. def prependedAll[B >: Char](prefix: SomeSeqOps[B]): SeqView[B]
  126. def prependedAll[B >: Char](prefix: IterableOnce[B]): View[B]
  127. def product[B >: Char](implicit num: math.Numeric[B]): B
  128. def productElementNames: scala.Iterator[String]
  129. def reduce[B >: Char](op: (B, B) => B): B
  130. def reduceLeft[B >: Char](op: (B, Char) => B): B
  131. def reduceLeftOption[B >: Char](op: (B, Char) => B): Option[B]
  132. def reduceOption[B >: Char](op: (B, B) => B): Option[B]
  133. def reduceRight[B >: Char](op: (Char, B) => B): B
  134. def reduceRightOption[B >: Char](op: (Char, B) => B): Option[B]
  135. def reverse: IndexedSeqView[Char]
  136. def reverseIterator: Iterator[Char]
  137. def reversed: Iterable[Char]
  138. val s: String
  139. def sameElements[B >: Char](that: IterableOnce[B]): Boolean
  140. def scan[B >: Char](z: B)(op: (B, B) => B): View[B]
  141. def scanLeft[B](z: B)(op: (B, Char) => B): View[B]
  142. def scanRight[B](z: B)(op: (Char, B) => B): View[B]
  143. def search[B >: Char](elem: B, from: Int, to: Int)(implicit ord: math.Ordering[B]): SearchResult
  144. def search[B >: Char](elem: B)(implicit ord: math.Ordering[B]): SearchResult
  145. def segmentLength(p: (Char) => Boolean, from: Int): Int
  146. final def segmentLength(p: (Char) => Boolean): Int
  147. final def size: Int
  148. final def sizeCompare(that: Iterable[_]): Int
  149. final def sizeCompare(otherSize: Int): Int
  150. final def sizeIs: SizeCompareOps
  151. def slice(from: Int, until: Int): IndexedSeqView[Char]
  152. def sliding(size: Int, step: Int): Iterator[View[Char]]
  153. def sliding(size: Int): Iterator[View[Char]]
  154. def sortBy[B](f: (Char) => B)(implicit ord: Ordering[B]): View[Char]
  155. def sortWith(lt: (Char, Char) => Boolean): View[Char]
  156. def sorted[B >: Char](implicit ord: Ordering[B]): SeqView[Char]
  157. def span(p: (Char) => Boolean): (View[Char], View[Char])
  158. def splitAt(n: Int): (View[Char], View[Char])
  159. def startsWith[B >: Char](that: IterableOnce[B], offset: Int = 0): Boolean
  160. def stepper[S <: Stepper[_]](implicit shape: StepperShape[Char, S]): S with EfficientSplit
  161. def stringPrefix: String
  162. def sum[B >: Char](implicit num: math.Numeric[B]): B
  163. final def synchronized[T0](arg0: => T0): T0
  164. def tail: View[Char]
  165. def tails: Iterator[View[Char]]
  166. def take(n: Int): IndexedSeqView[Char]
  167. def takeRight(n: Int): IndexedSeqView[Char]
  168. def takeWhile(p: (Char) => Boolean): View[Char]
  169. def tapEach[U](f: (Char) => U): IndexedSeqView[Char]
  170. def to[C1](factory: Factory[Char, C1]): C1
  171. def toArray[B >: Char](implicit arg0: ClassTag[B]): Array[B]
  172. final def toBuffer[B >: Char]: Buffer[B]
  173. def toIndexedSeq: immutable.IndexedSeq[Char]
  174. def toList: immutable.List[Char]
  175. def toMap[K, V](implicit ev: <:<[Char, (K, V)]): immutable.Map[K, V]
  176. def toSeq: immutable.Seq[Char]
  177. def toSet[B >: Char]: immutable.Set[B]
  178. def toString(): String
  179. def toVector: immutable.Vector[Char]
  180. def transpose[B](implicit asIterable: (Char) => Iterable[B]): View[View[B]]
  181. def unzip[A1, A2](implicit asPair: (Char) => (A1, A2)): (View[A1], View[A2])
  182. def unzip3[A1, A2, A3](implicit asTriple: (Char) => (A1, A2, A3)): (View[A1], View[A2], View[A3])
  183. def updated[B >: Char](index: Int, elem: B): View[B]
  184. def view: IndexedSeqView[Char]
  185. final def wait(): Unit
  186. final def wait(arg0: Long, arg1: Int): Unit
  187. final def wait(arg0: Long): Unit
  188. def withFilter(p: (Char) => Boolean): WithFilter[Char, [_]View[_]]
  189. def zip[B](that: IterableOnce[B]): View[(Char, B)]
  190. def zipAll[A1 >: Char, B](that: Iterable[B], thisElem: A1, thatElem: B): View[(A1, B)]
  191. def zipWithIndex: View[(Char, Int)]

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, Char) => B): B
  2. final def /:[B](z: B)(op: (B, Char) => B): B
  3. def :\[B](z: B)(op: (Char, B) => B): B
  4. final def :\[B](z: B)(op: (Char, B) => B): B
  5. def aggregate[B](z: => B)(seqop: (B, Char) => B, combop: (B, B) => B): B
  6. def collectFirst[B](f: PartialFunction[Char, B]): Option[B]
  7. def companion: IterableFactory[[_]View[_]]
  8. def copyToBuffer(dest: Buffer[Char]): Unit
  9. final def copyToBuffer[B >: Char](dest: Buffer[B]): Unit
  10. def count(f: (Char) => Boolean): Int
  11. def exists(f: (Char) => Boolean): Boolean
  12. def filter(f: (Char) => Boolean): Iterator[Char]
  13. def find(p: (Char) => Boolean): Option[Char]
  14. def flatMap[B](f: (Char) => IterableOnce[B]): IterableOnce[B]
  15. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
  16. def foldLeft[B](z: B)(op: (B, Char) => B): B
  17. def foldRight[B](z: B)(op: (Char, B) => B): B
  18. def forall(f: (Char) => Boolean): Boolean
  19. def force: IndexedSeq[Char]
  20. def foreach[U](f: (Char) => U): Unit
  21. def formatted(fmtstr: String): String
  22. def hasDefiniteSize: Boolean
  23. def isEmpty: Boolean
  24. def map[B](f: (Char) => B): IterableOnce[B]
  25. def max(implicit ord: math.Ordering[Char]): Char
  26. def maxBy[B](f: (Char) => B)(implicit cmp: math.Ordering[B]): Char
  27. def min(implicit ord: math.Ordering[Char]): Char
  28. def minBy[B](f: (Char) => B)(implicit cmp: math.Ordering[B]): Char
  29. def mkString: String
  30. def mkString(sep: String): String
  31. def mkString(start: String, sep: String, end: String): String
  32. def nonEmpty: Boolean
  33. final def prefixLength(p: (Char) => Boolean): Int
  34. def product(implicit num: math.Numeric[Char]): Char
  35. def reduce(f: (Char, Char) => Char): Char
  36. def reduceLeft(f: (Char, Char) => Char): Char
  37. def reduceLeftOption(f: (Char, Char) => Char): Option[Char]
  38. def reduceOption(f: (Char, Char) => Char): Option[Char]
  39. def reduceRight(f: (Char, Char) => Char): Char
  40. def reduceRightOption(f: (Char, Char) => Char): Option[Char]
  41. final def repr: View[Char]
  42. def reverseMap[B](f: (Char) => B): View[B]
  43. def sameElements[B >: A](that: IterableOnce[B]): Boolean
  44. def seq: StringView.this.type
  45. def size: Int
  46. def sum(implicit num: math.Numeric[Char]): Char
  47. def to[C1](factory: Factory[Char, C1]): C1
  48. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  49. def toBuffer[B >: A]: Buffer[B]
  50. def toIndexedSeq: IndexedSeq[Char]
  51. final def toIterable: Iterable[Char]
  52. final def toIterable: StringView.this.type
  53. def toIterator: Iterator[Char]
  54. final def toIterator: Iterator[Char]
  55. def toList: immutable.List[Char]
  56. def toMap[K, V](implicit ev: <:<[Char, (K, V)]): immutable.Map[K, V]
  57. def toSeq: immutable.Seq[Char]
  58. def toSet[B >: A]: immutable.Set[B]
  59. def toStream: immutable.Stream[Char]
  60. final def toStream: immutable.Stream[Char]
  61. final def toTraversable: Traversable[Char]
  62. final def toTraversable: Traversable[Char]
  63. def toVector: immutable.Vector[Char]
  64. final def union[B >: Char](that: Seq[B]): View[B]
  65. def view(from: Int, until: Int): IndexedSeqView[Char]
  66. def withFilter(f: (Char) => Boolean): Iterator[Char]
  67. def →[B](y: B): (StringView, B)

Ungrouped