(String src, int start)
| 91 | } |
| 92 | |
| 93 | public static char findCharAfter(String src, int start) { |
| 94 | try { |
| 95 | src = src.substring(start).trim(); |
| 96 | return src.isEmpty() ? '\0' : src.charAt(0); |
| 97 | } catch (Exception ignore) { |
| 98 | ignore.printStackTrace(); |
| 99 | |
| 100 | return '\0'; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | static int findBestIndex(String src, boolean before) { |
| 105 | int index = before ? src.lastIndexOf(' ') : src.indexOf(' '); |