MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / split

Method split

Ports/CLDC11/src/java/time/ZoneOffset.java:47–50  ·  view source on GitHub ↗
(String value, char ch)

Source from the content-addressed store, hash-verified

45 }
46
47 private static String[] split(String value, char ch) {
48 int pos = value.indexOf(ch);
49 return new String[] { value.substring(0, pos), value.substring(pos + 1) };
50 }
51
52 public static ZoneOffset ofHours(int hours) {
53 return ofTotalSeconds(hours * 3600);

Callers 1

ofMethod · 0.95

Calls 2

indexOfMethod · 0.65
substringMethod · 0.65

Tested by

no test coverage detected