ConsulStringExtensions extension
- on
Properties
- ansiLength → int
-
Available on String, provided by the ConsulStringExtensions extension
Length without ANSI sequences.no setter
Methods
-
ansiPad(
int length, {String pad = " "}) → String -
Available on String, provided by the ConsulStringExtensions extension
Pad string from both sides, ignoring embedded ansi sequences. -
ansiPadLeft(
int length, {String pad = " "}) → String -
Available on String, provided by the ConsulStringExtensions extension
Pad string to the left, ignoring embedded ansi sequences. -
ansiPadRight(
int length, {String pad = " "}) → String -
Available on String, provided by the ConsulStringExtensions extension
Pad string to the right, ignoring embedded ansi sequences. -
ansiTake(
int count) → String -
Available on String, provided by the ConsulStringExtensions extension
ANSI aware take variant. Includes all ANSI sequences without counting them towardscount
. -
drop(
int count) → String -
Available on String, provided by the ConsulStringExtensions extension
Remove the firstcount
bytes from this String. Returns empty String ifcount
>= length. -
dropLast(
int count) → String -
Available on String, provided by the ConsulStringExtensions extension
Remove the lastcount
bytes from this String. Returns empty String ifcount
>= length. -
stripped(
) → String -
Available on String, provided by the ConsulStringExtensions extension
Removes all embedded ANSI sequences. -
take(
int count) → String -
Available on String, provided by the ConsulStringExtensions extension
Take the firstcount
characters from this. Ignoring special unicode character handling. This operates on the "pure bytes" only. -
takeLast(
int count) → String -
Available on String, provided by the ConsulStringExtensions extension
Take the lastcount
characters from this. Ignoring special unicode character handling. This operates on the "pure bytes" only.