Package org.meeuw.math.text
Class TextUtils
- java.lang.Object
-
- org.meeuw.math.text.TextUtils
-
public final class TextUtils extends Object
- Since:
- 0.4
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
controlEach(CharSequence s, Character control)
static String
format(Instant instant, ChronoUnit order)
static String
format(ZoneId zoneId, Instant instant, ChronoUnit order)
static String
overLine(CharSequence s)
Gives a representation of the string which is completely 'overlined' (using unicode control characters)static String
overLineDouble(CharSequence s)
Gives a representation of the string which is completely 'double overlined' (using unicode control characters)static String
subscript(long i)
Returns an integer in 'superscript' notation, using unicode.static String
subscript(CharSequence i)
static String
superscript(long i)
Returns an integer in 'superscript' notation, using unicode.static String
superscript(CharSequence i)
static String
underLine(CharSequence s)
Gives a representation of the string which is completely 'underlined' (using unicode control characters)static String
underLineDouble(CharSequence s)
Gives a representation of the string which is completely 'double underlined' (using unicode control characters)
-
-
-
Method Detail
-
superscript
public static String superscript(long i)
Returns an integer in 'superscript' notation, using unicode.
-
subscript
public static String subscript(long i)
Returns an integer in 'superscript' notation, using unicode.
-
subscript
public static String subscript(CharSequence i)
-
superscript
public static String superscript(CharSequence i)
-
format
public static String format(Instant instant, ChronoUnit order)
-
format
public static String format(ZoneId zoneId, Instant instant, ChronoUnit order)
-
underLine
public static String underLine(CharSequence s)
Gives a representation of the string which is completely 'underlined' (using unicode control characters)- Since:
- 2.11
-
underLineDouble
public static String underLineDouble(CharSequence s)
Gives a representation of the string which is completely 'double underlined' (using unicode control characters)
-
overLine
public static String overLine(CharSequence s)
Gives a representation of the string which is completely 'overlined' (using unicode control characters)
-
overLineDouble
public static String overLineDouble(CharSequence s)
Gives a representation of the string which is completely 'double overlined' (using unicode control characters)
-
controlEach
public static String controlEach(CharSequence s, Character control)
- Since:
- 2.11
-
-