public static final class Normalizer2Impl.ReorderingBuffer extends Object implements Appendable
If dest is a StringBuilder, then the buffer writes directly to it. Otherwise, the buffer maintains a StringBuilder for intermediate text segments until no further changes are necessary and whole segments are appended. append() methods that take combining-class values always write to the StringBuilder. Other append() methods flush and append to the Appendable.
| Constructor and Description |
|---|
ReorderingBuffer(Normalizer2Impl ni,
Appendable dest,
int destCapacity) |
| Modifier and Type | Method and Description |
|---|---|
Normalizer2Impl.ReorderingBuffer |
append(char c) |
Normalizer2Impl.ReorderingBuffer |
append(CharSequence s) |
Normalizer2Impl.ReorderingBuffer |
append(CharSequence s,
int start,
int limit) |
void |
append(CharSequence s,
int start,
int limit,
boolean isNFD,
int leadCC,
int trailCC) |
void |
append(int c,
int cc) |
void |
appendZeroCC(int c) |
boolean |
equals(CharSequence s,
int start,
int limit) |
void |
flush()
Flushes from the intermediate StringBuilder to the Appendable,
if they are different objects.
|
Normalizer2Impl.ReorderingBuffer |
flushAndAppendZeroCC(CharSequence s,
int start,
int limit)
Flushes from the intermediate StringBuilder to the Appendable,
if they are different objects.
|
int |
getLastCC() |
StringBuilder |
getStringBuilder() |
boolean |
isEmpty() |
int |
length() |
void |
remove() |
void |
removeSuffix(int suffixLength) |
public ReorderingBuffer(Normalizer2Impl ni, Appendable dest, int destCapacity)
public boolean isEmpty()
public int length()
public int getLastCC()
public StringBuilder getStringBuilder()
public boolean equals(CharSequence s, int start, int limit)
public void append(int c,
int cc)
public void append(CharSequence s, int start, int limit, boolean isNFD, int leadCC, int trailCC)
public Normalizer2Impl.ReorderingBuffer append(char c)
append in interface Appendablepublic void appendZeroCC(int c)
public Normalizer2Impl.ReorderingBuffer append(CharSequence s)
append in interface Appendablepublic Normalizer2Impl.ReorderingBuffer append(CharSequence s, int start, int limit)
append in interface Appendablepublic void flush()
public Normalizer2Impl.ReorderingBuffer flushAndAppendZeroCC(CharSequence s, int start, int limit)
public void remove()
public void removeSuffix(int suffixLength)