List of utility methods to do String Starts Wtih
boolean | startsWith(String receiver, String... needles) starts With return startsWith(receiver, false, needles);
|
boolean | startsWith(String s, boolean caseIgnore, String... args) starts With if (s == null) { return false; for (String arg : args) { if (caseIgnore) { s = s.toLowerCase(); arg = arg.toLowerCase(); if (s.startsWith(arg)) { return true; return false; |
boolean | startsWith(String s, char begin) starts With return startsWith(s, Character.toString(begin));
|
boolean | startsWith(String s, char c) An efficient method for checking if a string starts with a character. if (s != null) { int i = s.length(); if (i > 0) return s.charAt(0) == c; return false; |
boolean | startsWith(String s, int offset, int end, String t) True iff s[off:end] starts with t. int n = t.length(); if (end - offset < n) { return false; int off = offset; for (int i = 0; i < n; ++off, ++i) { if (s.charAt(off) != t.charAt(i)) { return false; ... |
boolean | startsWith(String s, String begin) starts With if ((s == null) || (begin == null)) { return false; if (begin.length() > s.length()) { return false; String temp = s.substring(0, begin.length()); if (temp.equalsIgnoreCase(begin)) { ... |
boolean | startsWith(String s, String prefix) starts With return s.toLowerCase().startsWith(prefix.toLowerCase());
|
boolean | startsWith(String s, String prefix) starts With if (s == null) { return false; for (int i = 0; i < s.length(); i++) { if (Character.isWhitespace(s.charAt(i))) { continue; } else { return s.regionMatches(i, prefix, 0, prefix.length()); ... |
boolean | startswith(String s, String prefix) This function performs a case-insensitive starts-with test. if (s == null || prefix == null) { return false; return s.toLowerCase().startsWith(prefix.toLowerCase()); |
boolean | startsWith(String s, String start) Check is a string starts with another string, ignoring the case. return s == null || start == null ? false : s.startsWith(start);
|