| Package | feathers.utils.text |
| Class | public class TextInputNavigation |
| Inheritance | TextInputNavigation Object |
| Product Version : | Feathers 2.0.0 |
| Method | Defined By | ||
|---|---|---|---|
findCurrentWordEndIndex(text:String, selectionEndIndex:int):int [static]
Finds the end index of the word that starts with the current
selection. | TextInputNavigation | ||
findCurrentWordStartIndex(text:String, selectionStartIndex:int):int [static]
Finds the start index of the word that starts with the current
selection. | TextInputNavigation | ||
findNextWordStartIndex(text:String, selectionEndIndex:int):int [static]
Finds the start index of the next word that starts after the
selection. | TextInputNavigation | ||
findPreviousWordStartIndex(text:String, selectionStartIndex:int):int [static]
Finds the start index of the word that starts before the selection. | TextInputNavigation | ||
| findCurrentWordEndIndex | () | method |
public static function findCurrentWordEndIndex(text:String, selectionEndIndex:int):intFinds the end index of the word that starts with the current selection. If the current selection is in the whitespace between words, returns the end index of the next word.
Parameters
text:String | |
selectionEndIndex:int |
int |
| findCurrentWordStartIndex | () | method |
public static function findCurrentWordStartIndex(text:String, selectionStartIndex:int):intFinds the start index of the word that starts with the current selection. If the current selection is in the whitespace between words, returns the start index of the previous word.
Parameters
text:String | |
selectionStartIndex:int |
int |
| findNextWordStartIndex | () | method |
public static function findNextWordStartIndex(text:String, selectionEndIndex:int):intFinds the start index of the next word that starts after the selection.
Parameters
text:String | |
selectionEndIndex:int |
int |
| findPreviousWordStartIndex | () | method |
public static function findPreviousWordStartIndex(text:String, selectionStartIndex:int):intFinds the start index of the word that starts before the selection.
Parameters
text:String | |
selectionStartIndex:int |
int |