Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package johnsnowlabs
    Definition Classes
    com
  • package util
    Definition Classes
    johnsnowlabs
  • package strings
    Definition Classes
    util
  • object RichCaseString

    Utility object that enriches the standard String class with case-related methods using an implicit class.

    Utility object that enriches the standard String class with case-related methods using an implicit class.

    Provides methods to check and convert strings to various casing styles such as lowercase, uppercase, capitalized (first letter upper, rest lower), and title case (first letter of each word upper). All methods respect the given Locale for proper language-aware casing.

    Definition Classes
    strings
  • RichString

implicit final class RichString extends AnyVal

Implicit class that adds case handling methods to the standard String type. These methods enable expressive and locale-sensitive operations.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichString
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichString(s: String)

    s

    the input string to be enhanced

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. def isCapitalize(implicit locale: Locale): Boolean

    Checks if the string is in capitalized form (first character uppercase, rest lowercase).

    Checks if the string is in capitalized form (first character uppercase, rest lowercase).

    locale

    the locale to apply case rules from

    returns

    true if the string is capitalized, false otherwise

  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def isLowerCase(implicit locale: Locale): Boolean

    Checks if the string is entirely in lowercase according to the given locale.

    Checks if the string is entirely in lowercase according to the given locale.

    locale

    the locale to apply case rules from

    returns

    true if the string is in lowercase, false otherwise

  9. def isTitleCase(implicit locale: Locale): Boolean

    Checks if the string is in title case (each word starts with an uppercase letter, the rest lowercase).

    Checks if the string is in title case (each word starts with an uppercase letter, the rest lowercase).

    locale

    the locale to apply case rules from

    returns

    true if the string is in title case, false otherwise

  10. def isUpperCase(implicit locale: Locale): Boolean

    Checks if the string is entirely in uppercase according to the given locale.

    Checks if the string is entirely in uppercase according to the given locale.

    locale

    the locale to apply case rules from

    returns

    true if the string is in uppercase, false otherwise

  11. val s: String
  12. def toCapitalize(implicit locale: Locale): String

    Converts the string to capitalized form (first character uppercase, rest lowercase).

    Converts the string to capitalized form (first character uppercase, rest lowercase).

    locale

    the locale to apply case rules from

    returns

    the capitalized string

  13. def toLowerCaseRich(implicit locale: Locale): String

    Converts the string to lowercase using the given locale.

    Converts the string to lowercase using the given locale.

    locale

    the locale to apply case rules from

    returns

    the lowercased string

  14. def toString(): String
    Definition Classes
    Any
  15. def toTitleCase(implicit locale: Locale): String

    Converts the string to title case (each word starts with an uppercase letter, the rest lowercase).

    Converts the string to title case (each word starts with an uppercase letter, the rest lowercase).

    locale

    the locale to apply case rules from

    returns

    the title-cased string

  16. def toUpperCaseRich(implicit locale: Locale): String

    Converts the string to uppercase using the given locale.

    Converts the string to uppercase using the given locale.

    locale

    the locale to apply case rules from

    returns

    the upper-cased string

Inherited from AnyVal

Inherited from Any

Ungrouped