Skip to main content

Class StringUtils

public final class StringUtils

String utility functions ported from JT Vision.

org.viktor44.jtvision.util.StringUtils

Summary​

Constructors​

VisibilitySignature
privateStringUtils()

Methods​

ModifiersMethod signatureReturn type
public statichotKey(String s)char
public statichotKeyStr(String s)String
public staticcstrLen(String s)int
public staticstrWidth(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