/**@class android.text.method.WordIterator implements android.text.Selection.PositionIterator @extends java.lang.Object Walks through cursor positions at word boundaries. Internally uses {@link BreakIterator#getWordInstance()}, and caches {@link CharSequence} for performance reasons. Also provides methods to determine word boundaries. {@hide} */ var WordIterator = { /** */ setCharSequence : function( ) {}, /**{@inheritDoc} */ preceding : function( ) {}, /**{@inheritDoc} */ following : function( ) {}, /**{@inheritDoc} */ isBoundary : function( ) {}, /**Returns the position of next boundary after the given offset. Returns {@code DONE} if there is no boundary after the given offset. @param {Number} offset the given start position to search from. @return {Number} the position of the last boundary preceding the given offset. */ nextBoundary : function( ) {}, /**Returns the position of boundary preceding the given offset or {@code DONE} if the given offset specifies the starting position. @param {Number} offset the given start position to search from. @return {Number} the position of the last boundary preceding the given offset. */ prevBoundary : function( ) {}, /**If <code>offset</code> is within a word, returns the index of the first character of that word, otherwise returns BreakIterator.DONE. The offsets that are considered to be part of a word are the indexes of its characters, <i>as well as</i> the index of its last character plus one. If offset is the index of a low surrogate character, BreakIterator.DONE will be returned. Valid range for offset is [0..textLength] (note the inclusive upper bound). The returned value is within [0..offset] or BreakIterator.DONE. @throws IllegalArgumentException is offset is not valid. */ getBeginning : function( ) {}, /**If <code>offset</code> is within a word, returns the index of the last character of that word plus one, otherwise returns BreakIterator.DONE. The offsets that are considered to be part of a word are the indexes of its characters, <i>as well as</i> the index of its last character plus one. If offset is the index of a low surrogate character, BreakIterator.DONE will be returned. Valid range for offset is [0..textLength] (note the inclusive upper bound). The returned value is within [offset..textLength] or BreakIterator.DONE. @throws IllegalArgumentException is offset is not valid. */ getEnd : function( ) {}, /**If the <code>offset</code> is within a word or on a word boundary that can only be considered the start of a word (e.g. _word where "_" is any character that would not be considered part of the word) then this returns the index of the first character of that word. If the offset is on a word boundary that can be considered the start and end of a word, e.g. AABB (where AA and BB are both words) and the offset is the boundary between AA and BB, this would return the start of the previous word, AA. Returns BreakIterator.DONE if there is no previous boundary. @throws IllegalArgumentException is offset is not valid. */ getPrevWordBeginningOnTwoWordsBoundary : function( ) {}, /**If the <code>offset</code> is within a word or on a word boundary that can only be considered the end of a word (e.g. word_ where "_" is any character that would not be considered part of the word) then this returns the index of the last character plus one of that word. If the offset is on a word boundary that can be considered the start and end of a word, e.g. AABB (where AA and BB are both words) and the offset is the boundary between AA and BB, this would return the end of the next word, BB. Returns BreakIterator.DONE if there is no next boundary. @throws IllegalArgumentException is offset is not valid. */ getNextWordEndOnTwoWordBoundary : function( ) {}, /**If <code>offset</code> is within a group of punctuation as defined by {@link #isPunctuation}(int), returns the index of the first character of that group, otherwise returns BreakIterator.DONE. @param {Number} offset the offset to search from. */ getPunctuationBeginning : function( ) {}, /**If <code>offset</code> is within a group of punctuation as defined by {@link #isPunctuation}(int), returns the index of the last character of that group plus one, otherwise returns BreakIterator.DONE. @param {Number} offset the offset to search from. */ getPunctuationEnd : function( ) {}, /**Indicates if the provided offset is after a punctuation character as defined by {@link #isPunctuation}(int). @param {Number} offset the offset to check from. @return {Boolean} Whether the offset is after a punctuation character. */ isAfterPunctuation : function( ) {}, /**Indicates if the provided offset is at a punctuation character as defined by {@link #isPunctuation}(int). @param {Number} offset the offset to check from. @return {Boolean} Whether the offset is at a punctuation character. */ isOnPunctuation : function( ) {}, /**Indicates if the codepoint is a mid-word-only punctuation. At the moment, this is locale-independent, and includes all the characters in the MidLetter, MidNumLet, and Single_Quote class of Unicode word breaking algorithm (see UAX #29 "Unicode Text Segmentation" at http://unicode.org/reports/tr29/). These are all the characters that according to the rules WB6 and WB7 of UAX #29 prevent word breaks if they are in the middle of a word, but they become word breaks if they happen at the end of a word (accroding to rule WB999 that breaks word in any place that is not prohibited otherwise). @param {Object {Locale}} locale the locale to consider the codepoint in. Presently ignored. @param {Number} codePoint the codepoint to check. @return {Boolean} True if the codepoint is a mid-word punctuation. */ isMidWordPunctuation : function( ) {}, };