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
1f26095e
Kaydet (Commit)
1f26095e
authored
Ock 25, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert maps and sets to OString
üst
901b6f58
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
58 deletions
+13
-58
export.hxx
l10ntools/inc/export.hxx
+6
-31
tagtest.hxx
l10ntools/inc/tagtest.hxx
+1
-19
xmlparse.hxx
l10ntools/inc/xmlparse.hxx
+4
-6
merge.cxx
l10ntools/source/merge.cxx
+2
-2
No files found.
l10ntools/inc/export.hxx
Dosyayı görüntüle @
1f26095e
...
@@ -56,45 +56,20 @@
...
@@ -56,45 +56,20 @@
#define NO_TRANSLATE_ISO "x-no-translate"
#define NO_TRANSLATE_ISO "x-no-translate"
#define JAPANESE_ISO "ja"
struct
eqstr
{
sal_Bool
operator
()(
const
char
*
s1
,
const
char
*
s2
)
const
{
return
strcmp
(
s1
,
s2
)
==
0
;
}
};
struct
equalByteString
{
bool
operator
()(
const
ByteString
&
rKey1
,
const
ByteString
&
rKey2
)
const
{
return
rKey1
.
CompareTo
(
rKey2
)
==
COMPARE_EQUAL
;
}
};
struct
lessByteString
{
bool
operator
()(
const
ByteString
&
rKey1
,
const
ByteString
&
rKey2
)
const
{
return
rKey1
.
CompareTo
(
rKey2
)
==
COMPARE_LESS
;
}
};
struct
hashByteString
{
size_t
operator
()(
const
ByteString
&
rName
)
const
{
return
rtl_str_hashCode_WithLength
(
rName
.
GetBuffer
(),
rName
.
Len
()
);
}
};
class
PFormEntrys
;
class
PFormEntrys
;
class
MergeData
;
class
MergeData
;
typedef
std
::
set
<
ByteString
,
lessByteString
>
ByteStringSet
;
typedef
std
::
set
<
rtl
::
OString
>
ByteStringSet
;
typedef
boost
::
unordered_map
<
rtl
::
OString
,
rtl
::
OString
,
rtl
::
OStringHash
>
ByteStringHashMap
;
typedef
boost
::
unordered_map
<
rtl
::
OString
,
rtl
::
OString
,
rtl
::
OStringHash
>
ByteStringHashMap
;
typedef
boost
::
unordered_map
<
ByteString
,
bool
,
hashByteString
,
equalByteString
>
typedef
boost
::
unordered_map
<
rtl
::
OString
,
bool
,
rtl
::
OStringHash
>
ByteStringBoolHashMap
;
ByteStringBoolHashMap
;
typedef
boost
::
unordered_map
<
ByteString
,
PFormEntrys
*
,
hashByteString
,
equalByteString
>
typedef
boost
::
unordered_map
<
rtl
::
OString
,
PFormEntrys
*
,
rtl
::
OStringHash
>
PFormEntrysHashMap
;
PFormEntrysHashMap
;
typedef
boost
::
unordered_map
<
ByteString
,
MergeData
*
,
hashByteString
,
equalByteString
>
typedef
boost
::
unordered_map
<
rtl
::
OString
,
MergeData
*
,
rtl
::
OStringHash
>
MergeDataHashMap
;
MergeDataHashMap
;
#define SOURCE_LANGUAGE ByteString("en-US")
#define SOURCE_LANGUAGE ByteString("en-US")
...
...
l10ntools/inc/tagtest.hxx
Dosyayı görüntüle @
1f26095e
...
@@ -44,25 +44,7 @@ typedef ::std::vector< ParserMessage* > Impl_ParserMessageList;
...
@@ -44,25 +44,7 @@ typedef ::std::vector< ParserMessage* > Impl_ParserMessageList;
class
ParserMessageList
;
class
ParserMessageList
;
struct
equalByteString
{
typedef
boost
::
unordered_map
<
rtl
::
OString
,
String
,
rtl
::
OStringHash
>
StringHashMap
;
bool
operator
()(
const
ByteString
&
rKey1
,
const
ByteString
&
rKey2
)
const
{
return
rKey1
.
CompareTo
(
rKey2
)
==
COMPARE_EQUAL
;
}
};
struct
lessByteString
{
bool
operator
()(
const
ByteString
&
rKey1
,
const
ByteString
&
rKey2
)
const
{
return
rKey1
.
CompareTo
(
rKey2
)
==
COMPARE_LESS
;
}
};
struct
hashByteString
{
size_t
operator
()(
const
ByteString
&
rName
)
const
{
return
rtl_str_hashCode
(
rName
.
GetBuffer
());
}
};
typedef
boost
::
unordered_map
<
ByteString
,
String
,
hashByteString
,
equalByteString
>
StringHashMap
;
class
TokenInfo
class
TokenInfo
{
{
...
...
l10ntools/inc/xmlparse.hxx
Dosyayı görüntüle @
1f26095e
...
@@ -185,18 +185,16 @@ public:
...
@@ -185,18 +185,16 @@ public:
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
/// Mapping numeric Language code <-> XML Element
/// Mapping numeric Language code <-> XML Element
typedef
boost
::
unordered_map
<
ByteString
,
XMLElement
*
,
hashByteString
,
equalByteString
>
LangHashMap
;
typedef
boost
::
unordered_map
<
rtl
::
OString
,
XMLElement
*
,
rtl
::
OStringHash
>
LangHashMap
;
/// Mapping XML Element string identifier <-> Language Map
/// Mapping XML Element string identifier <-> Language Map
typedef
boost
::
unordered_map
<
ByteString
,
LangHashMap
*
,
typedef
boost
::
unordered_map
<
rtl
::
OString
,
LangHashMap
*
,
rtl
::
OStringHash
>
XMLHashMap
;
hashByteString
,
equalByteString
>
XMLHashMap
;
/// Mapping iso alpha string code <-> iso numeric code
/// Mapping iso alpha string code <-> iso numeric code
typedef
boost
::
unordered_map
<
ByteString
,
int
,
hashByteString
,
equalByteString
>
HashMap
;
typedef
boost
::
unordered_map
<
rtl
::
OString
,
int
,
rtl
::
OStringHash
>
HashMap
;
/// Mapping XML tag names <-> have localizable strings
/// Mapping XML tag names <-> have localizable strings
typedef
boost
::
unordered_map
<
ByteString
,
sal_Bool
,
typedef
boost
::
unordered_map
<
rtl
::
OString
,
sal_Bool
,
rtl
::
OStringHash
>
TagMap
;
hashByteString
,
equalByteString
>
TagMap
;
/** Holds information of a XML file, is root node of tree
/** Holds information of a XML file, is root node of tree
*/
*/
...
...
l10ntools/source/merge.cxx
Dosyayı görüntüle @
1f26095e
...
@@ -142,7 +142,7 @@ ByteString MergeData::Dump(){
...
@@ -142,7 +142,7 @@ ByteString MergeData::Dump(){
PFormEntrysHashMap
::
const_iterator
idbg
;
PFormEntrysHashMap
::
const_iterator
idbg
;
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
{
{
printf
(
"aMap[ %s ] = "
,
idbg
->
first
.
GetBuffe
r
());
printf
(
"aMap[ %s ] = "
,
idbg
->
first
.
getSt
r
());
(
(
PFormEntrys
*
)(
idbg
->
second
)
)
->
Dump
();
(
(
PFormEntrys
*
)(
idbg
->
second
)
)
->
Dump
();
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
...
@@ -249,7 +249,7 @@ ByteString MergeDataFile::Dump(){
...
@@ -249,7 +249,7 @@ ByteString MergeDataFile::Dump(){
MergeDataHashMap
::
const_iterator
idbg
;
MergeDataHashMap
::
const_iterator
idbg
;
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
{
{
printf
(
"aMap[ %s ] = "
,
idbg
->
first
.
GetBuffe
r
());
printf
(
"aMap[ %s ] = "
,
idbg
->
first
.
getSt
r
());
idbg
->
second
->
Dump
();
idbg
->
second
->
Dump
();
printf
(
"
\n
"
);
printf
(
"
\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