Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int findTokenEnd(CharSequence text, int cursor) {
- int i = cursor;
- int len = text.length();
- while (i < len) {
- if (text.charAt(i) == ',') {
- return i;
- } else {
- i++;
- }
- }
- return len;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement