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
a7455a4a
Kaydet (Commit)
a7455a4a
authored
Kas 05, 2012
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svl: convert ImplEnglishColors to OUString
Change-Id: I5ec8f1061aa41ac0c4bb46d9159be439892706a1
üst
566adca8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
20 deletions
+25
-20
zforscan.cxx
svl/source/numbers/zforscan.cxx
+25
-20
No files found.
svl/source/numbers/zforscan.cxx
Dosyayı görüntüle @
a7455a4a
...
...
@@ -43,27 +43,27 @@ namespace
{
struct
ImplEnglishColors
{
const
String
*
operator
()()
const
OU
String
*
operator
()()
{
static
const
String
aEnglishColors
[
NF_MAX_DEFAULT_COLORS
]
=
static
const
OU
String
aEnglishColors
[
NF_MAX_DEFAULT_COLORS
]
=
{
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"BLACK"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"BLUE"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"GREEN"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"CYAN"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"RED"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"MAGENTA"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"BROWN"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"GREY"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"YELLOW"
)
),
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"WHITE"
)
)
OUString
(
"BLACK"
),
OUString
(
"BLUE"
),
OUString
(
"GREEN"
),
OUString
(
"CYAN"
),
OUString
(
"RED"
),
OUString
(
"MAGENTA"
),
OUString
(
"BROWN"
),
OUString
(
"GREY"
),
OUString
(
"YELLOW"
),
OUString
(
"WHITE"
)
};
return
&
aEnglishColors
[
0
];
}
};
struct
theEnglishColors
:
public
rtl
::
StaticAggregate
<
const
String
,
ImplEnglishColors
>
{};
:
public
rtl
::
StaticAggregate
<
const
OU
String
,
ImplEnglishColors
>
{};
}
...
...
@@ -455,27 +455,32 @@ void ImpSvNumberformatScan::ChangeStandardPrec(sal_uInt16 nPrec)
Color
*
ImpSvNumberformatScan
::
GetColor
(
String
&
sStr
)
{
String
sString
=
pFormatter
->
GetCharClass
()
->
uppercase
(
sStr
);
OUString
aString
(
sString
);
const
NfKeywordTable
&
rKeyword
=
GetKeywords
();
size_t
i
=
0
;
while
(
i
<
NF_MAX_DEFAULT_COLORS
&&
sString
!=
rKeyword
[
NF_KEY_FIRSTCOLOR
+
i
]
)
while
(
i
<
NF_MAX_DEFAULT_COLORS
&&
sString
!=
rKeyword
[
NF_KEY_FIRSTCOLOR
+
i
]
)
{
i
++
;
}
if
(
i
>=
NF_MAX_DEFAULT_COLORS
)
{
const
String
*
pEnglishColors
=
theEnglishColors
::
get
();
const
OU
String
*
pEnglishColors
=
theEnglishColors
::
get
();
size_t
j
=
0
;
while
(
j
<
NF_MAX_DEFAULT_COLORS
&&
sString
!=
pEnglishColors
[
j
]
)
while
(
j
<
NF_MAX_DEFAULT_COLORS
&&
aString
!=
pEnglishColors
[
j
]
)
{
++
j
;
}
if
(
j
<
NF_MAX_DEFAULT_COLORS
)
{
i
=
j
;
}
}
Color
*
pResult
=
NULL
;
if
(
i
>=
NF_MAX_DEFAULT_COLORS
)
{
const
String
&
rColorWord
=
rKeyword
[
NF_KEY_COLOR
]
;
xub_StrLen
nPos
=
sString
.
Matc
h
(
rColorWord
);
const
OUString
&
rColorWord
=
OUString
(
rKeyword
[
NF_KEY_COLOR
])
;
sal_Int32
nPos
=
aString
.
startsWit
h
(
rColorWord
);
if
(
nPos
>
0
)
{
sStr
.
Erase
(
0
,
nPos
);
...
...
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