Lines Matching defs:pattern
147 * @param pattern The string to be used as pattern
151 public static String padding(double length, String pattern)
153 if (pattern == null || pattern.length() == 0)
162 if (index == pattern.length())
165 sb.append(pattern.charAt(index));
185 * The first argument is the string to be split. The second argument is a pattern
187 * this pattern. For example:
198 * @param pattern The pattern
202 public static NodeList split(String str, String pattern)
216 matchIndex = str.indexOf(pattern, fromIndex);
220 fromIndex = matchIndex + pattern.length();