Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 25 of 258) sorted by relevance

1234567891011

/trunk/main/sal/osl/unx/
H A Dnlsupport.c174 static rtl_Locale * _parse_locale( const char * locale ) in _parse_locale() argument
179 if( locale ) in _parse_locale()
181 size_t len = strlen( locale ); in _parse_locale()
194 if( (len > 3 && '_' == locale[3]) || (len == 3 && '_' != locale[2]) ) in _parse_locale()
198 …rtl_string2UString( &pLanguage, locale, offset, RTL_TEXTENCODING_ASCII_US, OSTRING_TO_OUSTRING_CVT… in _parse_locale()
202 if( len >= offset+3 && '_' == locale[offset] ) in _parse_locale()
204 …rtl_string2UString( &pCountry, locale + offset + 1, 2, RTL_TEXTENCODING_ASCII_US, OSTRING_TO_OUSTR… in _parse_locale()
211 …rtl_string2UString( &pVariant, locale + offset, len - offset, RTL_TEXTENCODING_ASCII_US, OSTRING_T… in _parse_locale()
616 char * locale; in _imp_getProcessLocale() local
622 locale = setlocale( LC_CTYPE, "" ); in _imp_getProcessLocale()
[all …]
H A Dosxlocale.cxx73 int macosx_getLocale(char *locale, sal_uInt32 bufferLen) in macosx_getLocale() argument
86 CFStringGetCString(lang, locale, bufferLen, kCFStringEncodingASCII); in macosx_getLocale()
92 strlcat(locale, "_", bufferLen - strlen(locale)); in macosx_getLocale()
95 …CFStringGetCString(country, locale + strlen(locale), bufferLen - strlen(locale), kCFStringEncoding… in macosx_getLocale()
100 strlcat(locale, ".UTF-8", bufferLen - strlen(locale)); in macosx_getLocale()
/trunk/main/offapi/com/sun/star/resource/
H A DXStringResourceResolver.idl51 interfaces will be notified if either the current locale changes or if
56 But also changing the locale at runtime can be supported in this way.
62 Resolves the passed ResoureID for the current locale. This
63 locale is set during initialization of the object implementing
83 /** Resolves the passed ResoureID for a specific locale.
87 the use of the current locale.
94 @param locale
95 The locale the string should be resolved for.
96 The locale has to match exactly with one of the locales provided by
102 if no entry exists for the given ResourceID or locale
[all …]
H A DXStringResourceManager.idl80 /** Sets the locale to be used
83 Specifies the current locale to be used.
86 <p>If true: If the exact locale that should be set is not available
89 the default locale will be used <TRUE/>.
91 <p>If false: If the exact locale that should be set is not available
95 <p>If false: If the exact locale that should be set is not available
101 [in] com::sun::star::lang::Locale locale,
107 /** Sets the default locale to be used
110 Specifies the default locale to be used.
111 If this locale is not available a
[all …]
H A DXLocale.idl55 /** creates a locale from language, country, and variant.
74 /** the common method of getting the current default locale.
79 locale, you probably want to reload your GUI, so that the
92 /** sets the default locale for the whole environment.
96 locale.
139 the ISO language code for the specified locale.
141 string getISO3Language( [in] com::sun::star::lang::Locale locale )
148 the ISO country code for the specified locale.
150 string getISO3Country( [in] com::sun::star::lang::Locale locale )
159 is from the default locale.
[all …]
H A DXResourceBundle.idl40 /** Resource bundles contain locale-specific objects.
42 <p>When your program needs a locale-specific resource, such as
44 resource bundle that is appropriate for the current user's locale. In
46 the user's locale, which isolates most, if not all, of the
47 locale-specific information in resource bundles.
65 additional component that identifies its locale. For example, suppose
69 can also provide as many related locale-specific services as you need.
76 the same items, but the items have been translated for the locale
91 When your program needs a locale-specific object, it loads
102 indicates the desired locale. <code>getBundle</code> uses these two
[all …]
/trunk/main/scripting/source/stringresource/
H A Dstringresource.cxx222 …ringResourceImpl::resolveStringForLocale( const ::rtl::OUString& ResourceID, const Locale& locale ) in resolveStringForLocale() argument
226 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in resolveStringForLocale()
250 const Locale& locale ) in hasEntryForIdAndLocale() argument
254 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in hasEntryForIdAndLocale()
281 ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException) in getResourceIDsForLocale() argument
284 LocaleItem* pLocaleItem = getItemForLocale( locale, false ); in getResourceIDsForLocale()
355 void StringResourceImpl::implSetCurrentLocale( const Locale& locale, in implSetCurrentLocale() argument
363 pLocaleItem = getClosestMatchItemForLocale( locale ); in implSetCurrentLocale()
365 pLocaleItem = getItemForLocale( locale, true ); in implSetCurrentLocale()
380 void StringResourceImpl::setCurrentLocale( const Locale& locale, sal_Bool FindClosestMatch ) in setCurrentLocale() argument
[all …]
H A Dstringresource.hxx108 LocaleItem( ::com::sun::star::lang::Locale locale, bool bLoaded=true ) in LocaleItem()
109 : m_locale( locale ) in LocaleItem()
159 … LocaleItem* getItemForLocale( const ::com::sun::star::lang::Locale& locale, sal_Bool bException )
164 LocaleItem* getClosestMatchItemForLocale( const ::com::sun::star::lang::Locale& locale );
165 void implSetCurrentLocale( const ::com::sun::star::lang::Locale& locale,
211 const ::com::sun::star::lang::Locale& locale )
217 const ::com::sun::star::lang::Locale& locale )
222 ( const ::com::sun::star::lang::Locale& locale )
234 …virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, ::sal_Bool F…
236 virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale )
[all …]
/trunk/test/testuno/source/api/i18n/
H A DXBreakIteratorTest.java103 Locale locale = null; field in XBreakIteratorTest
133 locale = new Locale("en", "US", ""); in before()
170 locale, nCharacterIteratorMode, nextCharacters[i][1], lDone); in _nextCharacters()
206 locale, nCharacterIteratorMode, in _previousCharacters()
235 (UnicodeString, i, locale, wordType); in nextWord()
263 oObj.previousWord(UnicodeString, i, locale, wordType); in _previousWord()
297 locale, wordType, true); in _getWordBoundary()
329 short type = oObj.getWordType(UnicodeString, iPos, locale); in _getWordType()
354 locale, wordType); in _isBeginWord()
357 iBounds.startPos + 1, locale, wordType); in _isBeginWord()
[all …]
/trunk/main/sal/osl/os2/
H A Dnlsupport.c165 static rtl_Locale * _parse_locale( const char * locale ) in _parse_locale() argument
170 if( locale ) in _parse_locale()
172 size_t len = strlen( locale ); in _parse_locale()
183 …rtl_string2UString( &pLanguage, locale, 2, RTL_TEXTENCODING_ASCII_US, OSTRING_TO_OUSTRING_CVTFLAGS… in _parse_locale()
187 if( len >= 5 && '_' == locale[2] ) in _parse_locale()
189 …rtl_string2UString( &pCountry, locale + 3, 2, RTL_TEXTENCODING_ASCII_US, OSTRING_TO_OUSTRING_CVTFL… in _parse_locale()
196 …rtl_string2UString( &pVariant, locale + offset, len - offset, RTL_TEXTENCODING_ASCII_US, OSTRING_T… in _parse_locale()
387 char * locale = getenv( "LC_ALL" ); in _imp_getProcessLocale() local
389 if( NULL == locale ) in _imp_getProcessLocale()
390 locale = getenv( "LC_CTYPE" ); in _imp_getProcessLocale()
[all …]
/trunk/main/offapi/com/sun/star/i18n/
H A DXLocaleData.idl44 Access locale specific data as it is defined in XML locale data
48 <p> For XML locale data files definitions see <a
49 href="http://l10n.openoffice.org/source/browse/l10n/i18npool/source/localedata/data/locale.dtd">
51 …="http://l10n.openoffice.org/source/browse/l10n/i18npool/source/localedata_ascii/Attic/locale.dtd">
58 /** returns the LC_INFO locale information.
70 /** returns all LC_CALENDAR calendars for a locale.
76 /** returns all LC_CURRENCY currencies for a locale.
82 /** returns all LC_FORMAT format elements for a locale.
88 /** returns all LC_COLLATION collators for a locale.
94 /** returns all LC_SEARCH search options for a locale.
[all …]
H A DXCollator.idl33 /** provides locale-sensitive collation algorithms for string comparison.
39 /** Compare 2 substrings in specific locale and algorithm.
68 /** Compare 2 strings in specific locale and algorithm.
85 locale data.
88 The locale for this collator.
102 /** Load a particular collator algorithm for the locale.
108 The locale for this collator.
122 /** List all collator algorithms for a given locale.
125 The locale for which to list algorithms.
140 The locale for this collator.
H A DXExtendedIndexEntrySupplier.idl44 <li>Provide supported language/locale list.
56 Returns locale list for which the IndexEntrySupplier provides service.
62 Returns index algorithm list for specific locale
69 Checks if Phonetic Entry should be used for the locale.
75 Returns phonetic candidate for index entry for the locale.
82 Loads index algorithm for the locale.
115 aLocale and the locale in loadAlgorithm may be different.
140 aLocale and the locale in loadAlgorithm may be different.
/trunk/main/i18npool/source/localedata/
H A Dfilewriter.cxx33 OFileWriter::OFileWriter(const char *pcFile, const char *locale ) { in OFileWriter() argument
39 strncpy( theLocale, locale, sizeof(theLocale) ); in OFileWriter()
74 const char* locale = aRefLocale.getStr(); in writeRefFunction() local
75 fprintf(m_f, "extern sal_Unicode ** SAL_CALL %s%s(sal_Int16& count);\n", func, locale); in writeRefFunction()
77 fprintf(m_f, "\treturn %s%s(count);\n}\n", func, locale); in writeRefFunction()
92 const char* locale = aRefLocale.getStr(); in writeRefFunction() local
93 …L_CALL %s%s(sal_Int16& count, const sal_Unicode*& from, const sal_Unicode*& to);\n", func, locale); in writeRefFunction()
97 fprintf(m_f, "\treturn %s%s(count, from, tmp);\n}\n", func, locale); in writeRefFunction()
111 const char* locale = aRefLocale.getStr(); in writeRefFunction2() local
112 …onst sal_Unicode *** SAL_CALL %s%s(sal_Int16& nStyles, sal_Int16& nAttributes);\n", func, locale); in writeRefFunction2()
[all …]
/trunk/main/sc/workben/celltrans/
H A Dparse.py40 def __init__ (self, locale): argument
41 self.locale = locale
51 return func.lower() + "_" + getAscii(pair[1]).lower() + "_" + self.locale
58 chars += "// %s language locale (automatically generated)\n"%getLocaleName(self.locale)
60 … chars += "static const Locale a" + self.locale.capitalize() + "(OUString::createFromAscii(\""
61 chars += self.locale
89 chars += "static const TransItem p" + self.locale.capitalize() + "[] = {\n"
102 "p"+self.locale.capitalize(), "a"+self.locale.capitalize())
163 locale = getAscii(buf)
164 localeList.append(LocaleData(locale))
/trunk/main/configmgr/source/
H A Dconfigurationprovider.cxx103 rtl::OUString const & locale): in Service() argument
105 locale_(locale) in Service()
187 rtl::OUString locale; in createInstanceWithArguments() local
227 if (locale.getLength() != 0 || !(value >>= locale) || in createInstanceWithArguments()
228 locale.getLength() == 0) in createInstanceWithArguments()
248 if (locale.getLength() == 0) { in createInstanceWithArguments()
250 locale = locale_; in createInstanceWithArguments()
251 if (locale.getLength() == 0) { in createInstanceWithArguments()
252 locale = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("en-US")); in createInstanceWithArguments()
276 new RootAccess(components, nodepath, locale, update)); in createInstanceWithArguments()
[all …]
H A Dchildaccess.cxx237 rtl::OUString locale(getRootAccess()->getLocale()); in setProperty() local
238 if (!Components::allLocales(locale)) { in setProperty()
239 rtl::Reference< ChildAccess > child(getChild(locale)); in setProperty()
244 locale, value, localModifications); in setProperty()
277 rtl::OUString locale(getRootAccess()->getLocale()); in asValue() local
278 if (!Components::allLocales(locale)) { in asValue()
287 child = getChild(locale); in asValue()
288 if (child.is() || locale.getLength() == 0) { in asValue()
291 sal_Int32 i = locale.getLength() - 1; in asValue()
292 while (i > 0 && locale[i] != '-' && locale[i] != '_') { in asValue()
[all …]
/trunk/main/extensions/source/oooimprovement/
H A Derrormail.cxx90 const char * locale = getenv( "LC_ALL" ); in getLocale() local
91 if( NULL == locale ) in getLocale()
92 locale = getenv( "LC_CTYPE" ); in getLocale()
94 if( NULL == locale ) in getLocale()
95 locale = getenv( "LANG" ); in getLocale()
97 if( NULL == locale ) in getLocale()
98 locale = "C"; in getLocale()
99 return locale; in getLocale()
/trunk/main/shell/source/backends/localebe/
H A Dlocalebackend.cxx47 const char *locale = setlocale(category, ""); in ImplGetLocale() local
50 if( (locale == NULL) || ( locale[0] == 'C' && locale[1] == '\0' ) ) in ImplGetLocale()
60 for (cp = locale; *cp; cp++) in ImplGetLocale()
71 aLocaleBuffer.appendAscii(locale, uscore++ - locale); in ImplGetLocale()
77 aLocaleBuffer.appendAscii(locale, cp - locale); in ImplGetLocale()
/trunk/main/qadevOOo/java/OOoRunner/src/main/java/ifc/sheet/
H A D_SpreadsheetDocumentSettings.java115 protected Locale locale = new Locale("ru", "RU", ""); field in _SpreadsheetDocumentSettings.ForbiddenChrTest
120 if (rLocale.Country.equals(locale.Country) && in getForbiddenCharacters()
121 rLocale.Language.equals(locale.Language) && in getForbiddenCharacters()
122 rLocale.Variant.equals(locale.Variant)) { in getForbiddenCharacters()
137 if (rLocale.Country.equals(locale.Country) && in hasForbiddenCharacters()
138 rLocale.Language.equals(locale.Language) && in hasForbiddenCharacters()
139 rLocale.Variant.equals(locale.Variant)) { in hasForbiddenCharacters()
/trunk/main/offapi/com/sun/star/util/
H A DXLocalizedAliases.idl56 [in]com::sun::star::lang::Locale locale,
62 void unbindAlias([in]com::sun::star::lang::Locale locale,
68 string lookupAlias([in]com::sun::star::lang::Locale locale,
74 string lookupProgrammatic([in]com::sun::star::lang::Locale locale,
92 void renameAlias([in]com::sun::star::lang::Locale locale,
100 @param locale
101 specifies the locale scope.
106 sequence<AliasProgrammaticPair> listAliases([in]com::sun::star::lang::Locale locale);
H A DXNumberFormats.idl75 the locale of number formats to return.
96 the locale for number formats to find
116 the locale for the number format
128 string in a different locale than the desired locale of the
138 the original locale for the number format
141 the new locale for the number format to be converted
172 the locale for the number format
/trunk/main/sysui/desktop/share/
H A Dtranslate.pl111 ($locale, $value) = split(' = ', $line);
113 if ( $locale ne $line ) {
115 $locale=~s/en-US/en/;
123 $locale=~s/-/_/;
125 print OUTFILE "$key\[$locale\]=$value\n";
127 print OUTFILE "\t\[$locale\]$key=$value\n";
/trunk/main/desktop/source/deployment/misc/
H A Ddp_resource.cxx185 ::com::sun::star::lang::Locale locale; in toLocale()
189 locale.Language = lang; in toLocale()
197 locale.Country = country; in toLocale()
201 locale.Variant = country; in toLocale()
204 if (locale.Variant.getLength() == 0) in toLocale()
210 locale.Variant = variant; in toLocale()
214 return locale; in toLocale()
/trunk/main/vcl/unx/generic/app/
H A Di18n_im.cxx232 char *locale = SetSystemLocale( pLocale ); in SetLocale() local
233 if ( (!IsXWindowCompatibleLocale(locale)) || IsPosixLocale(locale) ) in SetLocale()
236 locale = SetSystemLocale( "en_US" ); in SetLocale()
240 if (! IsXWindowCompatibleLocale(locale)) in SetLocale()
242 locale = SetSystemLocale( "C" ); in SetLocale()
246 if (! IsXWindowCompatibleLocale(locale)) in SetLocale()
255 locale); in SetLocale()

1234567891011