Codota Logo
Dictionary.caseFold
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Dictionary
private void myMethod () {
Dictionary d =
  • Codota IconDirectory tempDir;String str;InputStream affix;List dictionaries;new Dictionary(tempDir, str, affix, dictionaries, ignoreCase)
  • Codota IconHunspellService hunspellService;String locale;hunspellService.getDictionary(locale)
  • Codota IconHunspellService hunspellService;Path path;hunspellService.getDictionary(path.getFileName().toString())
  • Smart code suggestions by Codota
}
origin: org.apache.lucene/lucene-analyzers-common

/** folds titlecase variant of word to titleBuffer */
private void caseFoldTitle(char word[], int length) {
 titleBuffer = ArrayUtil.grow(titleBuffer, length);
 System.arraycopy(word, 0, titleBuffer, 0, length);
 for (int i = 1; i < length; i++) {
  titleBuffer[i] = dictionary.caseFold(titleBuffer[i]);
 }
}

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

/** folds lowercase variant of word (title cased) to lowerBuffer */
private void caseFoldLower(char word[], int length) {
 lowerBuffer = ArrayUtil.grow(lowerBuffer, length);
 System.arraycopy(word, 0, lowerBuffer, 0, length);
 lowerBuffer[0] = dictionary.caseFold(lowerBuffer[0]);
}

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

ch = caseFold(ch);
 reuse.setCharAt(i, caseFold(reuse.charAt(i)));
origin: org.infinispan/infinispan-embedded-query

/** folds titlecase variant of word to titleBuffer */
private void caseFoldTitle(char word[], int length) {
 titleBuffer = ArrayUtil.grow(titleBuffer, length);
 System.arraycopy(word, 0, titleBuffer, 0, length);
 for (int i = 1; i < length; i++) {
  titleBuffer[i] = dictionary.caseFold(titleBuffer[i]);
 }
}

origin: org.infinispan/infinispan-embedded-query

/** folds lowercase variant of word (title cased) to lowerBuffer */
private void caseFoldLower(char word[], int length) {
 lowerBuffer = ArrayUtil.grow(lowerBuffer, length);
 System.arraycopy(word, 0, lowerBuffer, 0, length);
 lowerBuffer[0] = dictionary.caseFold(lowerBuffer[0]);
}

origin: org.infinispan/infinispan-embedded-query

ch = caseFold(ch);
 reuse.setCharAt(i, caseFold(reuse.charAt(i)));
org.apache.lucene.analysis.hunspellDictionarycaseFold

Javadoc

folds single character (according to LANG if present)

Popular methods of Dictionary

  • <init>
    Creates a new Dictionary containing the information read from the provided InputStreams to hunspell
  • affixFST
  • applyMappings
  • 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
  • getStemException
  • getJavaEncoding,
  • getStemException,
  • hasFlag,
  • indexOfSpaceOrTab,
  • lookup,
  • lookupWord,
  • morphBoundary,
  • parseAffix,
  • parseAlias

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getContentResolver (Context)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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