Codota Logo
RawSubStringPattern
Code IndexAdd Codota to your IDE (free)

How to use
RawSubStringPattern
in
org.eclipse.jgit.util

Best Java code snippets using org.eclipse.jgit.util.RawSubStringPattern (Showing top 20 results out of 315)

  • Common ways to obtain RawSubStringPattern
private void myMethod () {
RawSubStringPattern r =
  • Codota IconString patternText;new RawSubStringPattern(patternText)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Construct a new matching filter.
 *
 * @param patternText
 *            text to locate. This should be a safe string as described by
 *            the {@link #safe(String)} as regular expression meta
 *            characters are treated as literals.
 */
protected SubStringRevFilter(String patternText) {
  pattern = new RawSubStringPattern(patternText);
}
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public boolean include(RevWalk walker, RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return pattern.match(text(cmit)) >= 0;
}
origin: org.eclipse.jgit/org.eclipse.jgit

  /** {@inheritDoc} */
  @Override
  public String toString() {
    return pattern();
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

private static final boolean neq(byte a, byte b) {
  return a != b && a != lc(b);
}
origin: org.eclipse.jgit/org.eclipse.jgit

if (neq(first, text[matchPos])) {
  while (++matchPos <= maxPos && neq(first, text[matchPos])) {
  if (neq(needle[j], text[si]))
    continue OUTER;
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * 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]);
}
origin: sonia.jgit/org.eclipse.jgit

if (neq(first, text[matchPos])) {
  while (++matchPos <= maxPos && neq(first, text[matchPos])) {
  if (neq(needle[j], text[si]))
    continue OUTER;
origin: org.eclipse.jgit/org.eclipse.jgit

  /** {@inheritDoc} */
  @SuppressWarnings("nls")
  @Override
  public String toString() {
    return super.toString() + "(\"" + pattern.pattern() + "\")";
  }
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public boolean include(RevWalk walker, RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return pattern.match(text(cmit)) >= 0;
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * Construct a new matching filter.
 *
 * @param patternText
 *            text to locate. This should be a safe string as described by
 *            the {@link #safe(String)} as regular expression meta
 *            characters are treated as literals.
 */
protected SubStringRevFilter(final String patternText) {
  pattern = new RawSubStringPattern(patternText);
}
origin: sonia.jgit/org.eclipse.jgit

private static final boolean neq(final byte a, final byte b) {
  return a != b && a != lc(b);
}
origin: berlam/github-bucket

if (neq(first, text[matchPos])) {
  while (++matchPos <= maxPos && neq(first, text[matchPos])) {
  if (neq(needle[j], text[si]))
    continue OUTER;
origin: berlam/github-bucket

  /** {@inheritDoc} */
  @Override
  public String toString() {
    return pattern();
  }
}
origin: sonia.jgit/org.eclipse.jgit

@Override
public boolean include(final RevWalk walker, final RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return pattern.match(text(cmit)) >= 0;
}
origin: berlam/github-bucket

/**
 * Construct a new matching filter.
 *
 * @param patternText
 *            text to locate. This should be a safe string as described by
 *            the {@link #safe(String)} as regular expression meta
 *            characters are treated as literals.
 */
protected SubStringRevFilter(String patternText) {
  pattern = new RawSubStringPattern(patternText);
}
origin: berlam/github-bucket

private static final boolean neq(byte a, byte b) {
  return a != b && a != lc(b);
}
origin: sonia.jgit/org.eclipse.jgit

  @Override
  public String toString() {
    return pattern();
  }
}
origin: theonedev/onedev

/** {@inheritDoc} */
@Override
public boolean include(RevWalk walker, RevCommit cmit)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  return pattern.match(text(cmit)) >= 0;
}
origin: theonedev/onedev

/**
 * Construct a new matching filter.
 *
 * @param patternText
 *            text to locate. This should be a safe string as described by
 *            the {@link #safe(String)} as regular expression meta
 *            characters are treated as literals.
 */
protected SubStringRevFilter(String patternText) {
  pattern = new RawSubStringPattern(patternText);
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * 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]);
}
org.eclipse.jgit.utilRawSubStringPattern

Javadoc

Searches text using only substring search.

Instances are thread-safe. Multiple concurrent threads may perform matches on different character sequences at the same time.

Most used methods

  • <init>
    Construct a new substring pattern.
  • match
    Match a character sequence against this pattern.
  • pattern
    Get the literal pattern string this instance searches for.
  • lc
  • neq

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • ImageIO (javax.imageio)
  • JFileChooser (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now