| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| private static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ResultingStringState | Returns: String The resulting text and caret position.The position of the cursor caretPosition, String The string to manipulate text)Remove the previous word on the left side of the cursor. |
| public static ResultingStringState | Returns: String The resulting text and caret position.The position of the cursor caretPosition, String The string to manipulate text)Capitalize the word on the right side of the cursor. |
| pack-priv static ResultingStringState | Returns: The resulting text and caret position.The index to start from. caretPosition, String The text to manipulate. text, StringManipulator.The direction to search. directionDelete all characters in a string from the given position to the next word boundary. |
| pack-priv static int | Returns: The position of the next whitespace after a wordThe current caret position caretPosition, String The string to search in text, StringManipulator.The direction to move through string directionUtility method to find the next whitespace position in string after text |
| public static ResultingStringState | |
| public static ResultingStringState | |
| private static ResultingStringState | Returns: The resulting text and caret position.The text to manipulate. text, int The index to start from. caretPosition, StringManipulator.The case mode the string should be changed to. targetCaseChange word casing in a string from the given position to the next word boundary. |
| public static ResultingStringState |
| StringManipulator | back to summary |
|---|---|
| public StringManipulator() | |
| backwardKillWord | back to summary |
|---|---|
| public static ResultingStringState backwardKillWord(int caretPosition, String text) Remove the previous word on the left side of the cursor.
| |
| capitalize | back to summary |
|---|---|
| public static ResultingStringState capitalize(int caretPosition, String text) Capitalize the word on the right side of the cursor.
| |
| deleteUntilWordBoundary | back to summary |
|---|---|
| pack-priv static ResultingStringState deleteUntilWordBoundary(int caretPosition, String text, StringManipulator. Delete all characters in a string from the given position to the next word boundary.
| |
| getNextWordBoundary | back to summary |
|---|---|
| pack-priv static int getNextWordBoundary(int caretPosition, String text, StringManipulator. Utility method to find the next whitespace position in string after text
| |
| killWord | back to summary |
|---|---|
| public static ResultingStringState killWord(int caretPosition, String text) Remove the next word on the right side of the cursor.
| |
| lowercase | back to summary |
|---|---|
| public static ResultingStringState lowercase(int caretPosition, String text) Make all characters in the word lowercase.
| |
| setWordCase | back to summary |
|---|---|
| private static ResultingStringState setWordCase(String text, int caretPosition, StringManipulator. Change word casing in a string from the given position to the next word boundary.
| |
| uppercase | back to summary |
|---|---|
| public static ResultingStringState uppercase(int caretPosition, String text) Make all characters in the word uppercase.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final StringManipulator. | |
| public final int | |
| public static final StringManipulator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StringManipulator. | |
| public static StringManipulator. |
| NEXT | back to summary |
|---|---|
| public static final StringManipulator. | |
| OFFSET | back to summary |
|---|---|
| public final int OFFSET | |
| PREVIOUS | back to summary |
|---|---|
| public static final StringManipulator. | |
| Direction | back to summary |
|---|---|
| private Direction(int offset) | |
| valueOf | back to summary |
|---|---|
| public static StringManipulator. | |
| values | back to summary |
|---|---|
| public static StringManipulator. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final StringManipulator. | |
| public static final StringManipulator. | |
| public static final StringManipulator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StringManipulator. | |
| public static StringManipulator. |
| CAPITALIZED | back to summary |
|---|---|
| public static final StringManipulator. | |
| LOWER | back to summary |
|---|---|
| public static final StringManipulator. | |
| UPPER | back to summary |
|---|---|
| public static final StringManipulator. | |
| LetterCase | back to summary |
|---|---|
| private LetterCase() | |
| valueOf | back to summary |
|---|---|
| public static StringManipulator. | |
| values | back to summary |
|---|---|
| public static StringManipulator. | |