IteratorData.java
817 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.GraphemeBreakIterator;
import com.adobe.xfa.text.TextCharPropIterator;
class IteratorData {
public int mnCharIndex;
public boolean mbEnd;
public int mePrevData;
IteratorData() {
}
public int next(TextCharPropIterator poTextCharPropIterator) {
int eData = poTextCharPropIterator.next(this.mnCharIndex);
this.mbEnd = eData == Integer.MAX_VALUE;
this.mnCharIndex = poTextCharPropIterator.getNextIndex();
return eData;
}
public int next(GraphemeBreakIterator oGraphemeIterator) {
this.mnCharIndex = oGraphemeIterator.advanceGrapheme();
this.mbEnd = this.mnCharIndex == Integer.MAX_VALUE;
return oGraphemeIterator.getPrevData();
}
}