MCPcopy Create free account
hub / github.com/Aghajari/MathParser / findCharAfter

Method findCharAfter

MathParser/src/com/aghajari/math/Utils.java:93–102  ·  view source on GitHub ↗
(String src, int start)

Source from the content-addressed store, hash-verified

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(' ');

Callers 1

calculateMethod · 0.95

Calls 1

trimMethod · 0.80

Tested by

no test coverage detected