/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }
/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }
/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }
/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }
/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }
/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }
/** * Obtains the character offset in the source string corresponding to the * next collation element. This value could be any of: * <ul> * <li>The index of the first character in the source string that matches * the value of the next collation element. This means that if * {@code setOffset(offset)} sets the index in the middle of a contraction, * {@code getOffset()} returns the index of the first character in the * contraction, which may not be equal to the original offset that was set. * Hence calling {@code getOffset()} immediately after * {@code setOffset(offset)} does not guarantee that the original offset set * will be returned.</li> * <li>If normalization is on, the index of the immediate subsequent * character, or composite character with the first character, having a * combining class of 0.</li> * <li>The length of the source string, if iteration has reached the end. * </li> * </ul> * * @return The position of the collation element in the source string that * will be returned by the next invocation of the {@link #next()} * method. */ public int getOffset() { return this.icuIterator.getOffset(); }