final class StringOps
extends AnyVal with IterableOps with SeqMonoTransforms with IterablePolyTransforms with Buildable with ArrayLike

Decorator to add collection operations to strings.

Constructors

StringOps ( s: String )

Members

val s : String
def ++ ( xs: IterableOnce [ Char ] ) : String

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

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

def ++ ( xs: String ) : String

Another overloaded version of ++.

Another overloaded version of ++.

def apply ( i: Int ) : A
override def className : String

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

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

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

 <className>(elem_1, ..., elem_n)
protected def coll : Iterable [ A ]
def flatMap ( f: Char => String ) : String

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

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

def fromIterable ( coll: Iterable [ B ] ) : List [ B ]
protected def fromIterableWithSameElemType ( coll: Iterable [ Char ] ) : String
def iterator : Iterator [ A ]
override def knownSize : Int

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

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

def length : Int
def map ( f: Char => Char ) : String

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

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

protected def newBuilder : Builder [ A, Repr ]

Creates a new builder.

Creates a new builder.