private static final boolean neq(byte a, byte b) { return a != b && a != lc(b); }
/** * Construct a new substring pattern. * * @param patternText * text to locate. This should be a literal string, as no * meta-characters are supported by this implementation. The * string may not be the empty string. */ public RawSubStringPattern(String patternText) { if (patternText.length() == 0) throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString); needleString = patternText; final byte[] b = Constants.encode(patternText); needle = new byte[b.length]; for (int i = 0; i < b.length; i++) needle[i] = lc(b[i]); }
private static final boolean neq(final byte a, final byte b) { return a != b && a != lc(b); }
private static final boolean neq(byte a, byte b) { return a != b && a != lc(b); }
/** * Construct a new substring pattern. * * @param patternText * text to locate. This should be a literal string, as no * meta-characters are supported by this implementation. The * string may not be the empty string. */ public RawSubStringPattern(final String patternText) { if (patternText.length() == 0) throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString); needleString = patternText; final byte[] b = Constants.encode(patternText); needle = new byte[b.length]; for (int i = 0; i < b.length; i++) needle[i] = lc(b[i]); }
/** * Construct a new substring pattern. * * @param patternText * text to locate. This should be a literal string, as no * meta-characters are supported by this implementation. The * string may not be the empty string. */ public RawSubStringPattern(String patternText) { if (patternText.length() == 0) throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString); needleString = patternText; final byte[] b = Constants.encode(patternText); needle = new byte[b.length]; for (int i = 0; i < b.length; i++) needle[i] = lc(b[i]); }