mirror of https://github.com/FabricMC/yarn.git
36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
CLASS net/minecraft/class_3544 net/minecraft/util/StringHelper
|
|
FIELD field_15771 FORMATTING_CODE Ljava/util/regex/Pattern;
|
|
FIELD field_29204 LINE_BREAK Ljava/util/regex/Pattern;
|
|
FIELD field_33559 ENDS_WITH_LINE_BREAK Ljava/util/regex/Pattern;
|
|
METHOD method_15438 isEmpty (Ljava/lang/String;)Z
|
|
COMMENT {@return true if {@code text} is {@code null} or empty, false otherwise}
|
|
ARG 0 text
|
|
METHOD method_15439 formatTicks (I)Ljava/lang/String;
|
|
COMMENT {@return the length of the {@code tick} in the MM:SS format, where
|
|
COMMENT the MM is the minutes and SS is the seconds (optionally zero-padded)}
|
|
ARG 0 ticks
|
|
METHOD method_15440 stripTextFormat (Ljava/lang/String;)Ljava/lang/String;
|
|
COMMENT {@return the {@code text} with all formatting codes removed}
|
|
COMMENT
|
|
COMMENT <p>A formatting code is the character {@code §} followed by
|
|
COMMENT a numeric character or a letter A to F, K to O, or R.
|
|
COMMENT
|
|
COMMENT @see Formatting#strip
|
|
ARG 0 text
|
|
METHOD method_34238 countLines (Ljava/lang/String;)I
|
|
COMMENT {@return the number of linebreaks in {@code text}}
|
|
COMMENT
|
|
COMMENT <p>A linebreak is either a CRLF sequence or a vertical tab (U+000B).
|
|
ARG 0 text
|
|
METHOD method_34963 truncate (Ljava/lang/String;IZ)Ljava/lang/String;
|
|
COMMENT {@return {@code text} truncated to at most {@code maxLength} characters,
|
|
COMMENT optionally with ellipsis}
|
|
ARG 0 text
|
|
ARG 1 maxLength
|
|
ARG 2 addEllipsis
|
|
METHOD method_36358 endsWithLineBreak (Ljava/lang/String;)Z
|
|
COMMENT {@return true if {@code text} ends with a linebreak, false otherwise}
|
|
COMMENT
|
|
COMMENT <p>A linebreak is either a CRLF sequence or a vertical tab (U+000B).
|
|
ARG 0 text
|