/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | LegacyHTMLStripCharFilter.java | 75 int ch; 76 while ( (ch=in.read()) != -1 ) System.out.print((char)ch); 102 int ch = pushed.charAt(len-1); 104 return ch; 111 int ch=next(); 112 while(isSpace(ch)) ch=next(); 113 return ch; 122 int ch 127 push(int ch) argument 132 isSpace(int ch) argument 142 isHex(int ch) argument 148 isAlpha(int ch) argument 152 isDigit(int ch) argument 166 isIdChar(int ch) argument 176 isFirstIdChar(int ch) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/ |
H A D | Utility.java | 150 * @param ch input character 155 public static int getCharType(char ch) { argument 157 if (ch >= 0x4E00 && ch <= 0x9FA5) 159 if ((ch >= 0x0041 && ch <= 0x005A) || (ch >= 0x0061 && ch <= 0x007A)) 161 if (ch >= 0x0030 && ch < [all...] |
H A D | SentenceTokenizer.java | 68 char ch, pch; 72 ch = (char) ci; 77 } else if (PUNCTION.indexOf(ch) != -1) { 79 buffer.append(ch); 82 } else if (atBegin && Utility.SPACES.indexOf(ch) != -1) { 86 ch = (char) ci; 88 buffer.append(ch); 91 pch = ch; 93 ch = (char) ci; 95 if (Utility.SPACES.indexOf(ch) ! [all...] |
/lucene-3.6.0/lucene/contrib/highlighter/src/java/org/apache/lucene/search/highlight/ |
H A D | SimpleHTMLEncoder.java | 47 char ch = plainText.charAt(index); 49 switch (ch) 68 if (ch < 128) 70 result.append(ch); 74 result.append("&#").append((int)ch).append(";");
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/ |
H A D | JSONParser.java | 191 int ch = getChar(); 192 if (!(ch==' ' || ch=='\t' || ch=='\n' || ch=='\r')) return ch; 198 int ch = getChar(); 199 if (ch != arr[i]) { 253 int ch = getChar(); 255 switch(ch) { 502 next(int ch) argument [all...] |
H A D | JSONUtil.java | 72 char ch = val[i]; 73 switch(ch) { 77 out.write(ch); 86 if (ch <= 0x1F) { 87 unicodeEscape(ch,out); 89 out.write(ch); 97 char ch = chars.charAt(i); 98 switch(ch) { 102 out.write(ch); 111 if (ch < 121 unicodeEscape(int ch, CharArr out) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/util/ |
H A D | CharArrayIterator.java | 66 protected abstract char jreBugWorkaround(char ch); argument 136 protected char jreBugWorkaround(char ch) { 137 return ch >= 0xD800 && ch <= 0xDFFF ? 0x002C : ch; 144 protected char jreBugWorkaround(char ch) { 145 return ch; 161 protected char jreBugWorkaround(char ch) { 162 return ch >= 0xD800 && ch < [all...] |
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/analysis/ |
H A D | MockCharFilter.java | 51 int ch = bufferedCh; 57 return ch; 61 int ch = in.read(); 62 if (ch < 0) 63 return ch; 66 if ((ch % 10) != remainder || Character.isHighSurrogate((char)ch) || Character.isLowSurrogate((char)ch)) { 67 return ch; 71 bufferedCh = ch; [all...] |
H A D | MockTokenizer.java | 131 int ch = input.read(); 132 if (ch < 0) { 133 return ch; 135 if (ch == 0xffff) { 139 assert !Character.isLowSurrogate((char) ch); 141 if (Character.isHighSurrogate((char) ch)) { 146 return Character.toCodePoint((char) ch, (char) ch2); 149 return ch;
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/tr/ |
H A D | TurkishLowerCaseFilter.java | 60 final int ch = Character.codePointAt(buffer, i); 62 iOrAfter = (ch == LATIN_CAPITAL_LETTER_I || 63 (iOrAfter && Character.getType(ch) == Character.NON_SPACING_MARK)); 66 switch(ch) { 87 i += Character.toChars(Character.toLowerCase(ch), buffer, i); 103 final int ch = Character.codePointAt(s, i); 104 if (Character.getType(ch) != Character.NON_SPACING_MARK) 106 if (ch == COMBINING_DOT_ABOVE) 108 i += Character.charCount(ch);
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | Hash.java | 142 char ch; 143 ch = s.charAt(i++); 144 a += Character.isHighSurrogate(ch) && i< end ? Character.toCodePoint(ch, s.charAt(i++)) : ch; 146 ch = s.charAt(i++); 147 b += Character.isHighSurrogate(ch) && i< end ? Character.toCodePoint(ch, s.charAt(i++)) : ch; 149 ch [all...] |
H A D | StrUtils.java | 44 char ch=0; 46 char prevChar=ch; 47 ch = s.charAt(pos++); 48 if (ch=='\\') { // skip escaped chars 50 } else if (inString != 0 && ch==inString) { 52 } else if (ch=='\'' || ch=='"') { 57 inString=ch; 59 } else if (ch==separator && inString==0) { 101 char ch [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/cjk/ |
H A D | CJKWidthFilter.java | 66 final char ch = text[i]; 67 if (ch >= 0xFF01 && ch <= 0xFF5E) { 70 } else if (ch >= 0xFF65 && ch <= 0xFF9F) { 72 if ((ch == 0xFF9E || ch == 0xFF9F) && i > 0 && combine(text, i, ch)) { 75 text[i] = KANA_NORM[ch - 0xFF65]; 102 private static boolean combine(char text[], int pos, char ch) { argument [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/ |
H A D | BoolField.java | 76 int ch = input.read(); 77 if (ch==-1) return false; 79 ((ch=='t' || ch=='T' || ch=='1') ? TRUE_TOKEN : FALSE_TOKEN) 102 char ch = (val!=null && val.length()>0) ? val.charAt(0) : 0; 103 return (ch=='1' || ch=='t' || ch=='T') ? "T" : "F"; 118 char ch [all...] |
/lucene-3.6.0/solr/core/src/test/org/apache/solr/analysis/ |
H A D | LegacyHTMLStripCharFilterTest.java | 54 int ch = -1; 57 while ((ch = reader.read()) != -1){ 58 char theChar = (char) ch; 72 int ch = -1; 73 while ((ch = reader.read()) != -1){ 74 builder.append((char)ch); 92 int ch = 0; 93 while ((ch = reader.read()) != -1){ 94 builder.append((char)ch); 109 int ch [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/charfilter/ |
H A D | HTMLStripCharFilterTest.java | 66 int ch = -1; 69 while ((ch = reader.read()) != -1){ 70 char theChar = (char) ch; 85 int ch = -1; 86 while ((ch = reader.read()) != -1){ 87 builder.append((char)ch); 103 int ch = 0; 105 while ((ch = reader.read()) != -1){ 106 builder.append((char)ch); 123 int ch [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/tartarus/snowball/ |
H A D | SnowballProgram.java | 144 char ch = current[cursor]; 145 if (ch > max || ch < min) return false; 146 ch -= min; 147 if ((s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return false; 155 char ch = current[cursor - 1]; 156 if (ch > max || ch < min) return false; 157 ch [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/response/ |
H A D | PythonResponseWriter.java | 89 char ch = val.charAt(i); 90 switch(ch) { 92 case '\\': sb.append('\\'); sb.append(ch); break; 99 if (ch<' ' || ch>127) { 100 unicodeEscape(sb, ch); 103 sb.append(ch); 126 char ch = val.charAt(i); 127 switch(ch) { 129 case '\\': writer.write('\\'); writer.write(ch); brea [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | PorterStemmer.java | 87 public void add(char ch) { argument 91 b[i++] = ch; 203 int ch = b[i]; 204 if (ch == 'w' || ch == 'x' || ch == 'y') return false; 275 int ch = b[k--]; 276 if (ch == 'l' || ch == 's' || ch [all...] |
/lucene-3.6.0/lucene/contrib/spatial/src/java/org/apache/lucene/spatial/geohash/ |
H A D | GeoHashUtils.java | 63 int ch = 0; 70 ch |= BITS[bit]; 78 ch |= BITS[bit]; 90 geohash.append(BASE_32[ch]); 92 ch = 0;
|
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/egothor/stemmer/ |
H A D | Trie.java | 137 Character ch = new Character(e.next()); 138 w = now.getCmd(ch); 151 w = now.getRef(ch); 233 Character ch = null; 237 ch = new Character(e.next()); 240 c = now.at(ch); 256 w = now.getRef(ch); 280 Character ch = new Character(e.next()); 281 w = now.getCmd(ch); 285 w = now.getRef(ch); [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | QueryParsing.java | 148 char ch = p.peek(); 149 if (ch == LOCALPARAM_END) { 160 ch = p.peek(); 161 if (ch != '=') { 168 ch = p.peek(); 170 if (ch == '$') { 172 ch = p.peek(); 176 if (ch == '\"' || ch == '\'') { 210 char ch 621 char ch() { method in class:QueryParsing.StrParser 639 opt(char ch) argument [all...] |
/lucene-3.6.0/lucene/contrib/analyzers/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/ |
H A D | TokenInfoFST.java | 67 public FST.Arc<Long> findTargetArc(int ch, FST.Arc<Long> follow, FST.Arc<Long> arc, boolean useCache, FST.BytesReader fstReader) throws IOException { argument 68 if (useCache && ch >= 0x3040 && ch <= cacheCeiling) { 69 assert ch != FST.END_LABEL; 70 final Arc<Long> result = rootCache[ch - 0x3040]; 78 return fst.findTargetArc(ch, follow, arc, fstReader);
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/analysis/ |
H A D | MockTokenizer.java | 121 int ch = input.read(); 122 if (ch < 0) { 123 return ch; 125 assert ch != 0xffff; /* only on 3.x */ 126 assert !Character.isLowSurrogate((char) ch); 128 if (Character.isHighSurrogate((char) ch)) { 133 return Character.toCodePoint((char) ch, (char) ch2); 136 return ch;
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fi/ |
H A D | FinnishLightStemmer.java | 22 * http://members.unine.ch/jacques.savoy/clef/ 234 char ch = s[0]; 236 if (s[i] == ch && 237 (ch == 'k' || ch == 'p' || ch == 't')) 240 ch = s[i]; 248 private boolean isVowel(char ch) { argument 249 switch(ch) {
|