Lines Matching defs:to

10  * Unless required by applicable law or agreed to in writing, software
53 * (ex) the result of Kana-to-Kanji conversion in Japanese,
54 * Pinyin-to-Kanji conversion in Chinese, Hangul-to-Hanja conversion in Korean language.
78 * Output internal information to the log.
87 tmp += "(" + ss.string + "," + ss.from + "," + ss.to + ")";
117 * Convert the range of segments to a string.
121 * @param to Convert range to
124 public String toString(int layer, int from, int to) {
129 for (int i = from; i <= to; i++) {
140 * Convert segments of the layer to a string.
178 if (last.to < mod_from) {
180 last.to = mod_to;
181 last.string = toString(layer, last.from, last.to);
191 if (ss.to <= org_to) {
212 if (ss.to >= org_to) {
223 int last_to = ss.to;
227 if (last_to > ss.to) {
228 last_to = ss.to;
232 ss.to = (last_to < mod_to)? mod_to : (last_to + diff);
234 ss.string = toString(layer, ss.from, ss.to);
239 ss.to += diff;
251 ss.to += diff;
262 * @param layer Layer to insert
273 * Insert a {@link StrSegment} at the cursor position(without merging to the previous segment).
275 * @param layer1 Layer to insert
276 * @param layer2 Never merge to the previous segment from {@code layer1} to {@code layer2}.
292 ss.to++;
304 * @param str String segment array to replace
306 * @param to Replace to
308 protected void replaceStrSegment0(int layer, StrSegment[] str, int from, int to) {
314 if (to < 0 || to > strLayer.size()) {
315 to = strLayer.size();
317 for (int i = from; i <= to; i++) {
324 modifyUpper(layer, from, str.length, to - from + 1);
331 * @param str String segment array to replace
344 * @param str String segment to replace
357 * @param to Delete to
359 public void deleteStrSegment(int layer, int from, int to) {
368 toL[2] = to;
370 toL[1] = strLayer2.get(to).to;
372 toL[0] = strLayer1.get(toL[1]).to;
375 toL[1] = to;
377 toL[0] = strLayer1.get(to).to;
380 toL[0] = to;
383 int diff = to - from + 1;
394 (ss.to >= fromL[lv-1] && ss.to <= toL[lv-1]) ) {
400 boundary_to = ss.to;
401 } else if (ss.from <= fromL[lv-1] && ss.to >= toL[lv-1]) {
403 boundary_to = ss.to;
432 * @param to Delete to
435 private void deleteStrSegment0(int layer, int from, int to, int diff) {
438 for (int i = to + 1; i < strLayer.size(); i++) {
441 ss.to -= diff;
444 for (int i = from; i <= to; i++) {
500 if (ss.from <= pos && pos <= ss.to) {
528 mCursor[0] = (pos > 0)? mStringLayer[1].get(pos - 1).to+1 : 0;
531 mCursor[1] = (pos > 0)? mStringLayer[2].get(pos - 1).to+1 : 0;
532 mCursor[0] = (mCursor[1] > 0)? mStringLayer[1].get(mCursor[1] - 1).to+1 : 0;