Class DynamicTextUtils
java.lang.Object
com.pranavpandey.android.dynamic.util.DynamicTextUtils
Helper class to perform text operations.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringcapitalize(CharSequence text, Locale locale) Capitalize the first character of the supplied char sequence.static Stringcapitalize(String text, Locale locale) Capitalize the first character of the supplied string.
-
Constructor Details
-
DynamicTextUtils
public DynamicTextUtils()
-
-
Method Details
-
capitalize
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
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.
-