_methods

trait _methods

Char Extension Methods

Extension methods universaly avaialble for type scala.Char

Source
_methods.scala
class java.lang.Object
trait scala.Matchable
class Any

Def

@targetName("range")
inline def <>(to: Char): Char.Range

Range

Range

Returns Char.Range from current to given value

 ('a' <> 'd').tp  // Prints  a <> d
Source
_methods.scala
@targetName("rangeOfSize")
inline def <>=(size: Int): Char.Range

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
@targetName("rangeX")
inline def <>>(to: Char): Char.Range

Exclusive end range

Exclusive end range

Returns Char.Range from current to given value exclusive

 ('a' <>> 'd').tp  // Prints  a <> c
Source
_methods.scala
@targetName("Opt")
inline def ?: Char.Opt

To option

To option

Returns Char.Opt for current value

 val o : Char.Opt = 'A'.?
Source
_methods.scala
inline def isAlphabetic: Boolean

Is alphabetic check

Is alphabetic check

Inlines call to java.lang.Character.isAlphabetic

Source
_methods.scala
inline def isDigit: Boolean

Is digit check

Is digit check

Inlines call to java.lang.Character.isDigit

Source
_methods.scala
inline def isLetter: Boolean

Is letter check

Is letter check

Inlines call to java.lang.Character.isLetter

Source
_methods.scala
inline def isLetterOrDigit: Boolean

Is letter or digit check

Is letter or digit check

Inlines call to java.lang.Character.isLetterOrDigit

Source
_methods.scala
inline def isLower: Boolean

Lower case check

Lower case check

Inlines call to java.lang.Character.isLowerCase

Source
_methods.scala
inline def isUpper: Boolean

Upper case check

Upper case check

Inlines call to java.lang.Character.isUpperCase

Source
_methods.scala
inline def isWhitespace: Boolean

Whitespace check

Whitespace check

Inlines call to java.lang.Character.isWhitespace

Source
_methods.scala
inline def lower: Char

Make lower case

Make lower case

Inlines call to java.lang.Character.toLowerCase

Source
_methods.scala
inline def max(v: Char): Char

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
inline def min(v: Char): Char

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
inline def name: String

Char name

Char name

Inlines call to java.lang.Character.getName

Source
_methods.scala
inline def toByte: Byte

Make Byte

Make Byte

Attached Byte constructor

Source
_methods.scala
inline def toChar: Char

Make Char

Make Char

Returns underlying value

Source
_methods.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Source
_methods.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Source
_methods.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Source
_methods.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Source
_methods.scala
inline def toRef: java.lang.Character

Make Character

Make Character

Attached Character constructor

Source
_methods.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Source
_methods.scala
inline def upper: Char

Make upper case

Make upper case

Inlines call to java.lang.Character.toUpperCase

Source
_methods.scala