object TextTools
A class with functions to manipulate text strings. Based on an old
TextTools
version that hid all the strings in static variables
inside the class. This has all been removed and now everything is explicit
and exposed.
- Alphabetic
- By Inheritance
- TextTools
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def capitalize(input: String): String
Converts the first character of this String to upper case.
Converts the first character of this String to upper case.
- input
the string to convert
- returns
the converted string
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def decrypt(input: String): String
Decrypts a string using a variant of the Caesar-5 cipher (using all values in [0,255])
Decrypts a string using a variant of the Caesar-5 cipher (using all values in [0,255])
- input
the string to decrypt
- returns
the decrypted string
- def deleteConsonants(input: String): String
Replaces every consonant in the given string with ' '
Replaces every consonant in the given string with ' '
- input
the string to obfuscate
- returns
the obfuscated string
- def deleteVowels(input: String): String
Replaces every vowel in the given string with ' '
Replaces every vowel in the given string with ' '
- input
the string to obfuscate
- returns
the obfuscated string
- def encrypt(input: String): String
Encrypts a string using a variant of the Caesar-5 cipher (using all values in [0,255])
Encrypts a string using a variant of the Caesar-5 cipher (using all values in [0,255])
- input
the string to encrypt
- returns
the encrypted string
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def invert(input: String): String
Inverts a complete String (left to right)
Inverts a complete String (left to right)
- input
the string to invert
- returns
the inverted String
- See also
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def readBoolean(): Boolean
Get a boolean value (
true
,false
) from the console.Get a boolean value (
true
,false
) from the console.- returns
true
if the typed value is true,false
otherwise
- See also
- def readChar(): Char
Get a Char from the console.
Get a Char from the console.
- returns
the typed Char
- See also
Character
- def readDouble(): Double
Get a double value from the console.
- def readInt(): Int
Get an integer value from the console.
Get an integer value from the console. Can read octal and hexadecimal formats as well (prefixed by
0
, respectively0x
/0X
)- returns
the typed Int
- See also
Integer
- def readText(): String
Get a line of text from the console.
- def reverse(input: String): String
Reverse the given string
input
Reverse the given string
input
- input
the string to reverse
- returns
the reversed string
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLowerCase(input: String): String
Converts all of the characters in this String to lower case.
Converts all of the characters in this String to lower case.
- input
the string to convert
- returns
the converted string
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toUpperCase(input: String): String
Converts all of the characters in this String to upper case.
Converts all of the characters in this String to upper case.
- input
the string to convert
- returns
the converted string
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated