public final class MyString
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
axisName(int axisIndex)
Describe a coordinate axis.
|
static java.lang.String |
describe(float fValue)
Generate a textual description of a single-precision floating-point
value.
|
static java.lang.String |
describeFraction(float fValue)
Generate a textual description of a single-precision floating-point value
using at most 3 decimal places.
|
static java.lang.String |
describeMatrix(Matrix3f matrix)
Generate a textual description of a Matrix3f value.
|
static java.lang.String |
escape(java.lang.CharSequence unescaped)
Replace all tab, quote, newline, and backslash characters in the
specified text with escape sequences.
|
static java.lang.String |
firstToLower(java.lang.String input)
Convert the first character of the specified text to lower case.
|
static java.lang.String |
quote(java.lang.CharSequence text)
Enclose the specified text in quotation marks and escape all tab, quote,
newline, and backslash characters.
|
static java.lang.String |
removeSuffix(java.lang.String input,
java.lang.String suffix)
Extract the remainder of the specified string after removing the
specified suffix.
|
public static java.lang.String axisName(int axisIndex)
axisIndex - the index of the axis: 0→X, 1→Y, 2→Zpublic static java.lang.String describe(float fValue)
fValue - the value to describepublic static java.lang.String describeFraction(float fValue)
fValue - the value to describepublic static java.lang.String describeMatrix(Matrix3f matrix)
matrix - the value to describe (may be null, unaffected)public static java.lang.String escape(java.lang.CharSequence unescaped)
unescaped - the input text to escape (not null)public static java.lang.String firstToLower(java.lang.String input)
input - the input text to convert (not null)public static java.lang.String quote(java.lang.CharSequence text)
text - the input text to quotepublic static java.lang.String removeSuffix(java.lang.String input,
java.lang.String suffix)
input - the input string (not null)suffix - the suffix string (not null)