|
Scala 2.3.3
|
final
class
RichString
extends
java.lang.Object
with
scala.Proxy
with
scala.Seq[scala.Char]
with
scala.Ordered[java.lang.String]
with
scala.ScalaObject
Constructor Summary | |
def
this
(self: java.lang.String)
|
Val Summary | |
val
self
: java.lang.String
|
Def Summary | |
def
apply
(n: scala.Int)
: scala.Char
Retrieve the n-th character of the string |
|
def
capitalize
: java.lang.String
Returns this string with first character converted to upper case |
|
def
compare
(other: java.lang.String)
: scala.Int
|
|
def
elements
: scala.Iterator[scala.Char]
|
|
def
length
: scala.Int
|
|
def
lines
: scala.Iterator[java.lang.String]
Return all lines in this string in an iterator, excluding trailing line end characters, i.e. apply .stripLineEnd to all lines
returned by linesWithSeparators .
|
|
def
linesWithSeparators
: java.lang.Object with scala.Iterator[java.lang.String]
Return all lines in this string in an iterator, including trailing line end characters. The number of strings returned is one greater than the number of line end characters in this string. For an empty string, a single empty line is returned. A line end character is one of
|
|
def
split
(separator: scala.Char)
: scala.Array[java.lang.String]
|
|
def
stripLineEnd
: java.lang.String
Strip trailing line end character from this string if it has one. A line end character is one of
If a line feed character LF is preceded by a carriage return CR (0x0D hex), the CR character is also stripped (Windows convention). |
|
def
stripMargin
(marginChar: scala.Char)
: java.lang.String
For every line in this string:
Strip a leading prefix consisting of blanks or control characters
followed by
|
|
def
stripMargin
: java.lang.String
For every line in this string:
Strip a leading prefix consisting of blanks or control characters
followed by
|
|
def
toByte
: scala.Byte
|
|
def
toDouble
: scala.Double
|
|
def
toFloat
: scala.Float
|
|
def
toInt
: scala.Int
|
|
def
toLong
: scala.Long
|
|
def
toShort
: scala.Short
|
Def inherited from scala.Proxy | |
equals , hashCode, self, toString |
Def inherited from scala.Seq[scala.Char] | |
++ , concat, contains, copyToArray, drop, dropWhile, filter, flatMap, isDefinedAt, isEmpty, lastIndexOf, length, map, reverse, slice, stringPrefix, subseq, super$drop, super$dropWhile, super$filter, super$take, super$takeWhile, take, takeWhile, toArray, toString |
Def inherited from scala.Ordered[java.lang.String] | |
< , <=, >, >=, compare, compareTo |
Constructor Detail |
Val Detail |
Def Detail |
def
apply
(n: scala.Int): scala.Char
index -
into the string
index
.
def
capitalize
: java.lang.String
def
compare
(other: java.lang.String): scala.Int
def
elements
: scala.Iterator[scala.Char]
def
length
: scala.Int
def
lines
: scala.Iterator[java.lang.String]
.stripLineEnd
to all lines
returned by linesWithSeparators
.
def
linesWithSeparators
: java.lang.Object with scala.Iterator[java.lang.String]
Return all lines in this string in an iterator, including trailing line end characters.
The number of strings returned is one greater than the number of line end characters in this string. For an empty string, a single empty line is returned. A line end character is one of
def
split
(separator: scala.Char): scala.Array[java.lang.String]
def
stripLineEnd
: java.lang.String
Strip trailing line end character from this string if it has one. A line end character is one of
If a line feed character LF is preceded by a carriage return CR (0x0D hex), the CR character is also stripped (Windows convention).
def
stripMargin
(marginChar: scala.Char): java.lang.String
For every line in this string:
Strip a leading prefix consisting of blanks or control characters
followed by marginChar
from the line.
def
stripMargin
: java.lang.String
For every line in this string:
Strip a leading prefix consisting of blanks or control characters
followed by |
from the line.
def
toByte
: scala.Byte
def
toDouble
: scala.Double
def
toFloat
: scala.Float
def
toInt
: scala.Int
def
toLong
: scala.Long
def
toShort
: scala.Short