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

Method findCharBefore

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

Source from the content-addressed store, hash-verified

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 {

Callers 1

calculateMethod · 0.95

Calls 1

trimMethod · 0.80

Tested by

no test coverage detected