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. def decUrl : String

  11. def denull : String

  12. def encJson : String

  13. def encUrl : String

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

  14. def eq (arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  19. def isBlank : Boolean

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

  21. def isEmail : Boolean

    Does this string represent a valid email address?

  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def isInt : Boolean

  24. def lowerWord : String

  25. def matches (r: Regex): Boolean

  26. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  27. def notBlank : Boolean

  28. def notify (): Unit

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

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

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

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

    Example: user.name or "Unknown"

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

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

  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 toDate (format: String): Date

  42. def toJson : JsonNode

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

  44. def toLaxChar (): String

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

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

  47. def toLaxDouble : Double

  48. def toLaxInt : Int

  49. def toLaxLong : Long

  50. def toLaxMoney (): Double

  51. def toLiftJson : JValue

  52. def toNodeSeq : NodeSeq

  53. def toString (): String

    Definition Classes
    AnyRef → Any
  54. def toXml : Elem

  55. def uncapitalize : String

  56. def wait (): Unit

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

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

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

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

    Example:

    Example:

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

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

    Equivalent to: !s.

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

Inherited from AnyRef

Inherited from Any