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
01433009
Kaydet (Commit)
01433009
authored
Ock 25, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert vectors to OString
üst
1f26095e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
lngmerge.hxx
l10ntools/inc/lngmerge.hxx
+1
-1
lngmerge.cxx
l10ntools/source/lngmerge.cxx
+9
-9
No files found.
l10ntools/inc/lngmerge.hxx
Dosyayı görüntüle @
01433009
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include "export.hxx"
#include "export.hxx"
#include <vector>
#include <vector>
typedef
::
std
::
vector
<
Byte
String
*
>
LngLineList
;
typedef
::
std
::
vector
<
rtl
::
O
String
*
>
LngLineList
;
#define LNG_OK 0x0000
#define LNG_OK 0x0000
#define LNG_FILE_NOTFOUND 0x0001
#define LNG_FILE_NOTFOUND 0x0001
...
...
l10ntools/source/lngmerge.cxx
Dosyayı görüntüle @
01433009
...
@@ -67,7 +67,7 @@ LngParser::LngParser(const rtl::OString &rLngFile, sal_Bool bUTF8,
...
@@ -67,7 +67,7 @@ LngParser::LngParser(const rtl::OString &rLngFile, sal_Bool bUTF8,
bFirstLine
=
false
;
bFirstLine
=
false
;
}
}
pLines
->
push_back
(
new
ByteString
(
sLine
)
);
pLines
->
push_back
(
new
rtl
::
OString
(
sLine
)
);
}
}
}
}
else
else
...
@@ -79,7 +79,7 @@ LngParser::LngParser(const rtl::OString &rLngFile, sal_Bool bUTF8,
...
@@ -79,7 +79,7 @@ LngParser::LngParser(const rtl::OString &rLngFile, sal_Bool bUTF8,
LngParser
::~
LngParser
()
LngParser
::~
LngParser
()
{
{
for
(
size_t
i
=
0
,
n
=
pLines
->
size
();
i
<
n
;
i
++
)
for
(
size_t
i
=
0
,
n
=
pLines
->
size
();
i
<
n
;
++
i
)
delete
(
*
pLines
)[
i
];
delete
(
*
pLines
)[
i
];
pLines
->
clear
();
pLines
->
clear
();
delete
pLines
;
delete
pLines
;
...
@@ -244,11 +244,11 @@ sal_Bool LngParser::Merge(
...
@@ -244,11 +244,11 @@ sal_Bool LngParser::Merge(
while
(
nPos
<
pLines
->
size
()
&&
!
bGroup
)
while
(
nPos
<
pLines
->
size
()
&&
!
bGroup
)
{
{
Byte
String
sLine
(
*
(
*
pLines
)[
nPos
]
);
rtl
::
O
String
sLine
(
*
(
*
pLines
)[
nPos
]
);
sLine
=
comphelper
::
string
::
stripStart
(
sLine
,
' '
);
sLine
=
comphelper
::
string
::
stripStart
(
sLine
,
' '
);
sLine
=
comphelper
::
string
::
stripEnd
(
sLine
,
' '
);
sLine
=
comphelper
::
string
::
stripEnd
(
sLine
,
' '
);
if
((
sLine
.
GetChar
(
0
)
==
'['
)
&&
if
((
sLine
[
0
]
==
'['
)
&&
(
sLine
.
GetChar
(
sLine
.
Len
()
-
1
)
==
']'
))
(
sLine
[
sLine
.
getLength
()
-
1
]
==
']'
))
{
{
sGroup
=
getToken
(
getToken
(
sLine
,
1
,
'['
),
0
,
']'
);
sGroup
=
getToken
(
getToken
(
sLine
,
1
,
'['
),
0
,
']'
);
sGroup
=
comphelper
::
string
::
stripStart
(
sGroup
,
' '
);
sGroup
=
comphelper
::
string
::
stripStart
(
sGroup
,
' '
);
...
@@ -280,7 +280,7 @@ sal_Bool LngParser::Merge(
...
@@ -280,7 +280,7 @@ sal_Bool LngParser::Merge(
pEntrys
->
GetText
(
sNewText
,
STRING_TYP_TEXT
,
sLang
,
sal_True
);
pEntrys
->
GetText
(
sNewText
,
STRING_TYP_TEXT
,
sLang
,
sal_True
);
if
(
sNewText
.
Len
())
{
if
(
sNewText
.
Len
())
{
Byte
String
*
pLine
=
(
*
pLines
)[
nPos
];
rtl
::
O
String
*
pLine
=
(
*
pLines
)[
nPos
];
ByteString
sText1
(
sLang
);
ByteString
sText1
(
sLang
);
sText1
+=
" =
\"
"
;
sText1
+=
" =
\"
"
;
...
@@ -329,9 +329,9 @@ sal_Bool LngParser::Merge(
...
@@ -329,9 +329,9 @@ sal_Bool LngParser::Merge(
if
(
nLastLangPos
<
pLines
->
size
()
)
{
if
(
nLastLangPos
<
pLines
->
size
()
)
{
LngLineList
::
iterator
it
=
pLines
->
begin
();
LngLineList
::
iterator
it
=
pLines
->
begin
();
::
std
::
advance
(
it
,
nLastLangPos
);
::
std
::
advance
(
it
,
nLastLangPos
);
pLines
->
insert
(
it
,
new
ByteString
(
sLine
)
);
pLines
->
insert
(
it
,
new
rtl
::
OString
(
sLine
)
);
}
else
{
}
else
{
pLines
->
push_back
(
new
ByteString
(
sLine
)
);
pLines
->
push_back
(
new
rtl
::
OString
(
sLine
)
);
}
}
}
}
}
}
...
@@ -341,7 +341,7 @@ sal_Bool LngParser::Merge(
...
@@ -341,7 +341,7 @@ sal_Bool LngParser::Merge(
delete
pResData
;
delete
pResData
;
}
}
for
(
size_t
i
=
0
;
i
<
pLines
->
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
pLines
->
size
();
++
i
)
aDestination
.
WriteLine
(
*
(
*
pLines
)[
i
]
);
aDestination
.
WriteLine
(
*
(
*
pLines
)[
i
]
);
aDestination
.
Close
();
aDestination
.
Close
();
...
...
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