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
07e15b1f
Kaydet (Commit)
07e15b1f
authored
Ara 29, 2012
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
po.cxx: use static and const to increase efficiency
Change-Id: I146808171df2240aaa7901978f94cb260a3def6e
üst
f9840740
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
po.cxx
l10ntools/source/po.cxx
+11
-8
No files found.
l10ntools/source/po.cxx
Dosyayı görüntüle @
07e15b1f
...
...
@@ -265,7 +265,8 @@ namespace
aCRC32
.
process_bytes
(
rGenerator
.
getStr
(),
rGenerator
.
getLength
());
sal_uInt32
nCRC
=
aCRC32
.
checksum
();
//Use all readable ASCII character exclude xml special tags: ",',&,<,>
const
OString
sSymbols
=
"!#$%()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[
\\
]^_`abcdefghijklmnopqrstuvwxyz{|}~"
;
static
const
OString
sSymbols
=
"!#$%()*+,-./0123456789:;=?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[
\\
]^_`abcdefghijklmnopqrstuvwxyz{|}~"
;
char
sKeyId
[
5
];
for
(
short
nKeyInd
=
0
;
nKeyInd
<
4
;
++
nKeyInd
)
{
...
...
@@ -312,12 +313,14 @@ namespace
{
UErrorCode
nIcuErr
=
U_ZERO_ERROR
;
sal_uInt32
nSearchFlags
=
UREGEX_DOTALL
|
UREGEX_CASE_INSENSITIVE
;
static
const
sal_uInt32
nSearchFlags
=
UREGEX_DOTALL
|
UREGEX_CASE_INSENSITIVE
;
OUString
sLocaleText
(
OStringToOUString
(
rText
,
RTL_TEXTENCODING_UTF8
)
);
OUString
sPattern
(
"<[/]\?\?[a-z_-]+?(?:| +[a-z]+?=
\"
.*?
\"
) *[/]\?\?>"
);
UnicodeString
sSearchPat
(
reinterpret_cast
<
const
UChar
*>
(
sPattern
.
getStr
()),
sPattern
.
getLength
()
);
static
const
OUString
sPattern
(
"<[/]\?\?[a-z_-]+?(?:| +[a-z]+?=
\"
.*?
\"
) *[/]\?\?>"
);
static
const
UnicodeString
sSearchPat
(
reinterpret_cast
<
const
UChar
*>
(
sPattern
.
getStr
()),
sPattern
.
getLength
()
);
UnicodeString
sSource
(
reinterpret_cast
<
const
UChar
*>
(
sLocaleText
.
getStr
()),
sLocaleText
.
getLength
()
);
...
...
@@ -344,11 +347,11 @@ namespace
static
OString
lcl_EscapeTags
(
const
OString
&
rText
)
{
typedef
std
::
vector
<
OString
>
StrVec_t
;
const
OString
vInitializer
[]
=
{
static
const
OString
vInitializer
[]
=
{
"ahelp"
,
"link"
,
"item"
,
"emph"
,
"defaultinline"
,
"switchinline"
,
"caseinline"
,
"variable"
,
"bookmark_value"
,
"image"
,
"embedvar"
,
"alt"
};
const
StrVec_t
vTagsForEscape
(
vInitializer
,
static
const
StrVec_t
vTagsForEscape
(
vInitializer
,
vInitializer
+
sizeof
(
vInitializer
)
/
sizeof
(
vInitializer
[
0
])
);
StrVec_t
vFoundTags
;
lcl_FindAllTag
(
rText
,
vFoundTags
);
...
...
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