public interface CharUnmapper
Strings.unescape(CharSequence, CharUnmapper),
Strings.unescape(String, CharUnmapper)| Modifier and Type | Method and Description |
|---|---|
boolean |
isEscape(CharSequence s,
int offset)
|
int |
unmap(StringBuilder sb,
CharSequence s,
int offset)
Map the characters starting at
offset in the CharSequence s with
any of the possible escape sequences. |
boolean isEscape(CharSequence s, int offset)
s - the CharSequence containing the inputoffset - the offset within the inputtrue if the character is the start of an escapeStrings.unescape(String, CharUnmapper),
Strings.unescape(CharSequence, CharUnmapper)int unmap(StringBuilder sb, CharSequence s, int offset)
offset in the CharSequence s with
any of the possible escape sequences. If successful, store the character (or possibly the
two-character surrogate sequence) in StringBuilder sb and return the
length of the sequence; otherwise return 0 to indicate no match.sb - the StringBuilder in which to store the outputs - the CharSequence containing the inputoffset - the offset within the inputIllegalArgumentException - if the escape sequence is invalidStrings.unescape(String, CharUnmapper),
Strings.unescape(CharSequence, CharUnmapper)Copyright © 2020. All rights reserved.