_methods
Char Extension Methods
Extension methods universaly avaialble for type scala.Char
- Source
- _methods.scala
Def
Range
Range
Returns Char.Range from current to given value
('a' <> 'd').tp // Prints a <> d
- Source
- _methods.scala
Range by size
Range by size
Returns Char.Range starting at current value and with given size
('a' <>= 5).tp // Prints a <> e
- Source
- _methods.scala
Exclusive end range
Exclusive end range
Returns Char.Range from current to given value exclusive
('a' <>> 'd').tp // Prints a <> c
- Source
- _methods.scala
To option
To option
Returns Char.Opt for current value
val o : Char.Opt = 'A'.?
- Source
- _methods.scala
Is alphabetic check
Is alphabetic check
Inlines call to java.lang.Character.isAlphabetic
- Source
- _methods.scala
Is letter or digit check
Is letter or digit check
Inlines call to java.lang.Character.isLetterOrDigit
- Source
- _methods.scala
Lower case check
Lower case check
Inlines call to java.lang.Character.isLowerCase
- Source
- _methods.scala
Upper case check
Upper case check
Inlines call to java.lang.Character.isUpperCase
- Source
- _methods.scala
Whitespace check
Whitespace check
Inlines call to java.lang.Character.isWhitespace
- Source
- _methods.scala
Make lower case
Make lower case
Inlines call to java.lang.Character.toLowerCase
- Source
- _methods.scala
Max value
Max value
Returns maximum of current or given value
val v = 'D'
v.max('A').tp // Prints D
v.max('F').tp // Prints F
- Source
- _methods.scala
Min value
Min value
Returns minimun of current or given value
val v = 'D'
v.min('A').tp // Prints A
v.min('F').tp // Prints D
- Source
- _methods.scala
Make upper case
Make upper case
Inlines call to java.lang.Character.toUpperCase
- Source
- _methods.scala