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
f899ce3d
Kaydet (Commit)
f899ce3d
authored
Haz 26, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ICU's RuleBasedCollator::cloneRuleData is deprecated
Change-Id: Ifc4a74bca5cfe58e420824a8dd85e8c246bbfac3
üst
0ac652bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
gencoll_rule.cxx
i18npool/source/collator/gencoll_rule.cxx
+11
-10
No files found.
i18npool/source/collator/gencoll_rule.cxx
Dosyayı görüntüle @
f899ce3d
...
...
@@ -17,7 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include <vector>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
...
...
@@ -28,8 +30,6 @@
#include <unicode/tblcoll.h>
U_CAPI
void
U_EXPORT2
uprv_free
(
void
*
mem
);
using
namespace
::
rtl
;
/* Main Procedure */
...
...
@@ -117,17 +117,18 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
RuleBasedCollator
*
coll
=
new
RuleBasedCollator
(
reinterpret_cast
<
const
UChar
*>
(
Obuf
.
getStr
()),
status
);
// UChar != sal_Unicode in MinGW
if
(
U_SUCCESS
(
status
))
{
int32_t
len
=
0
;
uint8_t
*
data
=
coll
->
cloneRuleData
(
len
,
status
);
if
(
U_SUCCESS
(
status
)
&&
data
!=
NULL
)
data_write
(
argv
[
2
],
argv
[
3
],
data
,
len
);
std
::
vector
<
uint8_t
>
data
;
int32_t
len
=
coll
->
cloneBinary
(
0
,
0
,
status
);
if
(
status
==
U_BUFFER_OVERFLOW_ERROR
)
{
data
.
resize
(
len
);
status
=
U_ZERO_ERROR
;
len
=
coll
->
cloneBinary
(
data
.
empty
()
?
0
:
&
data
[
0
],
len
,
status
);
}
if
(
U_SUCCESS
(
status
))
data_write
(
argv
[
2
],
argv
[
3
],
data
.
empty
()
?
0
:
&
data
[
0
],
len
);
else
{
printf
(
"Could not get rule data from collator
\n
"
);
}
if
(
data
)
uprv_free
(
data
);
}
else
{
printf
(
"
\n
Rule parsering error
\n
"
);
}
...
...
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