Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0cb65cee
Kaydet (Commit)
0cb65cee
authored
Nis 24, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use LanguageTagIcu
Change-Id: I7b052a3f73740ff3a35f38dc2d96bc621b8d8deb
üst
4806df61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
collator_unicode.cxx
i18npool/source/collator/collator_unicode.cxx
+4
-5
No files found.
i18npool/source/collator/collator_unicode.cxx
Dosyayı görüntüle @
0cb65cee
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#include "lrl_include.hxx"
#include "lrl_include.hxx"
#include <rtl/ustrbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/languagetagicu.hxx>
#include <collator_unicode.hxx>
#include <collator_unicode.hxx>
#include <localedata.hxx>
#include <localedata.hxx>
#include <com/sun/star/i18n/CollatorOptions.hpp>
#include <com/sun/star/i18n/CollatorOptions.hpp>
...
@@ -213,13 +215,10 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
...
@@ -213,13 +215,10 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
/** ICU collators are loaded using a locale only.
/** ICU collators are loaded using a locale only.
ICU uses Variant as collation algorithm name (like de__PHONEBOOK
ICU uses Variant as collation algorithm name (like de__PHONEBOOK
locale), note the empty territory (Country) designator in this special
locale), note the empty territory (Country) designator in this special
case here. The icu::Locale contructor changes the algorithm name to
case here. The icu::Locale con
s
tructor changes the algorithm name to
uppercase itself, so we don't have to bother with that.
uppercase itself, so we don't have to bother with that.
*/
*/
icu
::
Locale
icuLocale
(
icu
::
Locale
icuLocale
(
LanguageTagIcu
::
getIcuLocale
(
LanguageTag
(
rLocale
),
rAlgorithm
));
OUStringToOString
(
rLocale
.
Language
,
RTL_TEXTENCODING_ASCII_US
).
getStr
(),
OUStringToOString
(
rLocale
.
Country
,
RTL_TEXTENCODING_ASCII_US
).
getStr
(),
OUStringToOString
(
rAlgorithm
,
RTL_TEXTENCODING_ASCII_US
).
getStr
());
// load ICU collator
// load ICU collator
collator
=
(
RuleBasedCollator
*
)
icu
::
Collator
::
createInstance
(
icuLocale
,
status
);
collator
=
(
RuleBasedCollator
*
)
icu
::
Collator
::
createInstance
(
icuLocale
,
status
);
if
(
!
U_SUCCESS
(
status
))
throw
RuntimeException
();
if
(
!
U_SUCCESS
(
status
))
throw
RuntimeException
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment