_methods

trait _methods

Char Extension Methods

Extension methods universaly avaialble for type scala.Char

Source
_methods.scala
trait Char.Z.ToPrimitives[Char]
class java.lang.Object
trait scala.Matchable
class Any

Def

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

Range

Range

Returns Char.<> from current to given value

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

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

Exclusive end range

Exclusive end range

Returns Char.<> from current to given value exclusive

 ('a' <>> 'd').tp  // Prints  a <> c
Source
_methods.scala
@scala.annotation.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 atLeast(v: Char): Char

Max

Max

Returns maximum of current or given value

 val v = 'D'

 v.atLeast('A').tp   // Prints D

 v.atLeast('F').tp   // Prints F
Source
_methods.scala
inline def atMost(v: Char): Char

Min

Min

Returns minimun of current or given value

val v = 'D'

v.atMost('A').tp   // Prints A

v.atMost('F').tp   // Prints D
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 name: String

Char name

Char name

Inlines call to java.lang.Character.getName

Source
_methods.scala
inline def upper: Char

Make upper case

Make upper case

Inlines call to java.lang.Character.toUpperCase

Source
_methods.scala

Make

inline def Byte: Byte

Make Byte

Make Byte

Attached Byte constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Char: Char

Make Char

Make Char

Returnes underlying value

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Double: Double

Make Double

Make Double

Attached Double constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Float: Float

Make Float

Make Float

Attached Float constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Int: Int

Make Int

Make Int

Attached Int constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Long: Long

Make Long

Make Long

Attached Long constructor

Inherited from
toPrimitives
Source
toPrimitives.scala
inline def Short: Short

Make Short

Make Short

Attached Short constructor

Inherited from
toPrimitives
Source
toPrimitives.scala