Class StringUtils
public final class StringUtils
String utility functions ported from JT Vision.
org.viktor44.jtvision.util.StringUtils
Summary
Constructors
| Visibility | Signature |
|---|---|
| private | StringUtils() |
Methods
| Modifiers | Method signature | Return type |
|---|---|---|
| public static | hotKey(String s) | char |
| public static | hotKeyStr(String s) | String |
| public static | cstrLen(String s) | int |
| public static | strWidth(String s) | int |
Constructors
StringUtils()
No method description provided
Methods
hotKey(String s)
Extract the hotkey character from a string with ~ delimiters. e.g., "File" returns 'F'.
Parameters
s
hotKeyStr(String s)
Return the hotkey substring from a ~-delimited string
Parameters
s- - string
Returns
the hotkey substring from a ~-delimited string
cstrLen(String s)
Calculate the display width of a CStr (string with ~ hotkey markers removed).
Parameters
s
strWidth(String s)
Calculate the display width of a plain string.
Parameters
s