Packages

o

hevs.utils

TextTools

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextTools
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. 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

  8. 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

  9. 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

  10. 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

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. 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

    reverse

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. 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

    java.lang.Boolean

  21. def readChar(): Char

    Get a Char from the console.

    Get a Char from the console.

    returns

    the typed Char

    See also

    Character

  22. def readDouble(): Double

    Get a double value from the console.

    Get a double value from the console.

    returns

    they typed Double

    See also

    java.lang.Double

  23. 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, respectively 0x/0X)

    returns

    the typed Int

    See also

    Integer

  24. def readText(): String

    Get a line of text from the console.

  25. def reverse(input: String): String

    Reverse the given string input

    Reverse the given string input

    input

    the string to reverse

    returns

    the reversed string

  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. 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

  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. 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

  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped