Lines Matching defs:target
52 * replacing contents of the target buffer.
54 * @param target the resulting normalized text
56 public StringBuffer normalize(String source, StringBuffer target) {
58 // First decompose the source into target,
62 internalDecompose(source, target);
64 internalCompose(target);
67 return target;
73 * @return target the resulting normalized text
90 * replacing contents of the target buffer.
96 * @param target the resulting normalized text
98 private void internalDecompose(String source, StringBuffer target) {
116 int k = target.length(); // insertion point
123 ch2 = UTF16Util.prevCodePoint(target, k);
127 UTF16Util.insertCodePoint(target, k, ch);
135 * @param target input: decomposed text.
138 private void internalCompose(StringBuffer target) {
141 int starterCh = UTF16Util.nextCodePoint(target,0);
148 for (int decompPos = UTF16Util.codePointLength(starterCh); decompPos < target.length(); ) {
149 int ch = UTF16Util.nextCodePoint(target, decompPos);
155 UTF16Util.setCodePointAt(target, starterPos, composite);
163 decompPos += UTF16Util.setCodePointAt(target, compPos, ch);
167 target.setLength(compPos);