Class DynamicTextUtils

java.lang.Object
com.pranavpandey.android.dynamic.util.DynamicTextUtils

public class DynamicTextUtils extends Object
Helper class to perform text operations.
See Also:
  • Constructor Details

    • DynamicTextUtils

      public DynamicTextUtils()
  • Method Details

    • capitalize

      @Nullable public static String capitalize(@Nullable String text, @Nullable Locale locale)
      Capitalize the first character of the supplied string.
      Parameters:
      text - The text to be capitalize.
      locale - The optional locale for better results.
      Returns:
      The string after capitalizing the first character.
    • capitalize

      @Nullable public static String capitalize(@Nullable CharSequence text, @Nullable Locale locale)
      Capitalize the first character of the supplied char sequence.
      Parameters:
      text - The text to be capitalize.
      locale - The optional locale for better results.
      Returns:
      The string after capitalizing the first character.