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
54250655
Kaydet (Commit)
54250655
authored
Eki 05, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix higher debug level build
Change-Id: I091a198bc1fac17434ae64c18560dda48d6d5142
üst
4d25561e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
calc.hxx
sw/inc/calc.hxx
+1
-1
calc.cxx
sw/source/core/bastyp/calc.cxx
+27
-27
No files found.
sw/inc/calc.hxx
Dosyayı görüntüle @
54250655
...
...
@@ -169,7 +169,7 @@ class SwCalc
{
SwHash
*
VarTable
[
TBLSZ
];
String
aVarName
,
sCurrSym
;
String
sCommand
;
OUString
sCommand
;
std
::
vector
<
const
SwUserFieldType
*>
aRekurStk
;
SwSbxValue
nLastLeft
;
SwSbxValue
nNumberValue
;
...
...
sw/source/core/bastyp/calc.cxx
Dosyayı görüntüle @
54250655
...
...
@@ -646,7 +646,7 @@ SwCalcOper SwCalc::GetToken()
{
#endif
if
(
nCommandPos
>=
sCommand
.
Len
()
)
if
(
nCommandPos
>=
sCommand
.
getLength
()
)
return
eCurrOper
=
CALC_ENDCALC
;
using
namespace
::
com
::
sun
::
star
::
i18n
;
...
...
@@ -666,8 +666,8 @@ SwCalcOper SwCalc::GetToken()
}
else
if
(
aRes
.
TokenType
&
KParseType
::
IDENTNAME
)
{
String
aName
(
sCommand
.
C
opy
(
nRealStt
,
static_cast
<
xub_StrLen
>
(
aRes
.
EndPos
)
-
nRealStt
)
);
String
aName
(
sCommand
.
c
opy
(
nRealStt
,
aRes
.
EndPos
-
nRealStt
)
);
//#101436#: The variable may contain a database name. It must not be
// converted to lower case! Instead all further comparisons must be
// done case-insensitive
...
...
@@ -716,8 +716,8 @@ SwCalcOper SwCalc::GetToken()
}
else
if
(
aRes
.
TokenType
&
KParseType
::
ONE_SINGLE_CHAR
)
{
String
aName
(
sCommand
.
C
opy
(
nRealStt
,
static_cast
<
xub_StrLen
>
(
aRes
.
EndPos
)
-
nRealStt
));
String
aName
(
sCommand
.
c
opy
(
nRealStt
,
aRes
.
EndPos
-
nRealStt
));
if
(
1
==
aName
.
Len
()
)
{
bSetError
=
false
;
...
...
@@ -755,8 +755,8 @@ SwCalcOper SwCalc::GetToken()
else
eCurrOper
=
CALC_NOT
,
eTmp2
=
CALC_NEQ
;
if
(
aRes
.
EndPos
<
sCommand
.
Len
()
&&
'='
==
sCommand
.
GetChar
(
(
xub_StrLen
)
aRes
.
EndPos
)
)
if
(
aRes
.
EndPos
<
sCommand
.
getLength
()
&&
'='
==
sCommand
[
aRes
.
EndPos
]
)
{
eCurrOper
=
eTmp2
;
++
aRes
.
EndPos
;
...
...
@@ -769,32 +769,32 @@ SwCalcOper SwCalc::GetToken()
break
;
case
'['
:
if
(
aRes
.
EndPos
<
sCommand
.
Len
()
)
if
(
aRes
.
EndPos
<
sCommand
.
getLength
()
)
{
aVarName
.
Erase
();
xub_StrLen
nFndPos
=
(
xub_StrLen
)
aRes
.
EndPos
,
sal_Int32
nFndPos
=
aRes
.
EndPos
,
nSttPos
=
nFndPos
;
do
{
if
(
STRING_NOTFOUND
!=
(
nFndPos
=
sCommand
.
Search
(
']'
,
nFndPos
))
)
if
(
-
1
!=
(
nFndPos
=
sCommand
.
indexOf
(
']'
,
nFndPos
))
)
{
// ignore the ]
if
(
'\\'
==
sCommand
.
GetChar
(
nFndPos
-
1
)
)
if
(
'\\'
==
sCommand
[
nFndPos
-
1
]
)
{
aVarName
+=
sCommand
.
C
opy
(
nSttPos
,
aVarName
+=
sCommand
.
c
opy
(
nSttPos
,
nFndPos
-
nSttPos
-
1
);
nSttPos
=
++
nFndPos
;
}
else
break
;
}
}
while
(
STRING_NOTFOUND
!=
nFndPos
);
}
while
(
nFndPos
!=
-
1
);
if
(
STRING_NOTFOUND
!=
nFndPos
)
if
(
nFndPos
!=
-
1
)
{
if
(
nSttPos
!=
nFndPos
)
aVarName
+=
sCommand
.
C
opy
(
nSttPos
,
aVarName
+=
sCommand
.
c
opy
(
nSttPos
,
nFndPos
-
nSttPos
);
aRes
.
EndPos
=
nFndPos
+
1
;
eCurrOper
=
CALC_NAME
;
...
...
@@ -816,8 +816,8 @@ SwCalcOper SwCalc::GetToken()
}
else
if
(
aRes
.
TokenType
&
KParseType
::
BOOLEAN
)
{
String
aName
(
sCommand
.
C
opy
(
nRealStt
,
static_cast
<
xub_StrLen
>
(
aRes
.
EndPos
)
-
nRealStt
));
String
aName
(
sCommand
.
c
opy
(
nRealStt
,
aRes
.
EndPos
-
nRealStt
));
if
(
aName
.
Len
()
)
{
sal_Unicode
ch
=
aName
.
GetChar
(
0
);
...
...
@@ -837,7 +837,7 @@ SwCalcOper SwCalc::GetToken()
}
}
}
else
if
(
nRealStt
==
sCommand
.
Len
()
)
else
if
(
nRealStt
==
sCommand
.
getLength
()
)
{
eCurrOper
=
CALC_ENDCALC
;
bSetError
=
false
;
...
...
@@ -852,7 +852,7 @@ SwCalcOper SwCalc::GetToken()
};
#if OSL_DEBUG_LEVEL > 1
#define NextCh( s, n ) (nCommandPos < sCommand.
Len() ? sCommand.GetChar( nCommandPos++ )
: 0)
#define NextCh( s, n ) (nCommandPos < sCommand.
getLength() ? sCommand[nCommandPos++]
: 0)
}
else
...
...
@@ -880,8 +880,8 @@ SwCalcOper SwCalc::GetToken()
case
'\n'
:
{
sal_Unicode
c
;
while
(
nCommandPos
<
sCommand
.
Len
()
&&
(
(
c
=
sCommand
.
GetChar
(
nCommandPos
)
)
==
' '
||
while
(
nCommandPos
<
sCommand
.
getLength
()
&&
(
(
c
=
sCommand
[
nCommandPos
]
)
==
' '
||
c
==
'\t'
||
c
==
'\x0a'
||
c
==
'\x0d'
))
{
++
nCommandPos
;
...
...
@@ -902,7 +902,7 @@ SwCalcOper SwCalc::GetToken()
break
;
case
'='
:
if
(
'='
==
sCommand
.
GetChar
(
nCommandPos
)
)
if
(
'='
==
sCommand
[
nCommandPos
]
)
{
++
nCommandPos
;
eCurrOper
=
CALC_EQ
;
...
...
@@ -914,7 +914,7 @@ SwCalcOper SwCalc::GetToken()
break
;
case
'!'
:
if
(
'='
==
sCommand
.
GetChar
(
nCommandPos
)
)
if
(
'='
==
sCommand
[
nCommandPos
]
)
{
++
nCommandPos
;
eCurrOper
=
CALC_NEQ
;
...
...
@@ -928,7 +928,7 @@ SwCalcOper SwCalc::GetToken()
case
'>'
:
case
'<'
:
eCurrOper
=
'>'
==
ch
?
CALC_GRE
:
CALC_LES
;
if
(
'='
==
(
ch
=
sCommand
.
GetChar
(
nCommandPos
)
)
)
if
(
'='
==
(
ch
=
sCommand
[
nCommandPos
]
)
)
{
++
nCommandPos
;
eCurrOper
=
CALC_GRE
==
eCurrOper
?
CALC_GEQ
:
CALC_LEQ
;
...
...
@@ -1023,7 +1023,7 @@ SwCalcOper SwCalc::GetToken()
if
(
ch
)
--
nCommandPos
;
String
aStr
(
sCommand
.
C
opy
(
nStt
,
nCommandPos
-
nStt
));
String
aStr
(
sCommand
.
c
opy
(
nStt
,
nCommandPos
-
nStt
));
aStr
=
pCharClass
->
lowercase
(
aStr
);
// catch currency symbol
...
...
@@ -1481,7 +1481,7 @@ String SwCalc::GetDBName(const String& rName)
SwDBData
aData
=
rDoc
.
GetDBData
();
String
sRet
=
aData
.
sDataSource
;
sRet
+=
DB_DELIM
;
sRet
+=
String
(
aData
.
sCommand
)
;
sRet
+=
aData
.
sCommand
;
return
sRet
;
}
...
...
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