congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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