/lucene-3.6.0/lucene/tools/prettify/ |
H A D | lang-css.js | 1 PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", 3 /^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/util/ |
H A D | SimpleStringInterner.java | 30 final private String str; field in class:SimpleStringInterner.Entry 33 private Entry(String str, int hash, Entry next) { argument 34 this.str = str; 65 if (e.hash == h && (e.str == s || e.str.compareTo(s)==0)) { 66 // if (e.str == s || (e.hash == h && e.str.compareTo(s)==0)) { 67 return e.str;
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | PatternTokenizer.java | 62 private String str; field in class:PatternTokenizer 74 str = IOUtils.toString(input); 75 matcher = pattern.matcher(str); 81 if (index >= str.length()) return false; 104 termAtt.setEmpty().append(str, index, matcher.start()); 113 if (str.length() - index == 0) { 118 termAtt.setEmpty().append(str, index, str.length()); 119 offsetAtt.setOffset(correctOffset(index), correctOffset(str.length())); 127 final int ofs = correctOffset(str [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/highlight/ |
H A D | SimpleBoundaryScanner.java | 29 String str = params.getFieldParam(fieldName, HighlightParams.BS_CHARS, ".,!? \t\n"); 30 Character[] chars = new Character[str.length()]; 31 for(int i = 0; i < str.length(); i++){ 32 chars[i] = str.charAt(i);
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/ |
H A D | TextWriter.java | 29 public abstract void writeString(CharSequence str); argument 31 public abstract void writeString(CharArr str); argument
|
H A D | JSONWriter.java | 49 public void writeString(CharSequence str) { argument 50 JSONUtil.writeString(str,0,str.length(),out); 53 public void writeString(CharArr str) { argument 54 JSONUtil.writeString(str,out);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/document/ |
H A D | NumberTools.java | 114 public static long stringToLong(String str) { argument 115 if (str == null) { 118 if (str.length() != STR_SIZE) { 122 if (str.equals(MIN_STRING_VALUE)) { 126 char prefix = str.charAt(0); 127 long l = Long.parseLong(str.substring(1), RADIX);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/cjk/ |
H A D | TestCJKTokenizer.java | 46 public void checkCJKToken(final String str, final TestToken[] out_tokens) throws IOException { argument 58 assertAnalyzesTo(analyzer, str, terms, startOffsets, endOffsets, types, null); 61 public void checkCJKTokenReusable(final Analyzer a, final String str, final TestToken[] out_tokens) throws IOException { argument 73 assertAnalyzesToReuse(analyzer, str, terms, startOffsets, endOffsets, types, null); 77 String str = "\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341"; 90 checkCJKToken(str, out_tokens); 94 String str = "\u4e00 \u4e8c\u4e09\u56db \u4e94\u516d\u4e03\u516b\u4e5d \u5341"; 106 checkCJKToken(str, out_tokens); 110 String str = "abc defgh ijklmn opqrstu vwxy z"; 120 checkCJKToken(str, out_token [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/ |
H A D | TestBytesRefHash.java | 72 String str; 74 str = _TestUtil.randomRealisticUnicodeString(random, 1000); 75 } while (str.length() == 0); 76 ref.copyChars(str); 106 String str; 108 str = _TestUtil.randomRealisticUnicodeString(random, 1000); 109 } while (str.length() == 0); 110 ref.copyChars(str); 114 assertNull(strings.put(str, Integer.valueOf(key))); 145 String str; [all...] |
H A D | TestCloseableThreadLocal.java | 25 String str = (String)tl.get(); 26 assertEquals(TEST_VALUE, str);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/ |
H A D | LFUCache.java | 68 String str = (String) args.get("size"); 69 int limit = str == null ? 1024 : Integer.parseInt(str); 71 str = (String) args.get("minSize"); 72 if (str == null) { 75 minLimit = Integer.parseInt(str); 81 str = (String) args.get("acceptableSize"); 82 if (str == null) { 85 acceptableSize = Integer.parseInt(str); 90 str [all...] |
H A D | FastLRUCache.java | 65 String str = (String) args.get("size"); 66 int limit = str == null ? 1024 : Integer.parseInt(str); 68 str = (String) args.get("minSize"); 69 if (str == null) { 72 minLimit = Integer.parseInt(str); 78 str = (String) args.get("acceptableSize"); 79 if (str == null) { 82 acceptableLimit = Integer.parseInt(str); 87 str [all...] |
H A D | FunctionQParser.java | 110 /* determine whether the function is ending with a paren or end of str */ 132 String str = parseArg(); 133 if (argWasQuoted()) throw new ParseException("Expected float instead of quoted string:" + str); 134 float value = Float.parseFloat(str); 144 String str = parseArg(); 145 if (argWasQuoted()) throw new ParseException("Expected double instead of quoted string:" + str); 146 double value = Double.parseDouble(str); 156 String str = parseArg(); 157 if (argWasQuoted()) throw new ParseException("Expected double instead of quoted string:" + str); 158 int value = Integer.parseInt(str); [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/ |
H A D | TestCloseableThreadLocal.java | 25 String str = (String)tl.get(); 26 assertEquals(TEST_VALUE, str);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/ |
H A D | EscapeQuerySyntaxImpl.java | 45 private static final CharSequence escapeChar(CharSequence str, Locale locale) { argument 46 if (str == null || str.length() == 0) 47 return str; 49 CharSequence buffer = str; 69 private final CharSequence escapeQuoted(CharSequence str, Locale locale) { argument 70 if (str == null || str.length() == 0) 71 return str; 73 CharSequence buffer = str; 173 escapeWhiteChar(CharSequence str, Locale locale) argument [all...] |
H A D | TokenMgrError.java | 44 protected static final String addEscapes(String str) { argument 47 for (int i = 0; i < str.length(); i++) { 48 switch (str.charAt(i)) 77 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/ |
H A D | RunExecutableListener.java | 55 String str = (String)args.get("dir"); 56 if (str==null || str.equals("") || str.equals(".") || str.equals("./")) { 59 dir = new File(str);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/ |
H A D | PatternAnalyzer.java | 327 private String str; field in class:PatternAnalyzer.PatternTokenizer 335 public PatternTokenizer(Reader input, String str, Pattern pattern, boolean toLowerCase) { argument 338 this.str = str; 339 this.matcher = pattern.matcher(str); 355 end = str.length(); 360 String text = str.substring(start, end); 373 final int finalOffset = correctOffset(str.length()); 380 this.str = PatternAnalyzer.toString(input); 381 this.matcher = pattern.matcher(this.str); 401 private String str; field in class:PatternAnalyzer.FastStringTokenizer 410 FastStringTokenizer(Reader input, String str, boolean isLetter, boolean toLowerCase, Set<?> stopWords) argument [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/surround/parser/ |
H A D | TokenMgrError.java | 44 protected static final String addEscapes(String str) { argument 47 for (int i = 0; i < str.length(); i++) { 48 switch (str.charAt(i)) 77 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
|
H A D | ParseException.java | 152 protected String add_escapes(String str) { argument 155 for (int i = 0; i < str.length(); i++) { 156 switch (str.charAt(i)) 185 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/ |
H A D | TokenMgrError.java | 44 protected static final String addEscapes(String str) { argument 47 for (int i = 0; i < str.length(); i++) { 48 switch (str.charAt(i)) 77 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
|
H A D | ParseException.java | 152 protected String add_escapes(String str) { argument 155 for (int i = 0; i < str.length(); i++) { 156 switch (str.charAt(i)) 185 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/demohtml/ |
H A D | TokenMgrError.java | 44 protected static final String addEscapes(String str) { argument 47 for (int i = 0; i < str.length(); i++) { 48 switch (str.charAt(i)) 77 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) {
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | FastWriter.java | 92 public void write(String str, int off, int len) throws IOException { argument 95 str.getChars(off, off+len, buf, pos); 99 str.getChars(off, off+space, buf, pos); 101 str.getChars(off+space, off+len, buf, 0); 107 sink.write(str, off, len);
|
H A D | ContentStreamBase.java | 130 private final String str; field in class:ContentStreamBase.StringStream 132 public StringStream( String str ) { 133 this.str = str; 137 size = new Long( str.length() ); 142 return new ByteArrayInputStream( str.getBytes(DEFAULT_CHARSET) ); 153 ? new StringReader( str )
|