Packages

final class StringOps extends AnyVal with IterableOps[Char] with SeqMonoTransforms[Char, String] with IterablePolyTransforms[Char, List] with Buildable[Char, String] with ArrayLike[Char]

Linear Supertypes
ArrayLike[Char], Buildable[Char, String], IterablePolyTransforms[Char, List], SeqMonoTransforms[Char, String], IterableMonoTransforms[Char, String], IterableOps[Char], AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringOps
  2. ArrayLike
  3. Buildable
  4. IterablePolyTransforms
  5. SeqMonoTransforms
  6. IterableMonoTransforms
  7. IterableOps
  8. AnyVal
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringOps(s: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def ++(xs: String): String

    Another overloaded version of ++.

  4. def ++(xs: IterableOnce[Char]): String

    Overloaded version of ++ that gives back a string, where the inherited version gives back a sequence.

  5. def ++[B >: Char](xs: IterableOnce[B]): List[B]

    Concatenation

    Concatenation

    Definition Classes
    IterablePolyTransforms
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  7. def apply(i: Int): Char
    Definition Classes
    StringOpsArrayLike
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def className: String

    The class name of this collection.

    The class name of this collection. To be used for converting to string. Collections generally print like this:

    <className>(elem_1, ..., elem_n)

    Definition Classes
    StringOpsIterableOps
  10. def coll: StringView
    Attributes
    protected
    Definition Classes
    StringOpsIterablePolyTransformsIterableMonoTransformsIterableOps
  11. def copyToArray[B >: Char](xs: Array[B], start: Int = 0): xs.type

    Copy all elements of this collection to array xs, starting at start.

    Copy all elements of this collection to array xs, starting at start.

    Definition Classes
    IterableOps
  12. def drop(n: Int): String

    The rest of the collection without its n first elements.

    The rest of the collection without its n first elements. For linear, immutable collections this should avoid making a copy.

    Definition Classes
    IterableMonoTransforms
  13. def filter(p: (Char) ⇒ Boolean): String

    All elements satisfying predicate p

    All elements satisfying predicate p

    Definition Classes
    IterableMonoTransforms
  14. def flatMap(f: (Char) ⇒ String): String

    Overloaded version of flatMap that gives back a string, where the inherited version gives back a sequence.

  15. def flatMap[B](f: (Char) ⇒ IterableOnce[B]): List[B]

    Flatmap

    Flatmap

    Definition Classes
    IterablePolyTransforms
  16. def foldLeft[B](z: B)(op: (B, Char) ⇒ B): B

    Fold left

    Fold left

    Definition Classes
    IterableOps
  17. def foldRight[B](z: B)(op: (Char, B) ⇒ B): B

    Fold right

    Fold right

    Definition Classes
    IterableOps
  18. def foreach[U](f: (Char) ⇒ U): Unit

    Apply f to each element for its side effects Note: [U] parameter needed to help scalac's type inference.

    Apply f to each element for its side effects Note: [U] parameter needed to help scalac's type inference.

    Definition Classes
    IterableOps
  19. def fromIterable[B](coll: Iterable[B]): List[B]
    Definition Classes
    StringOpsIterablePolyTransforms
  20. def fromIterableWithSameElemType(coll: Iterable[Char]): String
    Attributes
    protected
    Definition Classes
    StringOpsIterableMonoTransforms
  21. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  22. def head: Char

    The first element of the collection.

    The first element of the collection.

    Definition Classes
    IterableOps
  23. def indexWhere(p: (Char) ⇒ Boolean): Int

    The index of the first element in this collection for which p holds.

    The index of the first element in this collection for which p holds.

    Definition Classes
    IterableOps
  24. def isEmpty: Boolean

    Is the collection empty?

    Is the collection empty?

    Definition Classes
    IterableOps
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def iterator(): Iterator[Char]
  27. def knownSize: Int

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise.

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

    Definition Classes
    StringOpsIterableOps
  28. def length: Int
    Definition Classes
    StringOpsArrayLike
  29. def map(f: (Char) ⇒ Char): String

    Overloaded version of map that gives back a string, where the inherited version gives back a sequence.

  30. def map[B](f: (Char) ⇒ B): List[B]

    Map

    Map

    Definition Classes
    IterablePolyTransforms
  31. def mkString(sep: String): String

    A string showing all elements of this collection, separated by string sep.

    A string showing all elements of this collection, separated by string sep.

    Definition Classes
    IterableOps
  32. def newBuilder: StringBuilder

    Creates a new builder.

    Creates a new builder.

    Attributes
    protected[this]
    Definition Classes
    StringOpsBuildable
  33. def nonEmpty: Boolean

    Is the collection not empty?

    Is the collection not empty?

    Definition Classes
    IterableOps
  34. def partition(p: (Char) ⇒ Boolean): (String, String)

    Optimized, push-based version of partition.

    Optimized, push-based version of partition.

    Definition Classes
    BuildableIterableMonoTransforms
  35. def reverse: String
    Definition Classes
    SeqMonoTransforms
  36. val s: String
  37. def size: Int

    The number of elements in this collection.

    The number of elements in this collection. Does not terminate for infinite collections.

    Definition Classes
    IterableOps
  38. def tail: String

    The rest of the collection without its first element.

    The rest of the collection without its first element.

    Definition Classes
    IterableMonoTransforms
  39. def take(n: Int): String

    A collection containing the first n elements of this collection.

    A collection containing the first n elements of this collection.

    Definition Classes
    IterableMonoTransforms
  40. def to[C[X] <: Iterable[X]](fi: FromIterable[C]): C[Char]

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A].

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A]. Example uses:

    xs.to(List) xs.to(ArrayBuffer)

    Definition Classes
    IterableOps
  41. def toArray[B >: Char](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

    Convert collection to array.

    Definition Classes
    IterableOps
  42. def toString(): String
    Definition Classes
    IterableOps → Any
  43. def view: View[Char]

    A view representing the elements of this collection.

    A view representing the elements of this collection.

    Definition Classes
    IterableOps
  44. def zip[B](xs: IterableOnce[B]): List[(Char, B)]

    Zip.

    Zip. Interesting because it requires to align to source collections.

    Definition Classes
    IterablePolyTransforms

Inherited from ArrayLike[Char]

Inherited from Buildable[Char, String]

Inherited from IterablePolyTransforms[Char, List]

Inherited from SeqMonoTransforms[Char, String]

Inherited from IterableMonoTransforms[Char, String]

Inherited from IterableOps[Char]

Inherited from AnyVal

Inherited from Any

Ungrouped