object CharUtils
- Alphabetic
- By Inheritance
- CharUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val LongMinValueChars: Array[Char]
- def appendLowerHexString(sb: StringBuilder, long: Long): StringBuilder
Append the lower-case hex representation of the given long to the given StringBuilder.
- def appendUpperHexString(sb: StringBuilder, long: Long): StringBuilder
Append the lower-case hex representation of the given long to the given StringBuilder.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def escape(s: String): String
- def escape(c: Char): String
- val escapedChars: CharPredicate
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getSignedDecimalChars(long: Long, endIndex: Int, buf: Array[Char]): Unit
Converts the given Long value into its signed decimal character representation.
Converts the given Long value into its signed decimal character representation. The characters are placed into the given buffer *before* the given
endIndex(exclusively). CAUTION: This algorithm cannot deal withLong.MinValue, you'll need to special case this value! - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hexValue(c: Char): Int
Returns the int value of a given hex digit char.
Returns the int value of a given hex digit char. Note: this implementation is very fast (since it's branchless) and therefore does not perform ANY range checks!
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lowerHexDigit(int: Int): Char
Returns the lower-case hex digit corresponding to the last 4 bits of the given Int.
Returns the lower-case hex digit corresponding to the last 4 bits of the given Int. (fast branchless implementation)
- def lowerHexDigit(long: Long): Char
Returns the lower-case hex digit corresponding to the last 4 bits of the given Long.
Returns the lower-case hex digit corresponding to the last 4 bits of the given Long. (fast branchless implementation)
- def lowerHexString(long: Long): String
Efficiently converts the given long into a lower-case hex string.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def numberOfDecimalDigits(long: Long): Int
Computes the number of characters required for the signed decimal representation of the given integer.
- def numberOfHexDigits(l: Long): Int
Computes the number of hex digits required to represent the given integer.
Computes the number of hex digits required to represent the given integer. Leading zeros are not counted.
- def signedDecimalChars(long: Long): Array[Char]
Returns a char array representing the given long in signed decimal representation.
- def signedDecimalString(long: Long): String
Returns a String representing the given long in signed decimal representation.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLowerCase(c: Char): Char
Efficiently lower-cases the given character.
Efficiently lower-cases the given character. Note: only works for 7-bit ASCII letters.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toUpperCase(c: Char): Char
Efficiently upper-cases the given character.
Efficiently upper-cases the given character. Note: only works for 7-bit ASCII letters.
- def upperHexDigit(int: Int): Char
Returns the upper-case hex digit corresponding to the last 4 bits of the given Int.
Returns the upper-case hex digit corresponding to the last 4 bits of the given Int. (fast branchless implementation)
- def upperHexDigit(long: Long): Char
Returns the upper-case hex digit corresponding to the last 4 bits of the given Long.
Returns the upper-case hex digit corresponding to the last 4 bits of the given Long. (fast branchless implementation)
- def upperHexString(long: Long): String
Efficiently converts the given long into an upper-case hex string.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()