@Test void removeStart() { assertNull(CbStrings.removeStart(null, null)); assertNull(CbStrings.removeStart(null, "")); assertNull(CbStrings.removeStart(null, "xyzzy")); assertEquals("", CbStrings.removeStart("", null)); assertEquals("", CbStrings.removeStart("", "")); assertEquals("", CbStrings.removeStart("", "xyzzy")); assertEquals("xyzzy", CbStrings.removeStart("xyzzy", null)); assertEquals("xyzzy", CbStrings.removeStart("xyzzy", "")); assertEquals("xyzzy", CbStrings.removeStart("xyzzy", "foo")); assertEquals("zzy", CbStrings.removeStart("xyzzy", "xy")); assertEquals("", CbStrings.removeStart("xyzzy", "xyzzy")); assertEquals("xyzzy", CbStrings.removeStart("xyzzy", "xyzzyxyzzy")); }
public static String removeStart(String s, String removeMe) { if (s == null || removeMe == null) { return s; } return s.startsWith(removeMe) ? s.substring(removeMe.length()) : s; }
CbStrings { public static String removeStart(String s, String removeMe) { if (s == null || removeMe == null) { return s; } return s.startsWith(removeMe) ? s.substring(removeMe.length()) : s; } }
CbStrings { public static String removeStart(String s, String removeMe) { if (s == null || removeMe == null) { return s; } return s.startsWith(removeMe) ? s.substring(removeMe.length()) : s; } private  CbStrings(); }
CbStrings { public static String removeStart(String s, String removeMe) { if (s == null || removeMe == null) { return s; } return s.startsWith(removeMe) ? s.substring(removeMe.length()) : s; } private  CbStrings(); static String nullToEmpty(String s); static String emptyToNull(String s); static boolean isNullOrEmpty(String s); static String removeStart(String s, String removeMe); static String removeEnd(String s, String removeMe); }
CbStrings { public static String removeStart(String s, String removeMe) { if (s == null || removeMe == null) { return s; } return s.startsWith(removeMe) ? s.substring(removeMe.length()) : s; } private  CbStrings(); static String nullToEmpty(String s); static String emptyToNull(String s); static boolean isNullOrEmpty(String s); static String removeStart(String s, String removeMe); static String removeEnd(String s, String removeMe);  }