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