(String src, int start)
| 82 | } |
| 83 | |
| 84 | public static char findCharBefore(String src, int start) { |
| 85 | try { |
| 86 | src = src.substring(0, start).trim(); |
| 87 | return src.isEmpty() ? '\0' : src.charAt(src.length() - 1); |
| 88 | } catch (Exception ignore) { |
| 89 | return '\0'; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | public static char findCharAfter(String src, int start) { |
| 94 | try { |