/lucene-3.6.0/solr/core/src/java/org/apache/solr/internal/csv/ |
H A D | CSVStrategy.java | 31 private char escape; field in class:CSVStrategy 76 char escape, 85 setEscape(escape); 115 public void setEscape(char escape) { this.escape = escape; } argument 116 public char getEscape() { return this.escape; } 72 CSVStrategy( char delimiter, char encapsulator, char commentStart, char escape, boolean ignoreLeadingWhitespace, boolean ignoreTrailingWhitespace, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines) argument
|
H A D | CSVPrinter.java | 158 char escape = this.strategy.getEscape(); 162 if (c == '\r' || c=='\n' || c==delim || c==escape) { 171 out.write(escape);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/ |
H A D | EscapeQuerySyntax.java | 24 * to escape the queries, when the toQueryString method is called. 37 * - select the type of escape operation to use 40 CharSequence escape(CharSequence text, Locale locale, Type type); method in interface:EscapeQuerySyntax
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/response/ |
H A D | CSVResponseWriter.java | 72 static String ESCAPE = "escape"; 188 String escape = params.get(CSV_ESCAPE); 194 if (escape!=null) { 195 if (escape.length()!=1) throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,"Invalid escape:'"+escape+"'"); 196 strat.setEscape(escape.charAt(0)); 203 // If the escape is the standard backslash, then also enable 222 escape = params.get(MV_ESCAPE); 227 if (escape [all...] |
H A D | PythonResponseWriter.java | 83 // python doesn't tolerate newlines in strings in it's eval(), so we must escape them. 97 // we don't strictly have to escape these chars, but it will probably increase 120 // python doesn't tolerate newlines in strings in it's eval(), so we must escape them. 133 // we don't strictly have to escape these chars, but it will probably increase
|
H A D | XMLWriter.java | 196 public void writeAttr(String name, String val, boolean escape) throws IOException{ argument 201 if(escape){ 215 * @param escape 218 public void startTag(String tag, Map<String,String> attributes, boolean closeTag, boolean escape) throws IOException { argument 224 writeAttr(entry.getKey(), entry.getValue(), escape); 761 public void writePrim(String tag, String name, String val, boolean escape) throws IOException { argument 763 // size was small enough to fit (if escape==false we can calc exact size) 783 if (escape) {
|
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/common/util/ |
H A D | XML.java | 32 // only have to escape quotes in attribute values, and don't really have to escape '>' 44 #Simple python script used to generate the escape table above. -YCS 55 #a real XML escape would cause many strict XML parsers to choke. 79 escape(str, out, chardata_escapes); 83 escape(str, out, attribute_escapes); 87 escape(chars, start, length, out, attribute_escapes); 107 /** does NOT escape character data in val, must already be valid XML */ 182 private static void escape(char [] chars, int offset, int length, Writer out, String [] escapes) throws IOException{ method in class:XML 196 private static void escape(Strin method in class:XML [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ |
H A D | FieldQueryNode.java | 78 return escaper.escape(this.text, Locale.getDefault(), Type.NORMAL); 82 return escaper.escape(this.text, Locale.getDefault(), Type.STRING);
|
H A D | PathQueryNode.java | 189 CharSequence value = escaper.escape(pathelement.value, Locale
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/ |
H A D | CSVRequestHandler.java | 85 public static final String ESCAPE="escape"; 223 String escape = params.get(ESCAPE); 224 if (escape!=null) { 225 if (escape.length()!=1) throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,"Invalid escape:'"+escape+"'"); 228 // if only encapsulator or escape is set, disable the other escaping mechanism 229 if (encapsulator == null && escape != null) { 231 strategy.setEscape(escape.charAt(0)); 236 if (escape ! [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/ |
H A D | NumericQueryNode.java | 88 * @param escaper the {@link EscapeQuerySyntax} used to escape the value {@link String} 93 return escaper.escape(NumberFormat.getNumberInstance().format(this.value),
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/ |
H A D | SimpleQQParser.java | 69 bq.add(qp.parse(QueryParser.escape(qq.getValue(qqNames[i]))), BooleanClause.Occur.SHOULD);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/ext/ |
H A D | Extensions.java | 133 * {@link QueryParser#escape(String)}. 141 return QueryParser.escape(extfield);
|
/lucene-3.6.0/lucene/tools/prettify/ |
H A D | lang-sql.js | 1 PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r �\xa0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|merge|national|nocheck|nonclustered|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|percent|plan|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rule|save|schema|select|session_user|set|setuser|shutdown|some|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|union|unique|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|writetext)(?=[^\w-]|$)/i,
|
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/ |
H A D | TestNumericQueryParser.java | 401 lowerDateStr = ESCAPER.escape( 410 upperDateStr = ESCAPER.escape( 438 String boundDateStr = ESCAPER.escape( 457 String dateStr = ESCAPER.escape( 485 return number == null ? "*" : ESCAPER.escape(NUMBER_FORMAT.format(number),
|
H A D | TestQPHelper.java | 258 String escapedQuery = QueryParserUtil.escape(query); 876 // escape char
|
H A D | TestQueryParserWrapper.java | 258 String escapedQuery = QueryParserWrapper.escape(query); 849 assertParseException("XY\\"); // there must be a character after the escape
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/ |
H A D | QueryParserUtil.java | 190 public static String escape(String s) { method in class:QueryParserUtil
|
H A D | QueryParserWrapper.java | 79 public static String escape(String s) { method in class:QueryParserWrapper
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/ |
H A D | EscapeQuerySyntaxImpl.java | 165 * escape all tokens that are part of the parser syntax on a given string 187 public CharSequence escape(CharSequence text, Locale locale, Type type) { method in class:EscapeQuerySyntaxImpl 191 // escape wildcards and the escape char (this has to be perform before 193 // since we need to preserve the UnescapedCharSequence and escape the 194 // original escape chars 209 * Returns a String where the escape char has been removed, or kept only once 210 * if there was a double escape. 223 // due to discarded escape chars. This variable holds 228 // an escape characte [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/ |
H A D | QueryParser.jj | 1077 * Returns a String where the escape char has been 1078 * removed, or kept only once if there was a double escape. 1089 // due to discarded escape chars. This variable holds 1094 // an escape character 1134 throw new ParseException("Truncated unicode escape sequence."); 1138 throw new ParseException("Term can not end with escape character."); 1153 throw new ParseException("None-hex character in unicode escape sequence: " + c); 1161 public static String escape(String s) {
|
H A D | QueryParser.java | 1053 * Returns a String where the escape char has been 1054 * removed, or kept only once if there was a double escape. 1065 // due to discarded escape chars. This variable holds 1070 // an escape character 1110 throw new ParseException("Truncated unicode escape sequence."); 1114 throw new ParseException("Term can not end with escape character."); 1129 throw new ParseException("None-hex character in unicode escape sequence: " + c); 1137 public static String escape(String s) { method in class:QueryParser
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/queryParser/ |
H A D | QueryParserTestBase.java | 182 String escapedQuery = QueryParser.escape(query); 757 assertParseException("XY\\"); // there must be a character after the escape char
|
/lucene-3.6.0/dev-tools/scripts/ |
H A D | smokeTestRelease.py | 909 reBinaryJarWar = re.compile(r'%s\.[jw]ar$' % re.escape(version))
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/queryParser/ |
H A D | QueryParserTestBase.java | 179 String escapedQuery = QueryParser.escape(query); 749 assertParseException("XY\\"); // there must be a character after the escape char
|