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
2c571050
Kaydet (Commit)
2c571050
authored
Ara 12, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i18npool: Use appropriate OUString functions on string constants
Change-Id: I82fea345a05c0327af3b75ccfd3358f54523c082
üst
7948b273
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
26 deletions
+23
-26
breakiteratorImpl.cxx
i18npool/source/breakiterator/breakiteratorImpl.cxx
+3
-3
breakiterator_cjk.cxx
i18npool/source/breakiterator/breakiterator_cjk.cxx
+1
-1
collator_unicode.cxx
i18npool/source/collator/collator_unicode.cxx
+1
-1
indexentrysupplier.cxx
i18npool/source/indexentry/indexentrysupplier.cxx
+2
-2
indexentrysupplier_ja_phonetic.cxx
...pool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
+4
-4
LocaleNode.cxx
i18npool/source/localedata/LocaleNode.cxx
+6
-6
nativenumbersupplier.cxx
i18npool/source/nativenumber/nativenumbersupplier.cxx
+2
-4
ordinalsuffix.cxx
i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+2
-2
textsearch.cxx
i18npool/source/search/textsearch.cxx
+2
-3
No files found.
i18npool/source/breakiterator/breakiteratorImpl.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -581,9 +581,9 @@ BreakIteratorImpl::getLocaleSpecificBreakIterator(const Locale& rLocale) throw (
// load service with name <base>_<lang>_<country>
createLocaleSpecificBreakIterator
(
aBuf
.
append
(
rLocale
.
Language
).
append
(
under
).
append
(
rLocale
.
Country
).
makeStringAndClear
()))
||
(
l
>
0
&&
c
>
0
&&
rLocale
.
Language
.
equalsAscii
(
"zh"
)
&&
(
rLocale
.
Country
.
equalsAscii
(
"HK"
)
||
rLocale
.
Country
.
equalsAscii
(
"MO"
)
)
&&
(
l
>
0
&&
c
>
0
&&
rLocale
.
Language
==
"zh"
&&
(
rLocale
.
Country
==
"HK"
||
rLocale
.
Country
==
"MO"
)
&&
// if the country code is HK or MO, one more step to try TW.
createLocaleSpecificBreakIterator
(
aBuf
.
append
(
rLocale
.
Language
).
append
(
under
).
appendAscii
(
"TW"
).
makeStringAndClear
()))
||
...
...
i18npool/source/breakiterator/breakiterator_cjk.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -110,7 +110,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
return
lbr
;
}
#define LOCALE(language, country) lang::Locale(
OUString::createFromAscii(language), OUString::createFromAscii(country)
, OUString())
#define LOCALE(language, country) lang::Locale(
language, country
, OUString())
// ----------------------------------------------------
// class BreakIterator_zh
// ----------------------------------------------------;
...
...
i18npool/source/collator/collator_unicode.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -139,7 +139,7 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
collator
=
new
RuleBasedCollator
(
reinterpret_cast
<
const
UChar
*>
(
rule
.
getStr
()),
status
);
// UChar != sal_Unicode in MinGW
if
(
!
U_SUCCESS
(
status
))
throw
RuntimeException
();
}
if
(
!
collator
&&
OUString
::
createFromAscii
(
LOCAL_RULE_LANGS
).
indexOf
(
rLocale
.
Language
)
>=
0
)
{
if
(
!
collator
&&
OUString
(
LOCAL_RULE_LANGS
).
indexOf
(
rLocale
.
Language
)
>=
0
)
{
const
sal_uInt8
*
(
*
func
)()
=
NULL
;
size_t
(
*
funclen
)()
=
NULL
;
...
...
i18npool/source/indexentry/indexentrysupplier.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -178,7 +178,7 @@ OUString SAL_CALL IndexEntrySupplier::getIndexFollowPageWord( sal_Bool bMorePage
OUString
SAL_CALL
IndexEntrySupplier
::
getImplementationName
()
throw
(
RuntimeException
,
std
::
exception
)
{
return
OUString
::
createFromAscii
(
implementationName
);
return
OUString
(
implementationName
);
}
sal_Bool
SAL_CALL
...
...
@@ -191,7 +191,7 @@ Sequence< OUString > SAL_CALL
IndexEntrySupplier
::
getSupportedServiceNames
()
throw
(
RuntimeException
,
std
::
exception
)
{
Sequence
<
OUString
>
aRet
(
1
);
aRet
[
0
]
=
OUString
::
createFromAscii
(
implementationName
)
;
aRet
[
0
]
=
implementationName
;
return
aRet
;
}
...
...
i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -68,13 +68,13 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable:
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
,
const
OUString
&
/*SortAlgorithm*/
,
sal_Int32
collatorOptions
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
collator
->
loadCollatorAlgorithm
(
OUString
::
createFromAscii
(
first
)
,
rLocale
,
collatorOptions
)
==
0
;
return
collator
->
loadCollatorAlgorithm
(
first
,
rLocale
,
collatorOptions
)
==
0
;
}
sal_Bool
SAL_CALL
IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant
::
loadAlgorithm
(
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
,
const
OUString
&
/*SortAlgorithm*/
,
sal_Int32
collatorOptions
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
collator
->
loadCollatorAlgorithm
(
OUString
::
createFromAscii
(
first
)
,
rLocale
,
collatorOptions
)
==
0
;
return
collator
->
loadCollatorAlgorithm
(
first
,
rLocale
,
collatorOptions
)
==
0
;
}
static
const
sal_Char
last
[]
=
"ja_phonetic (alphanumeric last)"
;
...
...
@@ -82,13 +82,13 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable::
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
,
const
OUString
&
/*SortAlgorithm*/
,
sal_Int32
collatorOptions
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
collator
->
loadCollatorAlgorithm
(
OUString
::
createFromAscii
(
last
)
,
rLocale
,
collatorOptions
)
==
0
;
return
collator
->
loadCollatorAlgorithm
(
last
,
rLocale
,
collatorOptions
)
==
0
;
}
sal_Bool
SAL_CALL
IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant
::
loadAlgorithm
(
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
,
const
OUString
&
/*SortAlgorithm*/
,
sal_Int32
collatorOptions
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
return
collator
->
loadCollatorAlgorithm
(
OUString
::
createFromAscii
(
last
)
,
rLocale
,
collatorOptions
)
==
0
;
return
collator
->
loadCollatorAlgorithm
(
last
,
rLocale
,
collatorOptions
)
==
0
;
}
}
}
}
}
...
...
i18npool/source/localedata/LocaleNode.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -770,7 +770,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
{
sal_Int32
nStart
;
if
(
sTheCompatibleCurrency
.
isEmpty
()
&&
((
nStart
=
n
->
getValue
().
indexOf
AsciiL
(
"[$"
,
2
))
>=
0
))
((
nStart
=
n
->
getValue
().
indexOf
(
"[$"
))
>=
0
))
{
OUString
aCode
(
n
->
getValue
());
sal_Int32
nHyphen
=
aCode
.
indexOf
(
'-'
,
nStart
);
...
...
@@ -1294,7 +1294,7 @@ void LCCollationNode::generateCode (const OFileWriter &of) const
for
(
j
=
0
;
j
<
getNumberOfChildren
();
j
++
)
{
LocaleNode
*
currNode
=
getChildAt
(
j
);
if
(
currNode
->
getName
()
.
equalsAscii
(
"Collator"
)
)
if
(
currNode
->
getName
()
==
"Collator"
)
{
OUString
str
;
str
=
currNode
->
getAttr
().
getValueByName
(
"unoid"
);
...
...
@@ -1307,7 +1307,7 @@ void LCCollationNode::generateCode (const OFileWriter &of) const
nbOfCollations
++
;
}
if
(
currNode
->
getName
()
.
equalsAscii
(
"CollationOptions"
)
)
if
(
currNode
->
getName
()
==
"CollationOptions"
)
{
LocaleNode
*
pCollationOptions
=
currNode
;
nbOfCollationOptions
=
sal
::
static_int_cast
<
sal_Int16
>
(
pCollationOptions
->
getNumberOfChildren
()
);
...
...
@@ -1408,7 +1408,7 @@ void LCIndexNode::generateCode (const OFileWriter &of) const
sal_Int16
i
;
for
(
i
=
0
;
i
<
getNumberOfChildren
();
i
++
)
{
LocaleNode
*
currNode
=
getChildAt
(
i
);
if
(
currNode
->
getName
()
.
equalsAscii
(
"IndexKey"
)
)
if
(
currNode
->
getName
()
==
"IndexKey"
)
{
OUString
str
;
str
=
currNode
->
getAttr
().
getValueByName
(
"unoid"
);
...
...
@@ -1425,13 +1425,13 @@ void LCIndexNode::generateCode (const OFileWriter &of) const
nbOfIndexs
++
;
}
if
(
currNode
->
getName
()
.
equalsAscii
(
"UnicodeScript"
)
)
if
(
currNode
->
getName
()
==
"UnicodeScript"
)
{
of
.
writeParameter
(
"unicodeScript"
,
currNode
->
getValue
(),
nbOfUnicodeScripts
);
nbOfUnicodeScripts
++
;
}
if
(
currNode
->
getName
()
.
equalsAscii
(
"FollowPageWord"
)
)
if
(
currNode
->
getName
()
==
"FollowPageWord"
)
{
of
.
writeParameter
(
"followPageWord"
,
currNode
->
getValue
(),
nbOfPageWords
);
nbOfPageWords
++
;
...
...
i18npool/source/nativenumber/nativenumbersupplier.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -503,15 +503,13 @@ static const sal_Int16 natnum2[] = {
};
static
const
sal_Int16
sizeof_natnum2
=
SAL_N_ELEMENTS
(
natnum2
);
#define isLang(lang) rLocale.Language.equalsAsciiL(lang, 2)
static
sal_Int16
SAL_CALL
getLanguageNumber
(
const
Locale
&
rLocale
)
{
// return zh_TW for TW, HK and MO, return zh_CN for other zh locales.
if
(
isLang
(
"zh"
)
)
return
MsLangId
::
isTraditionalChinese
(
rLocale
)
?
1
:
0
;
if
(
rLocale
.
Language
==
"zh"
)
return
MsLangId
::
isTraditionalChinese
(
rLocale
)
?
1
:
0
;
for
(
sal_Int16
i
=
2
;
i
<
nbOfLocale
;
i
++
)
if
(
isLang
(
natnum1Locales
[
i
]
))
if
(
rLocale
.
Language
.
equalsAsciiL
(
natnum1Locales
[
i
],
2
))
return
i
;
return
-
1
;
...
...
i18npool/source/ordinalsuffix/ordinalsuffix.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -137,7 +137,7 @@ const sal_Char cOrdinalSuffix[] = "com.sun.star.i18n.OrdinalSuffix";
OUString
SAL_CALL
OrdinalSuffixService
::
getImplementationName
(
void
)
throw
(
RuntimeException
,
std
::
exception
)
{
return
OUString
::
createFromAscii
(
cOrdinalSuffix
);
return
OUString
(
cOrdinalSuffix
);
}
sal_Bool
SAL_CALL
OrdinalSuffixService
::
supportsService
(
const
OUString
&
rServiceName
)
throw
(
RuntimeException
,
std
::
exception
)
...
...
@@ -148,7 +148,7 @@ sal_Bool SAL_CALL OrdinalSuffixService::supportsService( const OUString& rServic
Sequence
<
OUString
>
SAL_CALL
OrdinalSuffixService
::
getSupportedServiceNames
(
void
)
throw
(
RuntimeException
,
std
::
exception
)
{
Sequence
<
OUString
>
aRet
(
1
);
aRet
[
0
]
=
OUString
::
createFromAscii
(
cOrdinalSuffix
)
;
aRet
[
0
]
=
cOrdinalSuffix
;
return
aRet
;
}
...
...
i18npool/source/search/textsearch.cxx
Dosyayı görüntüle @
2c571050
...
...
@@ -1026,17 +1026,16 @@ SearchResult TextSearch::ApproxSrchBkwrd( const OUString& searchStr,
}
static
const
sal_Char
cSearchName
[]
=
"com.sun.star.util.TextSearch"
;
static
const
sal_Char
cSearchImpl
[]
=
"com.sun.star.util.TextSearch_i18n"
;
static
OUString
getServiceName_Static
()
{
return
OUString
::
createFromAscii
(
cSearchName
);
return
OUString
(
"com.sun.star.util.TextSearch"
);
}
static
OUString
getImplementationName_Static
()
{
return
OUString
::
createFromAscii
(
cSearchImpl
);
return
OUString
(
cSearchImpl
);
}
OUString
SAL_CALL
...
...
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