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
7045e4e1
Kaydet (Commit)
7045e4e1
authored
Ock 27, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
5a0fd87d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
63 deletions
+70
-63
export.hxx
l10ntools/inc/export.hxx
+19
-19
gsicheck.hxx
l10ntools/inc/gsicheck.hxx
+1
-1
tagtest.hxx
l10ntools/inc/tagtest.hxx
+19
-19
export.cxx
l10ntools/source/export.cxx
+14
-12
gsicheck.cxx
l10ntools/source/gsicheck.cxx
+3
-5
helpmerge.cxx
l10ntools/source/helpmerge.cxx
+7
-1
merge.cxx
l10ntools/source/merge.cxx
+7
-6
tagtest.cxx
l10ntools/source/tagtest.cxx
+0
-0
No files found.
l10ntools/inc/export.hxx
Dosyayı görüntüle @
7045e4e1
...
@@ -72,7 +72,7 @@ typedef boost::unordered_map<rtl::OString, PFormEntrys*, rtl::OStringHash>
...
@@ -72,7 +72,7 @@ typedef boost::unordered_map<rtl::OString, PFormEntrys*, rtl::OStringHash>
typedef
boost
::
unordered_map
<
rtl
::
OString
,
MergeData
*
,
rtl
::
OStringHash
>
typedef
boost
::
unordered_map
<
rtl
::
OString
,
MergeData
*
,
rtl
::
OStringHash
>
MergeDataHashMap
;
MergeDataHashMap
;
#define SOURCE_LANGUAGE
ByteString("en-US"
)
#define SOURCE_LANGUAGE
rtl::OString(RTL_CONSTASCII_STRINGPARAM("en-US")
)
#define LIST_REFID "LIST_REFID"
#define LIST_REFID "LIST_REFID"
typedef
ByteStringHashMap
ExportListEntry
;
typedef
ByteStringHashMap
ExportListEntry
;
...
@@ -139,11 +139,11 @@ public:
...
@@ -139,11 +139,11 @@ public:
sal_Bool
bRestMerged
;
sal_Bool
bRestMerged
;
Byte
String
sResTyp
;
rtl
::
O
String
sResTyp
;
Byte
String
sId
;
rtl
::
O
String
sId
;
Byte
String
sGId
;
rtl
::
O
String
sGId
;
Byte
String
sHelpId
;
rtl
::
O
String
sHelpId
;
Byte
String
sFilename
;
rtl
::
O
String
sFilename
;
ByteStringHashMap
sText
;
ByteStringHashMap
sText
;
sal_uInt16
nTextRefId
;
sal_uInt16
nTextRefId
;
...
@@ -157,7 +157,7 @@ public:
...
@@ -157,7 +157,7 @@ public:
ByteStringHashMap
sTitle
;
ByteStringHashMap
sTitle
;
sal_uInt16
nTitleRefId
;
sal_uInt16
nTitleRefId
;
Byte
String
sTextTyp
;
rtl
::
O
String
sTextTyp
;
ExportList
*
pStringList
;
ExportList
*
pStringList
;
ExportList
*
pUIEntries
;
ExportList
*
pUIEntries
;
...
@@ -165,11 +165,11 @@ public:
...
@@ -165,11 +165,11 @@ public:
ExportList
*
pFilterList
;
ExportList
*
pFilterList
;
ExportList
*
pPairedList
;
ExportList
*
pPairedList
;
Byte
String
sPForm
;
rtl
::
O
String
sPForm
;
void
Dump
();
void
Dump
();
ResData
(
const
ByteString
&
rPF
,
const
ByteString
&
rGId
)
ResData
(
const
rtl
::
OString
&
rPF
,
const
rtl
::
OString
&
rGId
)
:
:
nWidth
(
0
),
nWidth
(
0
),
nChildIndex
(
0
),
nChildIndex
(
0
),
...
@@ -197,9 +197,9 @@ public:
...
@@ -197,9 +197,9 @@ public:
{
{
sGId
=
comphelper
::
string
::
remove
(
sGId
,
'\r'
);
sGId
=
comphelper
::
string
::
remove
(
sGId
,
'\r'
);
sPForm
=
comphelper
::
string
::
remove
(
sPForm
,
'\r'
);
sPForm
=
comphelper
::
string
::
remove
(
sPForm
,
'\r'
);
}
;
}
ResData
(
const
ByteString
&
rPF
,
const
ByteString
&
rGId
,
const
ByteString
&
rFilename
)
ResData
(
const
rtl
::
OString
&
rPF
,
const
rtl
::
OString
&
rGId
,
const
rtl
::
OString
&
rFilename
)
:
:
nChildIndex
(
0
),
nChildIndex
(
0
),
nIdLevel
(
ID_LEVEL_NULL
),
nIdLevel
(
ID_LEVEL_NULL
),
...
@@ -227,7 +227,7 @@ public:
...
@@ -227,7 +227,7 @@ public:
{
{
sGId
=
comphelper
::
string
::
remove
(
sGId
,
'\r'
);
sGId
=
comphelper
::
string
::
remove
(
sGId
,
'\r'
);
sPForm
=
comphelper
::
string
::
remove
(
sPForm
,
'\r'
);
sPForm
=
comphelper
::
string
::
remove
(
sPForm
,
'\r'
);
}
;
}
};
};
...
@@ -435,21 +435,21 @@ class MergeData
...
@@ -435,21 +435,21 @@ class MergeData
{
{
friend
class
MergeDataFile
;
friend
class
MergeDataFile
;
private
:
private
:
Byte
String
sTyp
;
rtl
::
O
String
sTyp
;
Byte
String
sGID
;
rtl
::
O
String
sGID
;
Byte
String
sLID
;
rtl
::
O
String
sLID
;
Byte
String
sFilename
;
rtl
::
O
String
sFilename
;
PFormEntrysHashMap
aMap
;
PFormEntrysHashMap
aMap
;
public
:
public
:
MergeData
(
const
ByteString
&
rTyp
,
const
ByteString
&
rGID
,
const
ByteString
&
rLID
,
const
Byte
String
&
rFilename
)
MergeData
(
const
rtl
::
OString
&
rTyp
,
const
rtl
::
OString
&
rGID
,
const
rtl
::
OString
&
rLID
,
const
rtl
::
O
String
&
rFilename
)
:
sTyp
(
rTyp
),
sGID
(
rGID
),
sLID
(
rLID
)
,
sFilename
(
rFilename
)
{};
:
sTyp
(
rTyp
),
sGID
(
rGID
),
sLID
(
rLID
)
,
sFilename
(
rFilename
)
{};
~
MergeData
();
~
MergeData
();
PFormEntrys
*
GetPFormEntries
();
PFormEntrys
*
GetPFormEntries
();
void
Insert
(
PFormEntrys
*
pfEntrys
);
void
Insert
(
PFormEntrys
*
pfEntrys
);
PFormEntrys
*
GetPFObject
(
const
ByteString
&
rPFO
);
PFormEntrys
*
GetPFObject
(
const
rtl
::
OString
&
rPFO
);
Byte
String
Dump
();
rtl
::
O
String
Dump
();
sal_Bool
operator
==
(
ResData
*
pData
);
sal_Bool
operator
==
(
ResData
*
pData
);
};
};
...
...
l10ntools/inc/gsicheck.hxx
Dosyayı görüntüle @
7045e4e1
...
@@ -118,7 +118,7 @@ public:
...
@@ -118,7 +118,7 @@ public:
~
GSIBlock
();
~
GSIBlock
();
void
PrintMessage
(
ByteString
aType
,
ByteString
aMsg
,
ByteString
aPrefix
,
ByteString
aContext
,
sal_uLong
nLine
,
ByteString
aUniqueId
=
ByteString
()
);
void
PrintMessage
(
ByteString
aType
,
ByteString
aMsg
,
ByteString
aPrefix
,
ByteString
aContext
,
sal_uLong
nLine
,
ByteString
aUniqueId
=
ByteString
()
);
void
PrintError
(
ByteString
aMsg
,
ByteString
aPrefix
,
ByteString
aContext
,
sal_uLong
nLine
,
ByteString
aUniqueId
=
ByteString
()
);
void
PrintError
(
ByteString
aMsg
,
ByteString
aPrefix
,
ByteString
aContext
,
sal_uLong
nLine
,
ByteString
aUniqueId
=
ByteString
()
);
void
InsertLine
(
GSILine
*
pLine
,
const
ByteString
a
SourceLang
);
void
InsertLine
(
GSILine
*
pLine
,
const
rtl
::
OString
&
r
SourceLang
);
void
SetReferenceLine
(
GSILine
*
pLine
);
void
SetReferenceLine
(
GSILine
*
pLine
);
sal_Bool
CheckSyntax
(
sal_uLong
nLine
,
sal_Bool
bRequireSourceLine
,
sal_Bool
bFixTags
);
sal_Bool
CheckSyntax
(
sal_uLong
nLine
,
sal_Bool
bRequireSourceLine
,
sal_Bool
bFixTags
);
...
...
l10ntools/inc/tagtest.hxx
Dosyayı görüntüle @
7045e4e1
...
@@ -79,18 +79,18 @@ explicit TokenInfo( TokenId pnId, sal_uInt16 nP, String paStr, ParserMessageL
...
@@ -79,18 +79,18 @@ explicit TokenInfo( TokenId pnId, sal_uInt16 nP, String paStr, ParserMessageL
/**
/**
Is the property to be ignored or does it have the default value anyways
Is the property to be ignored or does it have the default value anyways
**/
**/
sal_Bool
IsPropertyRelevant
(
const
ByteString
&
aName
,
const
String
&
a
Value
)
const
;
sal_Bool
IsPropertyRelevant
(
const
rtl
::
OString
&
rName
,
const
String
&
r
Value
)
const
;
sal_Bool
IsPropertyValueValid
(
const
ByteString
&
aName
,
const
String
&
a
Value
)
const
;
sal_Bool
IsPropertyValueValid
(
const
rtl
::
OString
&
rName
,
const
String
&
r
Value
)
const
;
/**
/**
Does the property contain the same value for all languages
Does the property contain the same value for all languages
e.g.: the href in a link tag
e.g.: the href in a link tag
**/
**/
sal_Bool
IsPropertyInvariant
(
const
ByteString
&
aName
,
const
String
&
a
Value
)
const
;
sal_Bool
IsPropertyInvariant
(
const
rtl
::
OString
&
rName
,
const
String
&
r
Value
)
const
;
/**
/**
a subset of IsPropertyInvariant but containing only those that are fixable
a subset of IsPropertyInvariant but containing only those that are fixable
we dont wat to fix e.g.: ahelp :: visibility
we dont wat to fix e.g.: ahelp :: visibility
**/
**/
sal_Bool
IsPropertyFixable
(
const
ByteString
&
a
Name
)
const
;
sal_Bool
IsPropertyFixable
(
const
rtl
::
OString
&
r
Name
)
const
;
sal_Bool
MatchesTranslation
(
TokenInfo
&
rInfo
,
sal_Bool
bGenErrors
,
ParserMessageList
&
rErrorList
,
sal_Bool
bFixTags
=
sal_False
)
const
;
sal_Bool
MatchesTranslation
(
TokenInfo
&
rInfo
,
sal_Bool
bGenErrors
,
ParserMessageList
&
rErrorList
,
sal_Bool
bFixTags
=
sal_False
)
const
;
sal_Bool
IsDone
()
const
{
return
bDone
;
}
sal_Bool
IsDone
()
const
{
return
bDone
;
}
...
@@ -108,8 +108,8 @@ private:
...
@@ -108,8 +108,8 @@ private:
public
:
public
:
~
ParserMessageList
()
{
clear
();
}
~
ParserMessageList
()
{
clear
();
}
void
AddError
(
sal_uInt16
nErrorNr
,
ByteString
a
ErrorText
,
const
TokenInfo
&
rTag
);
void
AddError
(
sal_uInt16
nErrorNr
,
const
rtl
::
OString
&
r
ErrorText
,
const
TokenInfo
&
rTag
);
void
AddWarning
(
sal_uInt16
nErrorNr
,
ByteString
a
ErrorText
,
const
TokenInfo
&
rTag
);
void
AddWarning
(
sal_uInt16
nErrorNr
,
const
rtl
::
OString
&
r
ErrorText
,
const
TokenInfo
&
rTag
);
sal_Bool
HasErrors
();
sal_Bool
HasErrors
();
bool
empty
()
const
{
return
maList
.
empty
();
}
bool
empty
()
const
{
return
maList
.
empty
();
}
...
@@ -212,8 +212,8 @@ private:
...
@@ -212,8 +212,8 @@ private:
TokenList
&
operator
=
(
const
TokenList
&
rList
);
TokenList
&
operator
=
(
const
TokenList
&
rList
);
public
:
public
:
TokenList
()
{}
;
TokenList
()
{}
~
TokenList
(){
clear
();
}
;
~
TokenList
(){
clear
();
}
size_t
size
()
const
{
return
maList
.
size
();
}
size_t
size
()
const
{
return
maList
.
size
();
}
void
clear
()
void
clear
()
...
@@ -244,40 +244,40 @@ public:
...
@@ -244,40 +244,40 @@ public:
class
ParserMessage
class
ParserMessage
{
{
sal_uInt16
nErrorNr
;
sal_uInt16
nErrorNr
;
Byte
String
aErrorText
;
rtl
::
O
String
aErrorText
;
sal_uInt16
nTagBegin
,
nTagLength
;
sal_uInt16
nTagBegin
,
nTagLength
;
protected
:
protected
:
ParserMessage
(
sal_uInt16
PnErrorNr
,
ByteString
PaErrorText
,
const
TokenInfo
&
rTag
);
ParserMessage
(
sal_uInt16
PnErrorNr
,
const
rtl
::
OString
&
r
PaErrorText
,
const
TokenInfo
&
rTag
);
public
:
public
:
sal_uInt16
GetErrorNr
()
{
return
nErrorNr
;
}
sal_uInt16
GetErrorNr
()
{
return
nErrorNr
;
}
Byte
String
GetErrorText
()
{
return
aErrorText
;
}
rtl
::
O
String
GetErrorText
()
{
return
aErrorText
;
}
sal_uInt16
GetTagBegin
()
{
return
nTagBegin
;
}
sal_uInt16
GetTagBegin
()
{
return
nTagBegin
;
}
sal_uInt16
GetTagLength
()
{
return
nTagLength
;
}
sal_uInt16
GetTagLength
()
{
return
nTagLength
;
}
virtual
~
ParserMessage
()
{}
virtual
~
ParserMessage
()
{}
virtual
sal_Bool
IsError
()
=
0
;
virtual
sal_Bool
IsError
()
=
0
;
virtual
Byte
String
Prefix
()
=
0
;
virtual
rtl
::
O
String
Prefix
()
=
0
;
};
};
class
ParserError
:
public
ParserMessage
class
ParserError
:
public
ParserMessage
{
{
public
:
public
:
ParserError
(
sal_uInt16
PnErrorNr
,
ByteString
PaErrorText
,
const
TokenInfo
&
rTag
);
ParserError
(
sal_uInt16
PnErrorNr
,
const
rtl
::
OString
&
r
PaErrorText
,
const
TokenInfo
&
rTag
);
virtual
sal_Bool
IsError
()
{
return
sal_True
;}
;
virtual
sal_Bool
IsError
()
{
return
sal_True
;}
virtual
ByteString
Prefix
()
{
return
"Error:"
;
};
virtual
rtl
::
OString
Prefix
()
{
return
rtl
::
OString
(
RTL_CONSTASCII_STRINGPARAM
(
"Error:"
));
}
};
};
class
ParserWarning
:
public
ParserMessage
class
ParserWarning
:
public
ParserMessage
{
{
public
:
public
:
ParserWarning
(
sal_uInt16
PnErrorNr
,
ByteString
PaErrorText
,
const
TokenInfo
&
rTag
);
ParserWarning
(
sal_uInt16
PnErrorNr
,
const
rtl
::
OString
&
r
PaErrorText
,
const
TokenInfo
&
rTag
);
virtual
sal_Bool
IsError
()
{
return
sal_False
;}
;
virtual
sal_Bool
IsError
()
{
return
sal_False
;}
virtual
ByteString
Prefix
()
{
return
"Warning:"
;
};
virtual
rtl
::
OString
Prefix
()
{
return
rtl
::
OString
(
RTL_CONSTASCII_STRINGPARAM
(
"Warning:"
));
}
};
};
class
SimpleParser
class
SimpleParser
...
@@ -304,7 +304,7 @@ class TokenParser
...
@@ -304,7 +304,7 @@ class TokenParser
{
{
sal_Bool
match
(
const
TokenInfo
&
aCurrentToken
,
const
TokenId
&
aExpectedToken
);
sal_Bool
match
(
const
TokenInfo
&
aCurrentToken
,
const
TokenId
&
aExpectedToken
);
sal_Bool
match
(
const
TokenInfo
&
aCurrentToken
,
const
TokenInfo
&
aExpectedToken
);
sal_Bool
match
(
const
TokenInfo
&
aCurrentToken
,
const
TokenInfo
&
aExpectedToken
);
void
ParseError
(
sal_uInt16
nErrNr
,
ByteString
a
ErrMsg
,
const
TokenInfo
&
rTag
);
void
ParseError
(
sal_uInt16
nErrNr
,
const
rtl
::
OString
&
r
ErrMsg
,
const
TokenInfo
&
rTag
);
void
Paragraph
();
void
Paragraph
();
void
PfCase
();
void
PfCase
();
void
PfCaseBegin
();
void
PfCaseBegin
();
...
...
l10ntools/source/export.cxx
Dosyayı görüntüle @
7045e4e1
...
@@ -337,8 +337,9 @@ int GetError()
...
@@ -337,8 +337,9 @@ int GetError()
void
ResData
::
Dump
(){
void
ResData
::
Dump
(){
printf
(
"**************
\n
ResData
\n
"
);
printf
(
"**************
\n
ResData
\n
"
);
printf
(
"sPForm = %s , sResTyp = %s , sId = %s , sGId = %s , sHelpId = %s
\n
"
,
sPForm
.
GetBuffer
()
printf
(
"sPForm = %s , sResTyp = %s , sId = %s , sGId = %s , sHelpId = %s
\n
"
,
,
sResTyp
.
GetBuffer
(),
sId
.
GetBuffer
(),
sGId
.
GetBuffer
(),
sHelpId
.
GetBuffer
());
sPForm
.
getStr
(),
sResTyp
.
getStr
(),
sId
.
getStr
(),
sGId
.
getStr
(),
sHelpId
.
getStr
());
rtl
::
OString
a
(
"*pStringList"
);
rtl
::
OString
a
(
"*pStringList"
);
rtl
::
OString
b
(
"*pUIEntries"
);
rtl
::
OString
b
(
"*pUIEntries"
);
...
@@ -373,10 +374,10 @@ sal_Bool ResData::SetId( const rtl::OString& rId, sal_uInt16 nLevel )
...
@@ -373,10 +374,10 @@ sal_Bool ResData::SetId( const rtl::OString& rId, sal_uInt16 nLevel )
SetError
();
SetError
();
}
}
if
(
sId
.
Len
()
>
255
)
if
(
sId
.
getLength
()
>
255
)
{
{
YYWarning
(
"LocalId > 255 chars, truncating..."
);
YYWarning
(
"LocalId > 255 chars, truncating..."
);
sId
.
Erase
(
255
);
sId
=
sId
.
copy
(
0
,
255
);
sId
=
comphelper
::
string
::
stripEnd
(
sId
,
' '
);
sId
=
comphelper
::
string
::
stripEnd
(
sId
,
' '
);
sId
=
comphelper
::
string
::
stripEnd
(
sId
,
'\t'
);
sId
=
comphelper
::
string
::
stripEnd
(
sId
,
'\t'
);
}
}
...
@@ -656,7 +657,7 @@ int Export::Execute( int nToken, const char * pToken )
...
@@ -656,7 +657,7 @@ int Export::Execute( int nToken, const char * pToken )
sToken
=
comphelper
::
string
::
stripEnd
(
sToken
,
' '
);
sToken
=
comphelper
::
string
::
stripEnd
(
sToken
,
' '
);
rtl
::
OString
sTLower
=
getToken
(
sToken
,
0
,
' '
).
toAsciiLowerCase
();
rtl
::
OString
sTLower
=
getToken
(
sToken
,
0
,
' '
).
toAsciiLowerCase
();
pResData
->
sResTyp
=
sTLower
;
pResData
->
sResTyp
=
sTLower
;
ByteString
sId
(
sToken
.
Copy
(
pResData
->
sResTyp
.
Len
()
+
1
));
ByteString
sId
(
sToken
.
Copy
(
pResData
->
sResTyp
.
getLength
()
+
1
));
ByteString
sCondition
;
ByteString
sCondition
;
if
(
sId
.
Search
(
"#"
)
!=
STRING_NOTFOUND
)
if
(
sId
.
Search
(
"#"
)
!=
STRING_NOTFOUND
)
{
{
...
@@ -1792,14 +1793,15 @@ sal_Bool Export::PrepareTextToMerge(ByteString &rText, sal_uInt16 nTyp,
...
@@ -1792,14 +1793,15 @@ sal_Bool Export::PrepareTextToMerge(ByteString &rText, sal_uInt16 nTyp,
sLastListLine
=
"<"
;
sLastListLine
=
"<"
;
sLastListLine
+=
sTmp
;
sLastListLine
+=
sTmp
;
}
}
if
(
pResData
->
sResTyp
.
EqualsIgnoreCaseAscii
(
"pairedlist"
)
){
if
(
pResData
->
sResTyp
.
equalsIgnoreAsciiCaseL
(
RTL_CONSTASCII_STRINGPARAM
(
"pairedlist"
))
)
{
pResData
->
sId
=
GetPairedListID
(
sLastListLine
);
pResData
->
sId
=
GetPairedListID
(
sLastListLine
);
}
}
else
pResData
->
sId
=
rtl
::
OString
::
valueOf
(
static_cast
<
sal_Int32
>
(
nListIndex
));
else
pResData
->
sId
=
rtl
::
OString
::
valueOf
(
static_cast
<
sal_Int32
>
(
nListIndex
));
if
(
pResData
->
sGId
.
Len
())
if
(
!
pResData
->
sGId
.
isEmpty
())
pResData
->
sGId
+=
"."
;
pResData
->
sGId
=
pResData
->
sGId
+
rtl
::
OString
(
'.'
)
;
pResData
->
sGId
+=
sOldId
;
pResData
->
sGId
=
pResData
->
sGId
+
sOldId
;
nTyp
=
STRING_TYP_TEXT
;
nTyp
=
STRING_TYP_TEXT
;
}
}
break
;
break
;
...
@@ -2065,9 +2067,9 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
...
@@ -2065,9 +2067,9 @@ void Export::MergeRest( ResData *pResData, sal_uInt16 nMode )
ByteString
sOldId
=
pResData
->
sId
;
ByteString
sOldId
=
pResData
->
sId
;
ByteString
sOldGId
=
pResData
->
sGId
;
ByteString
sOldGId
=
pResData
->
sGId
;
ByteString
sOldTyp
=
pResData
->
sResTyp
;
ByteString
sOldTyp
=
pResData
->
sResTyp
;
if
(
pResData
->
sGId
.
Len
())
if
(
!
pResData
->
sGId
.
isEmpty
())
pResData
->
sGId
+=
"."
;
pResData
->
sGId
=
pResData
->
sGId
+
rtl
::
OString
(
'.'
)
;
pResData
->
sGId
+=
sOldId
;
pResData
->
sGId
=
pResData
->
sGId
+
sOldId
;
ByteString
sSpace
;
ByteString
sSpace
;
for
(
sal_uInt16
i
=
1
;
i
<
nLevel
-
1
;
i
++
)
for
(
sal_uInt16
i
=
1
;
i
<
nLevel
-
1
;
i
++
)
sSpace
+=
"
\t
"
;
sSpace
+=
"
\t
"
;
...
...
l10ntools/source/gsicheck.cxx
Dosyayı görüntüle @
7045e4e1
...
@@ -318,11 +318,9 @@ GSIBlock::~GSIBlock()
...
@@ -318,11 +318,9 @@ GSIBlock::~GSIBlock()
maList
.
clear
();
maList
.
clear
();
}
}
/*****************************************************************************/
void
GSIBlock
::
InsertLine
(
GSILine
*
pLine
,
const
rtl
::
OString
&
rSourceLang
)
void
GSIBlock
::
InsertLine
(
GSILine
*
pLine
,
ByteString
aSourceLang
)
/*****************************************************************************/
{
{
if
(
pLine
->
GetLanguageId
().
Equals
(
a
SourceLang
)
)
if
(
pLine
->
GetLanguageId
().
Equals
(
r
SourceLang
)
)
{
{
if
(
pSourceLine
)
if
(
pSourceLine
)
{
{
...
@@ -338,7 +336,7 @@ void GSIBlock::InsertLine( GSILine* pLine, ByteString aSourceLang)
...
@@ -338,7 +336,7 @@ void GSIBlock::InsertLine( GSILine* pLine, ByteString aSourceLang)
}
}
}
}
if
(
aSourceLang
.
Len
()
)
// only check blockstructure if source lang is given
if
(
!
rSourceLang
.
isEmpty
()
)
// only check blockstructure if source lang is given
{
{
for
(
size_t
nPos
=
0
,
n
=
maList
.
size
();
nPos
<
n
;
++
nPos
)
for
(
size_t
nPos
=
0
,
n
=
maList
.
size
();
nPos
<
n
;
++
nPos
)
{
{
...
...
l10ntools/source/helpmerge.cxx
Dosyayı görüntüle @
7045e4e1
...
@@ -577,7 +577,13 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , Re
...
@@ -577,7 +577,13 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , Re
aLangHM
->
erase
(
sCur
);
aLangHM
->
erase
(
sCur
);
}
}
}
}
}
else
if
(
pResData
==
NULL
){
fprintf
(
stdout
,
"Can't find GID=%s LID=%s TYP=%s
\n
"
,
pResData
->
sGId
.
GetBuffer
(),
pResData
->
sId
.
GetBuffer
(),
pResData
->
sResTyp
.
GetBuffer
());}
}
else
if
(
pResData
==
NULL
)
{
fprintf
(
stdout
,
"Can't find GID=%s LID=%s TYP=%s
\n
"
,
pResData
->
sGId
.
getStr
(),
pResData
->
sId
.
getStr
(),
pResData
->
sResTyp
.
getStr
());
}
pXMLElement
->
ChangeLanguageTag
(
String
(
sCur
,
RTL_TEXTENCODING_ASCII_US
)
);
pXMLElement
->
ChangeLanguageTag
(
String
(
sCur
,
RTL_TEXTENCODING_ASCII_US
)
);
}
}
...
...
l10ntools/source/merge.cxx
Dosyayı görüntüle @
7045e4e1
...
@@ -134,10 +134,10 @@ void MergeData::Insert(PFormEntrys* pfEntrys )
...
@@ -134,10 +134,10 @@ void MergeData::Insert(PFormEntrys* pfEntrys )
aMap
.
insert
(
PFormEntrysHashMap
::
value_type
(
ByteString
(
"HACK"
)
,
pfEntrys
)
);
aMap
.
insert
(
PFormEntrysHashMap
::
value_type
(
ByteString
(
"HACK"
)
,
pfEntrys
)
);
}
}
ByteString
MergeData
::
Dump
(){
rtl
::
OString
MergeData
::
Dump
()
ByteString
sRet
(
"MergeData
\n
"
);
{
printf
(
"MergeData sTyp = %s , sGid = %s , sLid =%s , sFilename = %s
\n
"
,
printf
(
"MergeData sTyp = %s , sGid = %s , sLid =%s , sFilename = %s
\n
"
,
sTyp
.
GetBuffer
(),
sGID
.
GetBuffer
(),
sLID
.
GetBuffer
(),
sFilename
.
GetBuffer
()
);
sTyp
.
getStr
(),
sGID
.
getStr
(),
sLID
.
getStr
(),
sFilename
.
getStr
()
);
PFormEntrysHashMap
::
const_iterator
idbg
;
PFormEntrysHashMap
::
const_iterator
idbg
;
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
...
@@ -147,10 +147,11 @@ ByteString MergeData::Dump(){
...
@@ -147,10 +147,11 @@ ByteString MergeData::Dump(){
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
return
sRet
;
return
rtl
::
OString
(
RTL_CONSTASCII_STRINGPARAM
(
"MergeData
\n
"
))
;
}
}
PFormEntrys
*
MergeData
::
GetPFObject
(
const
ByteString
&
rPFO
){
PFormEntrys
*
MergeData
::
GetPFObject
(
const
rtl
::
OString
&
rPFO
)
{
if
(
aMap
.
find
(
ByteString
(
"HACK"
)
)
!=
aMap
.
end
()
)
if
(
aMap
.
find
(
ByteString
(
"HACK"
)
)
!=
aMap
.
end
()
)
return
aMap
[
rPFO
];
return
aMap
[
rPFO
];
return
NULL
;
return
NULL
;
...
...
l10ntools/source/tagtest.cxx
Dosyayı görüntüle @
7045e4e1
This diff is collapsed.
Click to expand it.
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