congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Dictionary.indexOfSpaceOrTab
Code IndexAdd Tabnine to your IDE (free)

How to use
indexOfSpaceOrTab
method
in
org.apache.lucene.analysis.hunspell.Dictionary

Best Java code snippets using org.apache.lucene.analysis.hunspell.Dictionary.indexOfSpaceOrTab (Showing top 4 results out of 315)

origin: org.apache.lucene/lucene-analyzers-common

static int morphBoundary(String line) {
 int end = indexOfSpaceOrTab(line, 0);
 if (end == -1) {
  return line.length();
 }
 while (end >= 0 && end < line.length()) {
  if (line.charAt(end) == '\t' ||
    end+3 < line.length() && 
    Character.isLetter(line.charAt(end+1)) && 
    Character.isLetter(line.charAt(end+2)) &&
    line.charAt(end+3) == ':') {
   break;
  }
  end = indexOfSpaceOrTab(line, end+1);
 }
 if (end == -1) {
  return line.length();
 }
 return end;
}

origin: org.apache.lucene/lucene-analyzers-common

private String parseStemException(String morphData) {
 // first see if it's an alias
 if (morphAliasCount > 0) {
  try {
   int alias = Integer.parseInt(morphData.trim());
   morphData = morphAliases[alias-1];
  } catch (NumberFormatException e) {  
   // fine
  }
 }
 // try to parse morph entry
 int index = morphData.indexOf(" st:");
 if (index < 0) {
  index = morphData.indexOf("\tst:");
 }
 if (index >= 0) {
  int endIndex = indexOfSpaceOrTab(morphData, index+1);
  if (endIndex < 0) {
   endIndex = morphData.length();
  }
  return morphData.substring(index+4, endIndex);
 }
 return null;
}
origin: org.infinispan/infinispan-embedded-query

static int morphBoundary(String line) {
 int end = indexOfSpaceOrTab(line, 0);
 if (end == -1) {
  return line.length();
 }
 while (end >= 0 && end < line.length()) {
  if (line.charAt(end) == '\t' ||
    end+3 < line.length() && 
    Character.isLetter(line.charAt(end+1)) && 
    Character.isLetter(line.charAt(end+2)) &&
    line.charAt(end+3) == ':') {
   break;
  }
  end = indexOfSpaceOrTab(line, end+1);
 }
 if (end == -1) {
  return line.length();
 }
 return end;
}

origin: org.infinispan/infinispan-embedded-query

private String parseStemException(String morphData) {
 // first see if it's an alias
 if (morphAliasCount > 0) {
  try {
   int alias = Integer.parseInt(morphData.trim());
   morphData = morphAliases[alias-1];
  } catch (NumberFormatException e) {  
   // fine
  }
 }
 // try to parse morph entry
 int index = morphData.indexOf(" st:");
 if (index < 0) {
  index = morphData.indexOf("\tst:");
 }
 if (index >= 0) {
  int endIndex = indexOfSpaceOrTab(morphData, index+1);
  if (endIndex < 0) {
   endIndex = morphData.length();
  }
  return morphData.substring(index+4, endIndex);
 }
 return null;
}
org.apache.lucene.analysis.hunspellDictionaryindexOfSpaceOrTab

Popular methods of Dictionary

  • <init>
    Creates a new Dictionary containing the information read from the provided InputStreams to hunspell
  • affixFST
  • applyMappings
  • caseFold
    folds single character (according to LANG if present)
  • cleanInput
  • decodeFlags
  • encodeFlags
  • escapeDash
  • getAliasValue
  • getDictionaryEncoding
    Parses the encoding specified in the affix file readable through the provided InputStream
  • getFlagParsingStrategy
    Determines the appropriate FlagParsingStrategy based on the FLAG definition line taken from the affi
  • getJavaEncoding
    Retrieves the CharsetDecoder for the given encoding. Note, This isn't perfect as I think ISCII-DEVAN
  • getFlagParsingStrategy,
  • getJavaEncoding,
  • getStemException,
  • hasFlag,
  • lookup,
  • lookupWord,
  • morphBoundary,
  • parseAffix,
  • parseAlias

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JList (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 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