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
be35d10c
Kaydet (Commit)
be35d10c
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: I1e66fa3edb2ddf2b6d6f4cdd25104772ff02c70a
üst
0cb65cee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
ordinalsuffix.cxx
i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+3
-6
No files found.
i18npool/source/ordinalsuffix/ordinalsuffix.cxx
Dosyayı görüntüle @
be35d10c
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
*/
*/
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/languagetagicu.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <string.h>
#include <string.h>
#include "ordinalsuffix.hxx"
#include "ordinalsuffix.hxx"
...
@@ -25,8 +27,6 @@
...
@@ -25,8 +27,6 @@
#include <unicode/rbnf.h>
#include <unicode/rbnf.h>
#include <unicode/normlzr.h>
#include <unicode/normlzr.h>
#define CSTR( ouStr ) OUStringToOString( ouStr, RTL_TEXTENCODING_UTF8 ).getStr( )
using
namespace
::
com
::
sun
::
star
::
i18n
;
using
namespace
::
com
::
sun
::
star
::
i18n
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
...
@@ -72,10 +72,7 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nN
...
@@ -72,10 +72,7 @@ uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nN
// Get the value from ICU
// Get the value from ICU
UErrorCode
nCode
=
U_ZERO_ERROR
;
UErrorCode
nCode
=
U_ZERO_ERROR
;
const
icu
::
Locale
rIcuLocale
(
const
icu
::
Locale
rIcuLocale
(
LanguageTagIcu
::
getIcuLocale
(
LanguageTag
(
aLocale
)));
CSTR
(
aLocale
.
Language
),
CSTR
(
aLocale
.
Country
),
CSTR
(
aLocale
.
Variant
)
);
icu
::
RuleBasedNumberFormat
formatter
(
icu
::
URBNF_ORDINAL
,
rIcuLocale
,
nCode
);
icu
::
RuleBasedNumberFormat
formatter
(
icu
::
URBNF_ORDINAL
,
rIcuLocale
,
nCode
);
if
(
!
U_SUCCESS
(
nCode
))
if
(
!
U_SUCCESS
(
nCode
))
...
...
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