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
82b27577
Kaydet (Commit)
82b27577
authored
Agu 30, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: adapt to improved OUStringLiteral1 (i18npool)
Change-Id: If4bc7dd5af49cca85f474e817cc3cc358c2b48c2
üst
1a212efd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
test_breakiterator.cxx
i18npool/qa/cppunit/test_breakiterator.cxx
+4
-4
defaultnumberingprovider.cxx
...rce/defaultnumberingprovider/defaultnumberingprovider.cxx
+6
-6
indexentrysupplier_default.cxx
i18npool/source/indexentry/indexentrysupplier_default.cxx
+2
-2
No files found.
i18npool/qa/cppunit/test_breakiterator.cxx
Dosyayı görüntüle @
82b27577
...
...
@@ -267,7 +267,7 @@ void TestBreakIterator::testWordBoundaries()
if
(
aBreakTests
[
i
]
==
0x200B
)
continue
;
#endif
OUString
aTest
=
"Word"
+
OUString
(
aBreakTests
[
i
])
+
"Word"
;
OUString
aTest
=
"Word"
+
OUString
Literal1
(
aBreakTests
[
i
])
+
"Word"
;
aBounds
=
m_xBreak
->
getWordBoundary
(
aTest
,
0
,
aLocale
,
mode
,
true
);
switch
(
mode
)
{
...
...
@@ -296,7 +296,7 @@ void TestBreakIterator::testWordBoundaries()
//make sure that in all cases isBeginWord and isEndWord matches getWordBoundary
for
(
size_t
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aJoinTests
);
++
i
)
{
OUString
aTest
=
"Word"
+
OUString
(
aJoinTests
[
i
])
+
"Word"
;
OUString
aTest
=
"Word"
+
OUString
Literal1
(
aJoinTests
[
i
])
+
"Word"
;
aBounds
=
m_xBreak
->
getWordBoundary
(
aTest
,
0
,
aLocale
,
mode
,
true
);
switch
(
mode
)
{
...
...
@@ -355,7 +355,7 @@ void TestBreakIterator::testWordBoundaries()
const
sal_Int32
aSinglePositions
[]
=
{
0
,
1
,
3
,
4
,
6
,
7
,
9
,
10
};
for
(
size_t
j
=
1
;
j
<
SAL_N_ELEMENTS
(
aTests
);
++
j
)
{
OUString
aTest
=
aBase
.
replaceAll
(
"xx"
,
OUString
(
aTests
[
j
]));
OUString
aTest
=
aBase
.
replaceAll
(
"xx"
,
OUString
Literal1
(
aTests
[
j
]));
sal_Int32
nPos
=
-
1
;
size_t
i
=
0
;
do
...
...
@@ -378,7 +378,7 @@ void TestBreakIterator::testWordBoundaries()
const
sal_Int32
aSingleQuotePositions
[]
=
{
0
,
1
,
9
,
10
};
CPPUNIT_ASSERT
(
aTests
[
0
]
==
'\''
);
{
OUString
aTest
=
aBase
.
replaceAll
(
"xx"
,
OUString
(
aTests
[
0
]));
OUString
aTest
=
aBase
.
replaceAll
(
"xx"
,
OUString
Literal1
(
aTests
[
0
]));
sal_Int32
nPos
=
-
1
;
size_t
i
=
0
;
do
...
...
i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
Dosyayı görüntüle @
82b27577
...
...
@@ -343,7 +343,7 @@ void lcl_formatChars( const sal_Unicode table[], int tableSize, int n, OUString&
if
(
n
>=
tableSize
)
lcl_formatChars
(
table
,
tableSize
,
(
n
-
tableSize
)
/
tableSize
,
s
);
s
+=
OUString
(
table
[
n
%
tableSize
]
);
s
+=
OUString
Literal1
(
table
[
n
%
tableSize
]
);
}
static
...
...
@@ -356,7 +356,7 @@ void lcl_formatChars1( const sal_Unicode table[], int tableSize, int n, OUString
int
repeat_count
=
n
/
tableSize
+
1
;
for
(
int
i
=
0
;
i
<
repeat_count
;
i
++
)
s
+=
OUString
(
table
[
n
%
tableSize
]
);
s
+=
OUString
Literal1
(
table
[
n
%
tableSize
]
);
}
static
...
...
@@ -368,9 +368,9 @@ void lcl_formatChars2( const sal_Unicode table_capital[], const sal_Unicode tabl
if
(
n
>=
tableSize
)
{
lcl_formatChars2
(
table_capital
,
table_small
,
tableSize
,
(
n
-
tableSize
)
/
tableSize
,
s
);
s
+=
OUString
(
table_small
[
n
%
tableSize
]
);
s
+=
OUString
Literal1
(
table_small
[
n
%
tableSize
]
);
}
else
s
+=
OUString
(
table_capital
[
n
%
tableSize
]
);
s
+=
OUString
Literal1
(
table_capital
[
n
%
tableSize
]
);
}
static
...
...
@@ -380,10 +380,10 @@ void lcl_formatChars3( const sal_Unicode table_capital[], const sal_Unicode tabl
// if A=='A' then 0=>A, 1=>B, ..., 25=>Z, 26=>Aa, 27=>Bb, ...
int
repeat_count
=
n
/
tableSize
+
1
;
s
+=
OUString
(
table_capital
[
n
%
tableSize
]
);
s
+=
OUString
Literal1
(
table_capital
[
n
%
tableSize
]
);
for
(
int
i
=
1
;
i
<
repeat_count
;
i
++
)
s
+=
OUString
(
table_small
[
n
%
tableSize
]
);
s
+=
OUString
Literal1
(
table_small
[
n
%
tableSize
]
);
}
...
...
i18npool/source/indexentry/indexentrysupplier_default.cxx
Dosyayı görüntüle @
82b27577
...
...
@@ -205,10 +205,10 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
continue
;
}
else
if
(
keyStr
[
i
]
==
'_'
)
{
for
(
curr
=
keyStr
[
i
-
1
]
+
1
;
curr
<=
keyStr
[
i
+
1
];
curr
++
)
skipping_chars
+=
OUString
(
curr
);
skipping_chars
+=
OUString
Literal1
(
curr
);
i
+=
2
;
}
else
{
skipping_chars
+=
OUString
(
keyStr
[
i
]);
skipping_chars
+=
OUString
Literal1
(
keyStr
[
i
]);
}
}
break
;
...
...
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