org.tyranid.text

StringImp

class StringImp extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. StringImp
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringImp (s: String)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def allBlank : Boolean

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def camelCaseToSpaceUpper : String

    Used to generate a display name from a camelcase name.

    Used to generate a display name from a camelcase name.

    Example: "helloThere" to "Hello There"

  9. def camelCaseToUnderLower : String

    Used to a case-insensitive identifier from a camelcase identifier, like for example a SQL database field.

    Used to a case-insensitive identifier from a camelcase identifier, like for example a SQL database field.

    Example: "helloThere" to "hello_there"

  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def decUrl : String

  12. def denull : String

  13. def encJson : String

  14. def encUrl : String

    Named this way to be similar to Lift's "encJs" method on Strings.

  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. def isBlank : Boolean

  21. def isDate (dateOnly: Boolean = false): Boolean

    This method does all the work of parseDate, so it is slow.

    This method does all the work of parseDate, so it is slow. Only use if you don't need the date value.

  22. def isEmail : Boolean

    Does this string represent a valid email address?

  23. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  24. def isInt : Boolean

  25. def lowerWord : String

  26. def matches (r: Regex): Boolean

  27. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notAllBlank : Boolean

  29. def notBlank : Boolean

  30. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  31. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  32. def or (fallback: String): String

    Similar to Groovy's ?: (Elvis) operator.

    Similar to Groovy's ?: (Elvis) operator.

    Example: user.name or "Unknown"

  33. def parseCalendar (dateOnly: Boolean = false, userTime: Boolean = false): Calendar

  34. def parseDate (dateOnly: Boolean = false, userTime: Boolean = false): Date

  35. def plural (cnt: Int): String

    Generates a plural form of a singular word based if the passed in number is not 1.

    Generates a plural form of a singular word based if the passed in number is not 1. i.e. 0 cats, 1 cat, 2 cats, ...

  36. def plural : String

    Generates a plural form of a singular word.

  37. def possessive : String

    Generates a possessive form of a singular word.

  38. def splitFirst (sep: Char): (String, String)

  39. val substitutions : Array[(Regex, String)]

  40. def suffix (sep: Char): String

  41. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  42. def toBigInt : BigInt

  43. def toDate (format: String): Date

  44. def toJson : JsonNode

  45. def toLaxBoolean : Boolean

    Scala's StringOps defines a toBoolean(), but it is very minimal .

    Scala's StringOps defines a toBoolean(), but it is very minimal ... it only accepts "true" and "false"

  46. def toLaxChar (): String

  47. def toLaxDate : Date

    Warning! If the date is invalid, null is returned.

    Warning! If the date is invalid, null is returned. Use parseCalendar() and look for a ParseException with a description of any parsing errors if user error reporting is needed.

  48. def toLaxDateTime : Date

    Warning! If the date is invalid, null is returned.

    Warning! If the date is invalid, null is returned. Use parseCalendar() and look for a ParseException with a description of any parsing errors if user error reporting is needed.

  49. def toLaxDouble : Double

  50. def toLaxInt : Int

  51. def toLaxLong : Long

  52. def toLaxMoney (): Double

  53. def toLiftJson : JValue

  54. def toNodeSeq : NodeSeq

  55. def toString (): String

    Definition Classes
    AnyRef → Any
  56. def toXml : Elem

  57. def tokenize : Array[String]

  58. def uncapitalize : String

  59. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  60. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  61. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  62. def word : String

  63. def |* (v: (String) ⇒ String): String

    Example:

    Example:

    "foo" |* ( "class=\"" + _ + "\"" ) becomes: class="foo" "" |* ( "class=\"" + _ + "\"" ) becomes: (empty string)

  64. def |* (v: ⇒ String): String

    Equivalent to: !s.

    Equivalent to: !s.isBlank |* ...

Inherited from AnyRef

Inherited from Any