Lines Matching defs:wi
242 Wrap wrapIndexToWrap(long wi) {
252 if ((wi - before) <= len) {
253 //System.err.printf("Defer to wrap %s - wi: %d. before; %d -- %s >>> %s\n",
254 // w, wi, before, w.debugPos(wi - before), w.wrapped());
264 public int wrapIndexToSnippetIndex(int wi) {
273 if ((wi - before) <= len) {
274 //System.err.printf("Defer to wrap %s - wi: %d. before; %d -- %s >>> %s\n",
275 // w, wi, before, w.debugPos(wi - before), w.wrapped());
276 return w.wrapIndexToSnippetIndex(wi - before);
398 public int wrapIndexToSnippetIndex(int wi) {
399 if (wi < 0) {
403 if (wi > max) {
404 wi = max;
406 return wi + range.begin;