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
901b6f58
Kaydet (Commit)
901b6f58
authored
Ock 25, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
b7da8304
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
37 additions
and
37 deletions
+37
-37
cfgmerge.hxx
l10ntools/inc/cfgmerge.hxx
+3
-3
export.hxx
l10ntools/inc/export.hxx
+8
-8
helpmerge.hxx
l10ntools/inc/helpmerge.hxx
+2
-2
lngmerge.hxx
l10ntools/inc/lngmerge.hxx
+1
-1
xmlparse.hxx
l10ntools/inc/xmlparse.hxx
+3
-3
xrmmerge.hxx
l10ntools/inc/xrmmerge.hxx
+4
-4
export2.cxx
l10ntools/source/export2.cxx
+5
-5
helpex.cxx
l10ntools/source/helpex.cxx
+1
-1
helpmerge.cxx
l10ntools/source/helpmerge.cxx
+8
-8
merge.cxx
l10ntools/source/merge.cxx
+2
-2
No files found.
l10ntools/inc/cfgmerge.hxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -127,7 +127,7 @@ protected:
private
:
int
ExecuteAnalyzedToken
(
int
nToken
,
char
*
pToken
);
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
void
AddText
(
ByteString
&
rText
,
const
ByteString
&
rIsoLang
,
...
...
@@ -164,7 +164,7 @@ class CfgExport : public CfgOutputParser
private
:
ByteString
sPrj
;
ByteString
sPath
;
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
protected
:
virtual
void
WorkOnText
(
ByteString
&
rText
,
...
...
@@ -190,7 +190,7 @@ class CfgMerge : public CfgOutputParser
{
private
:
MergeDataFile
*
pMergeDataFile
;
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
ResData
*
pResData
;
rtl
::
OString
sFilename
;
...
...
l10ntools/inc/export.hxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -325,10 +325,10 @@ public:
static
bool
skipProject
(
ByteString
sPrj
)
;
static
void
InitLanguages
(
bool
bMergeMode
=
false
);
static
void
InitForcedLanguages
(
bool
bMergeMode
=
false
);
static
std
::
vector
<
Byte
String
>
GetLanguages
();
static
std
::
vector
<
Byte
String
>
GetForcedLanguages
();
static
std
::
vector
<
rtl
::
O
String
>
GetLanguages
();
static
std
::
vector
<
rtl
::
O
String
>
GetForcedLanguages
();
static
void
SetLanguages
(
std
::
vector
<
Byte
String
>
val
);
static
void
SetLanguages
(
std
::
vector
<
rtl
::
O
String
>
val
);
static
void
RemoveUTF8ByteOrderMarker
(
rtl
::
OString
&
rString
);
static
bool
hasUTF8ByteOrderMarker
(
const
rtl
::
OString
&
rString
);
static
void
RemoveUTF8ByteOrderMarkerFromFile
(
const
ByteString
&
rFilename
);
...
...
@@ -343,7 +343,7 @@ public:
static
bool
isSourceLanguage
(
const
ByteString
&
sLanguage
);
static
bool
isAllowed
(
const
ByteString
&
sLanguage
);
static
void
Languages
(
std
::
vector
<
ByteString
>::
const_iterator
&
begin
,
std
::
vector
<
Byte
String
>::
const_iterator
&
end
);
static
void
Languages
(
std
::
vector
<
rtl
::
OString
>::
const_iterator
&
begin
,
std
::
vector
<
rtl
::
O
String
>::
const_iterator
&
end
);
static
void
getRandomName
(
const
ByteString
&
sPrefix
,
ByteString
&
sRandStr
,
const
ByteString
&
sPostfix
);
static
void
getCurrentDir
(
std
::
string
&
dir
);
...
...
@@ -358,8 +358,8 @@ public:
ByteStringHashMap
&
aMap
);
private
:
static
std
::
vector
<
Byte
String
>
aLanguages
;
static
std
::
vector
<
Byte
String
>
aForcedLanguages
;
static
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
static
std
::
vector
<
rtl
::
O
String
>
aForcedLanguages
;
sal_Bool
WriteData
(
ResData
*
pResData
,
sal_Bool
bCreateNew
=
sal_False
);
// called befor dest. cur ResData
sal_Bool
WriteExportList
(
ResData
*
pResData
,
ExportList
*
pExportList
,
...
...
@@ -493,7 +493,7 @@ class MergeDataFile
ByteString
sErrorLog
;
SvFileStream
aErrLog
;
MergeDataHashMap
aMap
;
std
::
set
<
Byte
String
>
aLanguageSet
;
std
::
set
<
rtl
::
O
String
>
aLanguageSet
;
MergeData
*
GetMergeData
(
ResData
*
pResData
,
bool
bCaseSensitve
=
false
);
void
InsertEntry
(
const
ByteString
&
rTYP
,
const
ByteString
&
rGID
,
const
ByteString
&
rLID
,
...
...
@@ -508,7 +508,7 @@ class MergeDataFile
~
MergeDataFile
();
std
::
vector
<
Byte
String
>
GetLanguages
();
std
::
vector
<
rtl
::
O
String
>
GetLanguages
();
PFormEntrys
*
GetPFormEntrys
(
ResData
*
pResData
);
PFormEntrys
*
GetPFormEntrysCaseSensitive
(
ResData
*
pResData
);
...
...
l10ntools/inc/helpmerge.hxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -60,14 +60,14 @@ public:
static
bool
CreateSDF
(
const
ByteString
&
rSDFFile_in
,
const
ByteString
&
rPrj_in
,
const
ByteString
&
rRoot_in
,
const
ByteString
&
sHelpFile
,
XMLFile
*
pXmlFile
,
const
ByteString
&
rGsi1
);
static
void
parse_languages
(
std
::
vector
<
Byte
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
);
static
void
parse_languages
(
std
::
vector
<
rtl
::
O
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
);
/// Method merges the String from the SDFfile into XMLfile. Both Strings must
/// point to existing files.
bool
Merge
(
const
ByteString
&
rSDFFile_in
,
const
ByteString
&
rDestinationFile_in
,
const
rtl
::
OString
&
sLanguage
,
MergeDataFile
&
aMergeDataFile
);
bool
Merge
(
const
ByteString
&
rSDFFile
,
const
ByteString
&
rPathX
,
const
ByteString
&
rPathY
,
bool
bISO
,
const
std
::
vector
<
Byte
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
,
bool
bCreateDir
);
,
const
std
::
vector
<
rtl
::
O
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
,
bool
bCreateDir
);
private
:
static
ByteString
makeAbsolutePath
(
const
ByteString
&
sHelpFile
,
const
ByteString
&
rRoot_in
);
...
...
l10ntools/inc/lngmerge.hxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -51,7 +51,7 @@ private:
sal_Bool
bDBIsUTF8
;
sal_Bool
bULF
;
bool
bQuiet
;
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
bool
isNextGroup
(
rtl
::
OString
&
sGroup_out
,
rtl
::
OString
&
sLine_in
);
void
ReadLine
(
const
rtl
::
OString
&
rLine_in
,
...
...
l10ntools/inc/xmlparse.hxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -211,7 +211,7 @@ public:
XMLFile
(
const
XMLFile
&
obj
)
;
~
XMLFile
();
ByteString
*
GetGroupID
(
std
::
deque
<
Byte
String
>
&
groupid
);
ByteString
*
GetGroupID
(
std
::
deque
<
rtl
::
O
String
>
&
groupid
);
void
Print
(
XMLNode
*
pCur
=
NULL
,
sal_uInt16
nLevel
=
0
);
virtual
void
SearchL10NElements
(
XMLParentNode
*
pCur
,
int
pos
=
0
);
void
Extract
(
XMLFile
*
pCur
=
NULL
);
...
...
@@ -230,7 +230,7 @@ public:
const
String
&
GetName
()
{
return
sFileName
;
}
void
SetName
(
const
String
&
rFilename
)
{
sFileName
=
rFilename
;
}
void
SetFullName
(
const
String
&
rFullFilename
)
{
sFullName
=
rFullFilename
;
}
const
std
::
vector
<
Byte
String
>
getOrder
(){
return
order
;
}
const
std
::
vector
<
rtl
::
O
String
>
getOrder
(){
return
order
;
}
protected
:
// writes a string as UTF8 with dos line ends to a given stream
...
...
@@ -250,7 +250,7 @@ protected:
TagMap
nodes_localize
;
XMLHashMap
*
XMLStrings
;
std
::
vector
<
Byte
String
>
order
;
std
::
vector
<
rtl
::
O
String
>
order
;
};
/// An Utility class for XML
...
...
l10ntools/inc/xrmmerge.hxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -47,7 +47,7 @@ private:
ByteString
sCurrentOpenTag
;
ByteString
sCurrentCloseTag
;
ByteString
sCurrentText
;
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
protected
:
ByteString
GetAttribute
(
const
ByteString
&
rToken
,
const
ByteString
&
rAttribute
);
...
...
@@ -90,7 +90,7 @@ public:
class
XRMResOutputParser
:
public
XRMResParser
{
private
:
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
protected
:
SvFileStream
*
pOutputStream
;
public
:
...
...
@@ -108,7 +108,7 @@ private:
ResData
*
pResData
;
ByteString
sPrj
;
ByteString
sPath
;
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
protected
:
void
WorkOnDesc
(
...
...
@@ -144,7 +144,7 @@ private:
MergeDataFile
*
pMergeDataFile
;
ByteString
sFilename
;
ResData
*
pResData
;
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
protected
:
void
WorkOnDesc
(
...
...
l10ntools/source/export2.cxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -124,23 +124,23 @@ ByteString Export::DumpMap(const rtl::OString& rMapName,
}
/*****************************************************************************/
void
Export
::
SetLanguages
(
std
::
vector
<
Byte
String
>
val
){
void
Export
::
SetLanguages
(
std
::
vector
<
rtl
::
O
String
>
val
){
/*****************************************************************************/
aLanguages
=
val
;
isInitialized
=
true
;
}
/*****************************************************************************/
std
::
vector
<
Byte
String
>
Export
::
GetLanguages
(){
std
::
vector
<
rtl
::
O
String
>
Export
::
GetLanguages
(){
/*****************************************************************************/
return
aLanguages
;
}
/*****************************************************************************/
std
::
vector
<
Byte
String
>
Export
::
GetForcedLanguages
(){
std
::
vector
<
rtl
::
O
String
>
Export
::
GetForcedLanguages
(){
/*****************************************************************************/
return
aForcedLanguages
;
}
std
::
vector
<
ByteString
>
Export
::
aLanguages
=
std
::
vector
<
Byte
String
>
();
std
::
vector
<
ByteString
>
Export
::
aForcedLanguages
=
std
::
vector
<
Byte
String
>
();
std
::
vector
<
rtl
::
OString
>
Export
::
aLanguages
=
std
::
vector
<
rtl
::
O
String
>
();
std
::
vector
<
rtl
::
OString
>
Export
::
aForcedLanguages
=
std
::
vector
<
rtl
::
O
String
>
();
/*****************************************************************************/
void
Export
::
QuotHTML
(
ByteString
&
rString
)
...
...
l10ntools/source/helpex.cxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -237,7 +237,7 @@ int _cdecl main( int argc, char *argv[] )
rtl
::
OString
sHelpFile
;
// dummy
MergeDataFile
aMergeDataFile
(
sSDFFile
,
sHelpFile
,
sal_False
);
std
::
vector
<
Byte
String
>
aLanguages
;
std
::
vector
<
rtl
::
O
String
>
aLanguages
;
HelpParser
::
parse_languages
(
aLanguages
,
aMergeDataFile
);
bool
bCreateDir
=
true
;
...
...
l10ntools/source/helpmerge.cxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -156,10 +156,10 @@ bool HelpParser::CreateSDF(
const
OUString
sOUGsi1
(
rGsi1
.
GetBuffer
()
,
rGsi1
.
Len
()
,
RTL_TEXTENCODING_ASCII_US
);
Export
::
InitLanguages
(
false
);
std
::
vector
<
Byte
String
>
aLanguages
=
Export
::
GetLanguages
();
std
::
vector
<
rtl
::
O
String
>
aLanguages
=
Export
::
GetLanguages
();
std
::
vector
<
Byte
String
>
order
=
file
->
getOrder
();
std
::
vector
<
Byte
String
>::
iterator
pos
;
std
::
vector
<
rtl
::
O
String
>
order
=
file
->
getOrder
();
std
::
vector
<
rtl
::
O
String
>::
iterator
pos
;
XMLHashMap
::
iterator
posm
;
for
(
pos
=
order
.
begin
();
pos
!=
order
.
end
()
;
++
pos
)
...
...
@@ -276,8 +276,8 @@ bool ByteStringLess( const ByteString& rKey1, const ByteString& rKey2 ) {
return
rKey1
.
CompareTo
(
rKey2
)
==
COMPARE_LESS
;
}
void
HelpParser
::
parse_languages
(
std
::
vector
<
Byte
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
){
std
::
vector
<
Byte
String
>
aTmp
;
void
HelpParser
::
parse_languages
(
std
::
vector
<
rtl
::
O
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
){
std
::
vector
<
rtl
::
O
String
>
aTmp
;
const
ByteString
ENUS
(
"en-US"
);
...
...
@@ -290,13 +290,13 @@ void HelpParser::parse_languages( std::vector<ByteString>& aLanguages , MergeDat
if
(
!
Export
::
sForcedLanguages
.
isEmpty
()
)
{
std
::
vector
<
Byte
String
>
aFL
=
Export
::
GetForcedLanguages
();
std
::
vector
<
rtl
::
O
String
>
aFL
=
Export
::
GetForcedLanguages
();
std
::
copy
(
aFL
.
begin
()
,
aFL
.
end
()
,
back_inserter
(
aLanguages
)
);
std
::
sort
(
aLanguages
.
begin
()
,
aLanguages
.
end
()
,
ByteStringLess
);
std
::
vector
<
Byte
String
>::
iterator
unique_iter
=
std
::
unique
(
aLanguages
.
begin
()
,
aLanguages
.
end
()
,
ByteStringEqual
);
std
::
vector
<
rtl
::
O
String
>::
iterator
unique_iter
=
std
::
unique
(
aLanguages
.
begin
()
,
aLanguages
.
end
()
,
ByteStringEqual
);
std
::
copy
(
aLanguages
.
begin
()
,
unique_iter
,
back_inserter
(
aTmp
)
);
aLanguages
=
aTmp
;
}
...
...
@@ -309,7 +309,7 @@ void HelpParser::parse_languages( std::vector<ByteString>& aLanguages , MergeDat
bool
HelpParser
::
Merge
(
const
ByteString
&
rSDFFile
,
const
ByteString
&
rPathX
,
const
ByteString
&
rPathY
,
bool
bISO
,
const
std
::
vector
<
Byte
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
,
bool
bCreateDir
)
const
std
::
vector
<
rtl
::
O
String
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
,
bool
bCreateDir
)
{
...
...
l10ntools/source/merge.cxx
Dosyayı görüntüle @
901b6f58
...
...
@@ -257,8 +257,8 @@ ByteString MergeDataFile::Dump(){
return
sRet
;
}
std
::
vector
<
Byte
String
>
MergeDataFile
::
GetLanguages
(){
return
std
::
vector
<
Byte
String
>
(
aLanguageSet
.
begin
(),
aLanguageSet
.
end
());
std
::
vector
<
rtl
::
O
String
>
MergeDataFile
::
GetLanguages
(){
return
std
::
vector
<
rtl
::
O
String
>
(
aLanguageSet
.
begin
(),
aLanguageSet
.
end
());
}
MergeData
*
MergeDataFile
::
GetMergeData
(
ResData
*
pResData
,
bool
bCaseSensitive
)
...
...
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