Tabnine Logo
PatternMatchRevFilter.forceToRaw
Code IndexAdd Tabnine to your IDE (free)

How to use
forceToRaw
method
in
org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter

Best Java code snippets using org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter.forceToRaw (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

    pattern = pattern + ".*"; //$NON-NLS-1$
final String p = rawEncoding ? forceToRaw(pattern) : pattern;
compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
origin: sonia.jgit/org.eclipse.jgit

/**
 * Construct a new pattern matching filter.
 *
 * @param pattern
 *            text of the pattern. Callers may want to surround their
 *            pattern with ".*" on either end to allow matching in the
 *            middle of the string.
 * @param innerString
 *            should .* be wrapped around the pattern of ^ and $ are
 *            missing? Most users will want this set.
 * @param rawEncoding
 *            should {@link #forceToRaw(String)} be applied to the pattern
 *            before compiling it?
 * @param flags
 *            flags from {@link Pattern} to control how matching performs.
 */
protected PatternMatchRevFilter(String pattern, final boolean innerString,
    final boolean rawEncoding, final int flags) {
  if (pattern.length() == 0)
    throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);
  patternText = pattern;
  if (innerString) {
    if (!pattern.startsWith("^") && !pattern.startsWith(".*")) //$NON-NLS-1$ //$NON-NLS-2$
      pattern = ".*" + pattern; //$NON-NLS-1$
    if (!pattern.endsWith("$") && !pattern.endsWith(".*")) //$NON-NLS-1$ //$NON-NLS-2$
      pattern = pattern + ".*"; //$NON-NLS-1$
  }
  final String p = rawEncoding ? forceToRaw(pattern) : pattern;
  compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
}
origin: theonedev/onedev

    pattern = pattern + ".*"; //$NON-NLS-1$
final String p = rawEncoding ? forceToRaw(pattern) : pattern;
compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
origin: berlam/github-bucket

    pattern = pattern + ".*"; //$NON-NLS-1$
final String p = rawEncoding ? forceToRaw(pattern) : pattern;
compiledPattern = Pattern.compile(p, flags).matcher(""); //$NON-NLS-1$
org.eclipse.jgit.revwalk.filterPatternMatchRevFilterforceToRaw

Javadoc

Encode a string pattern for faster matching on byte arrays.

Force the characters to our funny UTF-8 only convention that we use on raw buffers. This avoids needing to perform character set decodes on the individual commit buffers.

Popular methods of PatternMatchRevFilter

  • text
    Obtain the raw text to match against.

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Permission (java.security)
    Legacy security code; do not use.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now