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 asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. 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"

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

  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. val datep1 : Pattern

  11. val datep2 : Pattern

  12. def decUrl : String

  13. def denull : String

  14. def encJson : String

  15. def encUrl : String

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

  16. def eq (arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  21. def isBlank : Boolean

  22. def isDate : Boolean

  23. def isEmail : Boolean

    Does this string represent a valid email address?

  24. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  25. def isInt : Boolean

  26. def lowerWord : String

  27. def matches (r: Regex): Boolean

  28. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  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 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, ...

  34. def plural : String

    Generates a plural form of a singular word.

  35. def possessive : String

    Generates a possessive form of a singular word.

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

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

  38. def suffix (sep: Char): String

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

    Attributes
    final
    Definition Classes
    AnyRef
  40. def toBigInt : BigInt

  41. def toJson : JsonNode

  42. 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"

  43. def toLaxDate (f: String): Date

  44. def toLaxDate : Date

  45. def toLaxDateTime (f: String): Date

  46. def toLaxDateTime : Date

  47. def toLaxDouble : Double

  48. def toLaxInt : Int

  49. def toLaxLong : Long

  50. def toLiftJson : JValue

  51. def toString (): String

    Definition Classes
    AnyRef → Any
  52. def toXml : Elem

  53. def uncapitalize : String

  54. def wait (): Unit

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

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

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

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

    Example:

    Example:

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

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

    Equivalent to: !s.

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

Inherited from AnyRef

Inherited from Any