Packages

c

scail.commons.ops.string

InflectorOps

implicit final class InflectorOps extends AnyVal

Extension methods for inflection (singular/plural) and naming case convention transformations.

Source
string.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InflectorOps
  2. AnyVal
  3. Any
Implicitly
  1. by AnyOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InflectorOps(value: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from InflectorOps to any2stringadd[InflectorOps] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (InflectorOps, B)
    Implicit
    This member is added by an implicit conversion from InflectorOps to ArrowAssoc[InflectorOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def ensuring(cond: (InflectorOps) ⇒ Boolean, msg: ⇒ Any): InflectorOps
    Implicit
    This member is added by an implicit conversion from InflectorOps to Ensuring[InflectorOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (InflectorOps) ⇒ Boolean): InflectorOps
    Implicit
    This member is added by an implicit conversion from InflectorOps to Ensuring[InflectorOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: ⇒ Any): InflectorOps
    Implicit
    This member is added by an implicit conversion from InflectorOps to Ensuring[InflectorOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): InflectorOps
    Implicit
    This member is added by an implicit conversion from InflectorOps to Ensuring[InflectorOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from InflectorOps to StringFormat[InflectorOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  12. def future: Future[InflectorOps]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    returns

    the already completed Future with the specified result

    Implicit
    This member is added by an implicit conversion from InflectorOps to AnyOps[InflectorOps] performed by method AnyOps in scail.commons.ops.
    Definition Classes
    AnyOps
    Annotations
    @inline()
  13. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  14. def humanize(removableTokens: String*): String

    Capitalizes the first word and turns underscores into spaces and strips trailing "_id" and any supplied removable tokens.

    Capitalizes the first word and turns underscores into spaces and strips trailing "_id" and any supplied removable tokens.

    removableTokens

    optional array of tokens that are to be removed

    returns

    the humanized string

    Annotations
    @inline()
  15. def humanize: String

    Capitalizes the first word and turns underscores into spaces and strips trailing "_id" and any supplied removable tokens.

    Capitalizes the first word and turns underscores into spaces and strips trailing "_id" and any supplied removable tokens.

    returns

    the humanized string

    Annotations
    @inline()
  16. def humanizeTitle(removableTokens: String*): String

    Capitalizes all the words and replaces some characters in the string to create a nicer looking title.

    Capitalizes all the words and replaces some characters in the string to create a nicer looking title. Underscores are changed to spaces, a trailing "_id" is removed, and any of the supplied tokens are removed.

    removableTokens

    optional array of tokens that are to be removed

    returns

    the title-case version of the supplied string

    Annotations
    @inline()
  17. def humanizeTitle: String

    Capitalizes all the words and replaces some characters in the string to create a nicer looking title.

    Capitalizes all the words and replaces some characters in the string to create a nicer looking title. Underscores are changed to spaces, a trailing "_id" is removed, and any of the supplied tokens are removed.

    returns

    the title-case version of the supplied string

    Annotations
    @inline()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def lowerCamelCase(delimiterChars: String): String

    Converts strings to lowerCamelCase.

    Converts strings to lowerCamelCase. This method will also use any extra delimiter characters to identify word boundaries.

    delimiterChars

    optional characters that are used to delimit word boundaries

    returns

    the lower camel case version of the word

    Annotations
    @inline()
  20. def lowerCamelCase: String

    Converts strings to lowerCamelCase.

    Converts strings to lowerCamelCase.

    returns

    the lower camel case version of the word

    Annotations
    @inline()
  21. def option: Option[InflectorOps]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, None otherwise

    Implicit
    This member is added by an implicit conversion from InflectorOps to AnyOps[InflectorOps] performed by method AnyOps in scail.commons.ops.
    Definition Classes
    AnyOps
    Annotations
    @inline()
  22. def pluralize(count: Int): String

    Returns the plural form of the word.

    Returns the plural form of the word.

    count

    the number to pluralize to

    returns

    the pluralized form of the word, or the word itself if it could not be pluralized or if count was either 1 or -1

    Annotations
    @inline()
  23. def pluralize: String

    Returns the plural form of the word.

    Returns the plural form of the word.

    returns

    the pluralized form of the word

    Annotations
    @inline()
  24. def sentenceCase: String

    Returns a copy of the input with the first character converted to uppercase and the remainder to lowercase.

    Returns a copy of the input with the first character converted to uppercase and the remainder to lowercase.

    returns

    the word with the first character capitalized and the remaining characters lowercased

    Annotations
    @inline()
  25. def singularize: String

    Returns the singular form of the word.

    Returns the singular form of the word.

    returns

    the singularized form of the word, or the word itself if it could not be singularized

    Annotations
    @inline()
  26. def tap(f: (InflectorOps) ⇒ Unit): InflectorOps

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    f

    the side-effectful method to apply to value

    returns

    value

    Implicit
    This member is added by an implicit conversion from InflectorOps to AnyOps[InflectorOps] performed by method AnyOps in scail.commons.ops.
    Definition Classes
    AnyOps
  27. def toString(): String
    Definition Classes
    Any
  28. def underscore(delimiterChars: String): String

    Makes an underscored form from the expression in the string, the reverse of the camelCase method.

    Makes an underscored form from the expression in the string, the reverse of the camelCase method. Also changes any characters that match the supplied delimiters into underscore.

    delimiterChars

    optional characters that are used to delimit word boundaries

    returns

    the lower-cased version of the input with words delimited by the underscore character

    Annotations
    @inline()
  29. def underscore: String

    Makes an underscored form from the expression in the string, the reverse of the camelCase method.

    Makes an underscored form from the expression in the string, the reverse of the camelCase method.

    returns

    the lower-cased version of the input with words delimited by the underscore character

    Annotations
    @inline()
  30. def upperCamelCase(delimiterChars: String): String

    Converts strings to UpperCamelCase.

    Converts strings to UpperCamelCase. This method will also use any extra delimiter characters to identify word boundaries.

    delimiterChars

    optional characters that are used to delimit word boundaries

    returns

    the upper camel case version of the word

    Annotations
    @inline()
  31. def upperCamelCase: String

    Converts strings to UpperCamelCase.

    Converts strings to UpperCamelCase.

    returns

    the upper camel case version of the word

    Annotations
    @inline()
  32. def [B](y: B): (InflectorOps, B)
    Implicit
    This member is added by an implicit conversion from InflectorOps to ArrowAssoc[InflectorOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion AnyOps from InflectorOps to AnyOps[InflectorOps]

Inherited by implicit conversion any2stringadd from InflectorOps to any2stringadd[InflectorOps]

Inherited by implicit conversion StringFormat from InflectorOps to StringFormat[InflectorOps]

Inherited by implicit conversion Ensuring from InflectorOps to Ensuring[InflectorOps]

Inherited by implicit conversion ArrowAssoc from InflectorOps to ArrowAssoc[InflectorOps]

Ungrouped