/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/messages/ |
H A D | Message.java | 37 public String getLocalizedMessage(Locale locale); argument
|
H A D | MessageImpl.java | 58 public String getLocalizedMessage(Locale locale) { argument 59 return NLS.getLocalizedMessage(getKey(), locale, getArguments());
|
H A D | NLS.java | 61 public static String getLocalizedMessage(String key, Locale locale) { argument 62 Object message = getResourceBundleObject(key, locale); 64 return "Message with key:" + key + " and locale: " + locale 70 public static String getLocalizedMessage(String key, Locale locale, argument 72 String str = getLocalizedMessage(key, locale); 105 private static Object getResourceBundleObject(String messageKey, Locale locale) { argument 112 locale); 180 System.err.println("WARN: Message with key:" + key + " and locale: " 184 System.err.println("WARN: Message with key:" + key + " and locale [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/ |
H A D | LocaleAttribute.java | 36 public void setLocale(Locale locale); argument
|
H A D | LocaleAttributeImpl.java | 49 private Locale locale = Locale.getDefault(); field in class:LocaleAttributeImpl 53 public void setLocale(Locale locale) { argument 54 config.set(ConfigurationKeys.LOCALE, locale); 77 if (localeAttr.locale == this.locale 78 || (this.locale != null && localeAttr.locale != null && this.locale 79 .equals(localeAttr.locale))) { 93 return (this.locale [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/ |
H A D | QueryNodeException.java | 81 public String getLocalizedMessage(Locale locale) { argument 82 return this.message.getLocalizedMessage(locale);
|
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/ |
H A D | EscapeQuerySyntax.java | 34 * @param locale 35 * - locale for the current query 40 CharSequence escape(CharSequence text, Locale locale, Type type); argument
|
/lucene-3.6.0/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/ |
H A D | DateFormatTransformer.java | 53 Locale locale = Locale.getDefault(); 54 String customLocale = map.get("locale"); 56 locale = new Locale(customLocale); 72 results.add(process(input, fmt, locale)); 77 aRow.put(column, process(o, fmt, locale)); 87 private Date process(Object value, String format, Locale locale) throws ParseException { argument 94 fmt = new SimpleDateFormat(format, locale);
|
H A D | NumberFormatTransformer.java | 60 Locale locale = null; 67 locale = new Locale(matcher.group(1), matcher.group(2)); 72 locale = Locale.getDefault(); 83 results.add(process(input, styleSmall, locale)); 95 row.put(column, process(val.toString(), styleSmall, locale)); 107 private Number process(String val, String style, Locale locale) throws ParseException { argument 109 return parseNumber(val, NumberFormat.getIntegerInstance(locale)); 111 return parseNumber(val, NumberFormat.getNumberInstance(locale)); 113 return parseNumber(val, NumberFormat.getCurrencyInstance(locale)); 115 return parseNumber(val, NumberFormat.getPercentInstance(locale)); [all...] |
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ |
H A D | NewCollationAnalyzerTask.java | 59 static Analyzer createAnalyzer(Locale locale, Implementation impl) argument 64 Object collator = collatorMethod.invoke(null, locale); 75 Locale locale = getRunData().getLocale(); 76 if (locale == null) throw new RuntimeException( 78 Analyzer analyzer = createAnalyzer(locale, impl); 81 + analyzer.getClass().getName() + "(" + locale + ")");
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestLocaleMethods.java | 39 private static Locale locale; field in class:TestLocaleMethods 48 locale = LuceneTestCase.randomLocale(random); 49 collator = Collator.getInstance(locale); 71 locale = null; 79 SortField sf = new SortField("field", locale); 93 return new FieldComparator.StringComparatorLocale(numHits, fieldname, locale);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestLocaleMethods.java | 39 private static Locale locale; field in class:TestLocaleMethods 48 locale = LuceneTestCase.randomLocale(random); 49 collator = Collator.getInstance(locale); 71 locale = null; 79 SortField sf = new SortField("field", locale); 93 return new FieldComparator.StringComparatorLocale(numHits, fieldname, locale);
|
/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 54 "\\", locale); 69 private final CharSequence escapeQuoted(CharSequence str, Locale locale) { argument 77 "\\", locale); 82 private static final CharSequence escapeTerm(CharSequence term, Locale locale) { argument 87 term = escapeChar(term, locale); 88 term = escapeWhiteChar(term, locale); 110 CharSequence sequence1, CharSequence escapeChar, Locale locale) { 133 if ((firstIndex = string.toString().toLowerCase(locale).indexOf(first, 141 if (string.toString().toLowerCase(locale) 109 replaceIgnoreCase(CharSequence string, CharSequence sequence1, CharSequence escapeChar, Locale locale) argument 173 escapeWhiteChar(CharSequence str, Locale locale) argument 187 escape(CharSequence text, Locale locale, Type type) argument [all...] |
/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/ |
H A D | StandardQueryParser.java | 436 * Set locale used by date range parsing. 438 public void setLocale(Locale locale) { argument 441 attr.setLocale(locale); 443 // getQueryConfigHandler().set(ConfigurationKeys.LOCALE, locale); 447 * Returns current locale, allowing access by subclasses.
|
H A D | QueryParserWrapper.java | 371 public void setLocale(Locale locale) { argument 372 this.qpHelper.setLocale(locale);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | SortField.java | 98 private Locale locale; // defaults to "natural order" (no Locale) field in class:SortField 169 * according to the given locale. 171 * @param locale Locale of values in the field. 173 public SortField (String field, Locale locale) { argument 175 this.locale = locale; 179 * according to the given locale. 181 * @param locale Locale of values in the field. 183 public SortField (String field, Locale locale, boolean reverse) { argument 185 this.locale [all...] |
H A D | FieldComparator.java | 766 StringComparatorLocale(int numHits, String field, Locale locale) { argument 769 collator = Collator.getInstance(locale);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/miscellaneous/ |
H A D | PatternAnalyzer.java | 331 private static final Locale locale = Locale.getDefault(); field in class:PatternAnalyzer.PatternTokenizer 361 if (toLowerCase) text = text.toLowerCase(locale); 406 private static final Locale locale = Locale.getDefault(); field in class:PatternAnalyzer.FastStringTokenizer 443 if (toLowerCase) text = text.toLowerCase(locale);
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/ |
H A D | PerfRunData.java | 83 private Locale locale; field in class:PerfRunData 374 * @return the locale 377 return locale; 381 * @param locale the locale to set 383 public void setLocale(Locale locale) { argument 384 this.locale = locale;
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/ |
H A D | ShardDoc.java | 173 Comparator getCachedComparator(String fieldname, int type, Locale locale, FieldComparatorSource factory) { argument 180 if (locale != null) 181 comparator = comparatorStringLocale(fieldname, locale); 274 Locale locale) { 275 final Collator collator = Collator.getInstance(locale); 273 comparatorStringLocale(final String fieldName, Locale locale) argument
|
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/ |
H A D | LuceneTestCase.java | 153 /** Gets the locale to run tests with */ 154 public static final String TEST_LOCALE = System.getProperty("tests.locale", "random"); 190 private static Locale locale; field in class:LuceneTestCase 284 // ICU fails during classloading when a special Java7-only locale is the default 297 locale = TEST_LOCALE.equals("random") ? randomLocale(random) : localeForName(TEST_LOCALE); 298 Locale.setDefault(locale); 299 // TimeZone.getDefault will set user.timezone to the default timezone of the user's locale. 385 "locale=" + locale + 1395 if (!TEST_LOCALE.equals("random")) sb.append(" -Dtests.locale [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/ |
H A D | LuceneTestCase.java | 128 /** Gets the locale to run tests with */ 129 public static final String TEST_LOCALE = System.getProperty("tests.locale", "random"); 168 private static Locale locale; field in class:LuceneTestCase 210 // ICU fails during classloading when a special Java7-only locale is the default 223 locale = TEST_LOCALE.equals("random") ? randomLocale(random) : localeForName(TEST_LOCALE); 224 Locale.setDefault(locale); 295 "locale=" + locale + 1212 if (!TEST_LOCALE.equals("random")) sb.append(" -Dtests.locale=").append(TEST_LOCALE);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/queryParser/ |
H A D | QueryParser.java | 77 * of the accepted input depends on {@link #setLocale(Locale) the locale}. 145 Locale locale = Locale.getDefault(); field in class:QueryParser 414 * Set locale used by date range parsing. 416 public void setLocale(Locale locale) { argument 417 this.locale = locale; 421 * Returns current locale, allowing access by subclasses. 424 return locale; 777 DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale); 798 Calendar cal = Calendar.getInstance(locale); [all...] |