MCPcopy Create free account
hub / github.com/demoth/jake2 / rightFrom

Method rightFrom

qcommon/src/main/java/jake2/qcommon/util/Lib.java:241–248  ·  view source on GitHub ↗

Returns the right part of the string from the last occruence of c.

(String in, char c)

Source from the content-addressed store, hash-verified

239
240 /** Returns the right part of the string from the last occruence of c. */
241 public static String rightFrom(String in, char c) {
242 int pos = in.lastIndexOf(c);
243 if (pos == -1)
244 return "";
245 else if (pos < in.length())
246 return in.substring(pos + 1, in.length());
247 return "";
248 }
249
250 /** Returns the left part of the string from the last occruence of c. */
251 public static String leftFrom(String in, char c) {

Callers 2

PlayerConfig_MenuInitMethod · 0.95
SpinControl_DrawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected