|
Scala Library
|
|
scala/runtime/RichChar.scala]
final
class
RichChar(x : Char)
extends Proxy with Ordered[Char]For example, in the following code
object test extends Application {
Console.println('\40' .isWhitespace)
Console.println('\011'.isWhitespace)
Console.println('1'.asDigit == 1)
Console.println('A'.asDigit == 10)
}
the implicit conversions are performed using the predefined view
Predef.charWrapper.
| Methods inherited from Ordered | |
| <, >, <=, >=, compareTo |
| Methods inherited from Proxy | |
| hashCode, equals, toString |
| Methods inherited from AnyRef | |
| getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
def
self : Any
this with operand that.
returns x where
x < 0 iff this < that
x == 0 iff this == that
x > 0 iff this > that
def
asDigit : Int
def
isControl : Boolean
def
isDigit : Boolean
def
isLetter : Boolean
def
isLetterOrDigit : Boolean
def
isWhitespace : Boolean
def
isSpaceChar : Boolean
def
isHighSurrogate : Boolean
def
isLowSurrogate : Boolean
def
isUnicodeIdentifierStart : Boolean
def
isUnicodeIdentifierPart : Boolean
def
isIdentifierIgnorable : Boolean
def
isMirrored : Boolean
def
isLower : Boolean
def
isUpper : Boolean
def
isTitleCase : Boolean
def
toLower : Char
def
toUpper : Char
def
toTitleCase : Char
def
getType : Int
def
getNumericValue : Int
def
getDirectionality : Byte
def
reverseBytes : Char
def
toLowerCase : Char
def
toUpperCase : Char
def
isLowerCase : Boolean
def
isUpperCase : Boolean
def
until(limit : Char) : IndexedSeqView[Char, IndexedSeq[Char]]
[Char] over the characters from 'x' to 'y' - 1
def
to(y : Char) : IndexedSeqView[Char, IndexedSeq[Char]]
IndexedSeqView[Char] over the characters from 'x' to 'y'|
Scala Library
|
|