Package com.uc4.util
Class StringLengthUtil
java.lang.Object
com.uc4.util.StringLengthUtil
This utility returns the length of a string in UTF-8
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the amount of bytes of the passed String in bytes
-
Method Details
-
getUtf8BytesLength
Returns the amount of bytes of the passed String in bytes- Parameters:
s
- String to be checked- Returns:
- amount of bytes of the passed String in bytes
-