Searched defs:locale (Results 1 - 23 of 23) sorted by relevance

/lucene-3.6.0/lucene/contrib/queryparser/src/java/org/apache/lucene/messages/
H A DMessage.java37 public String getLocalizedMessage(Locale locale); argument
H A DMessageImpl.java58 public String getLocalizedMessage(Locale locale) { argument
59 return NLS.getLocalizedMessage(getKey(), locale, getArguments());
H A DNLS.java61 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 DLocaleAttribute.java36 public void setLocale(Locale locale); argument
H A DLocaleAttributeImpl.java49 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 DQueryNodeException.java81 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 DEscapeQuerySyntax.java34 * @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 DDateFormatTransformer.java53 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 DNumberFormatTransformer.java60 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 DNewCollationAnalyzerTask.java59 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 DTestLocaleMethods.java39 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 DTestLocaleMethods.java39 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 DEscapeQuerySyntaxImpl.java45 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 DStandardQueryParser.java436 * 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 DQueryParserWrapper.java371 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 DSortField.java98 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 DFieldComparator.java766 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 DPatternAnalyzer.java331 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 DPerfRunData.java83 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 DShardDoc.java173 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 DLuceneTestCase.java153 /** 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 DLuceneTestCase.java128 /** 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 DQueryParser.java77 * 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...]

Completed in 56 milliseconds