LibreOffice Module sc (master)
1
|
#include <interpre.hxx>
Public Types | |
enum | VolatileType { VOLATILE, VOLATILE_MACRO, NOT_VOLATILE } |
Static Public Member Functions | |
static void | SetGlobalConfig (const ScCalcConfig &rConfig) |
static const ScCalcConfig & | GetGlobalConfig () |
static void | GlobalExit () |
static bool | MayBeRegExp (const OUString &rStr) |
Could string be a regular expression? if regularExpressions are disabled the function returns false regardless of the string content. More... | |
static bool | MayBeWildcard (const OUString &rStr) |
Could string be a wildcard (*,?,~) expression? If wildcards are disabled the function returns false regardless of the string content. More... | |
static utl::SearchParam::SearchType | DetectSearchType (const OUString &rStr, const ScDocument &rDoc) |
Detect if string should be used as regular expression or wildcard expression or literal string. More... | |
static double | div (const double &fNumerator, const double &fDenominator) |
Fail safe division, returning a FormulaError::DivisionByZero coded into a double if denominator is 0.0. More... | |
static double | ScGetGCD (double fx, double fy) |
static double | phi (double x) |
static double | integralPhi (double x) |
static double | gaussinv (double x) |
static double | GetPercentile (::std::vector< double > &rArray, double fPercentile) |
Static Private Member Functions | |
static ScCalcConfig & | GetOrCreateGlobalConfig () |
static FormulaError | GetCellErrCode (const ScRefCellValue &rCell) |
static std::unique_ptr< ScTokenMatrixMap > | CreateTokenMatrixMap () |
static bool | CheckStringPositionArgument (double &fVal) |
Check if a double is suitable as string position or length argument. More... | |
static sal_Int16 | GetDayOfWeek (sal_Int32 n) |
static void | RoundSignificant (double fX, double fDigits, double &fRes) |
static double | ScGetPV (double fRate, double fNper, double fPmt, double fFv, bool bPayInAdvance) |
static double | ScGetDDB (double fCost, double fSalvage, double fLife, double fPeriod, double fFactor) |
static double | ScInterVDB (double fCost, double fSalvage, double fLife, double fLife1, double fPeriod, double fFactor) |
static double | ScGetPMT (double fRate, double fNper, double fPv, double fFv, bool bPayInAdvance) |
static double | ScGetFV (double fRate, double fNper, double fPmt, double fPv, bool bPayInAdvance) |
static bool | RateIteration (double fNper, double fPayment, double fPv, double fFv, bool bPayType, double &fGuess) |
static void | MEMat (const ScMatrixRef &mM, SCSIZE n) |
static double | taylor (const double *pPolynom, sal_uInt16 nMax, double x) |
static double | gauss (double x) |
static double | GetChiSqDistPDF (double fX, double fDF) |
static double | BinomKoeff (double n, double k) |
static double | GetLogGamma (double x) |
You must ensure fZ>0. More... | |
static double | GetLogBeta (double fAlpha, double fBeta) |
static void | QuickSort (::std::vector< double > &rSortArray,::std::vector< tools::Long > *pIndexOrder) |
static double | GetPercentrank (::std::vector< double > &rArray, double fVal, bool bInclusive) |
Private Attributes | |
ScCalcConfig | maCalcConfig |
formula::FormulaTokenIterator | aCode |
ScAddress | aPos |
ScTokenArray * | pArr |
ScInterpreterContext & | mrContext |
ScDocument & | mrDoc |
sfx2::LinkManager * | mpLinkManager |
svl::SharedStringPool & | mrStrPool |
formula::FormulaConstTokenRef | xResult |
ScJumpMatrix * | pJumpMatrix |
std::unique_ptr< ScTokenMatrixMap > | pTokenMatrixMap |
ScFormulaCell * | pMyFormulaCell |
SvNumberFormatter * | pFormatter |
const formula::FormulaToken * | pCur |
ScTokenStack * | pStackObj |
const formula::FormulaToken ** | pStack |
FormulaError | nGlobalError |
sal_uInt16 | sp |
sal_uInt16 | maxsp |
sal_uInt32 | nFuncFmtIndex |
sal_uInt32 | nCurFmtIndex |
sal_uInt32 | nRetFmtIndex |
SvNumFormatType | nFuncFmtType |
SvNumFormatType | nCurFmtType |
SvNumFormatType | nRetFmtType |
FormulaError | mnStringNoValueError |
SubtotalFlags | mnSubTotalFlags |
sal_uInt8 | cPar |
bool | bCalcAsShown |
bool | bMatrixFormula |
VolatileType | meVolatileType |
Static Private Attributes | |
static ScCalcConfig * | mpGlobalConfig = nullptr |
static thread_local std::unique_ptr< ScTokenStack > | pGlobalStack |
static thread_local bool | bGlobalStackInUse = false |
static const double | fMaxGammaArgument = 171.624376956302 |
Friends | |
class | ScGammaDistFunction |
class | ScBetaDistFunction |
class | ScTDistFunction |
class | ScFDistFunction |
class | ScChiDistFunction |
class | ScChiSqDistFunction |
Definition at line 139 of file interpre.hxx.
Enumerator | |
---|---|
VOLATILE | |
VOLATILE_MACRO | |
NOT_VOLATILE |
Definition at line 179 of file interpre.hxx.
ScInterpreter::ScInterpreter | ( | ScFormulaCell * | pCell, |
ScDocument & | rDoc, | ||
ScInterpreterContext & | rContext, | ||
const ScAddress & | rPos, | ||
ScTokenArray & | r, | ||
bool | bForGroupThreading = false |
||
) |
Definition at line 3768 of file interpr4.cxx.
ScInterpreter::~ScInterpreter | ( | ) |
Definition at line 3823 of file interpr4.cxx.
void ScInterpreter::AssertFormulaMatrix | ( | ) |
Definition at line 4745 of file interpr4.cxx.
Referenced by ScSimpleFormulaCalculator::Calculate().
|
staticprivate |
Definition at line 457 of file interpr3.cxx.
|
private |
Definition at line 1279 of file interpr5.cxx.
References lcl_GetDiffDateTimeFmtType(), and formula::svMatrix.
|
private |
!!!!!!
!!!!!!
Definition at line 7199 of file interpr1.cxx.
References assert(), ScQueryParamBase::bByRow, ScQueryEntry::bDoQuery, ScQueryEntry::ByString, CollatorWrapper::compareString(), ScQueryEntry::eOp, ScQueryParamBase::eSearchType, eType, ScQueryCellIterator::FindEqualOrSortedLastInRange(), ScQueryCellIterator::GetCol(), ScGlobal::GetCollator(), svl::SharedString::getDataIgnoreCase(), ScQueryParamBase::GetEntry(), ScQueryCellIterator::GetFirst(), ScQueryEntry::GetQueryItem(), svl::SharedString::getString(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScQueryEntry::Item::mfVal, mrContext, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryEntry::nField, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, ScQueryParamTable::nTab, ScAddress::Row(), SC_LESS_EQUAL, SCSIZE_MAX, ScQueryCellIterator::SetAdvanceQueryParamEntryField(), formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
Definition at line 707 of file interpr5.cxx.
References ScMatrixValue::fVal, ScMatrix::Get(), ScMatrix::GetDimensions(), ScMatrixValue::GetString(), ScMatrix::IsNonValueType(), and ScMatrixValue::nType.
|
private |
Definition at line 4535 of file interpr3.cxx.
References i.
|
private |
Definition at line 2408 of file interpr5.cxx.
|
private |
Definition at line 3223 of file interpr3.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), nCount, SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, and formula::svSingleRef.
|
private |
Definition at line 3329 of file interpr3.cxx.
|
private |
Definition at line 4649 of file interpr3.cxx.
References i.
|
private |
Definition at line 3643 of file interpr3.cxx.
References assert(), o3tl::convertsToAtMost(), CreateDoubleError(), f, i, and n.
|
private |
Definition at line 1801 of file interpr5.cxx.
References i.
|
private |
Definition at line 2582 of file interpr3.cxx.
References i.
|
private |
Definition at line 2932 of file interpr5.cxx.
|
private |
Definition at line 2291 of file interpr5.cxx.
|
inlinestaticprivate |
Check if a double is suitable as string position or length argument.
If fVal is Inf or NaN it is changed to -1, if it is less than 0 it is sanitized to 0, if it is greater than some implementation defined max string length it is sanitized to that max.
Definition at line 1091 of file interpre.hxx.
References SAL_MAX_INT32.
Referenced by GetStringPositionArgument().
|
inlineprivate |
Definition at line 1122 of file interpre.hxx.
References kScInterpreterMaxStrLen, and SetError().
Referenced by ScConcat_MS(), and ScTextJoin_MS().
|
inlineprivate |
Definition at line 1133 of file interpre.hxx.
References kScInterpreterMaxStrLen, and SetError().
|
private |
Definition at line 882 of file interpr1.cxx.
References aStr, sc::CompareFunc(), GetString(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::hasString(), i, if(), sc::Compare::maCells, sc::Compare::Cell::maStr, sc::Compare::Cell::mbEmpty, sc::Compare::mbIgnoreCase, sc::Compare::Cell::mbValue, sc::Compare::meOp, sc::Compare::Cell::mfValue, SetError(), formula::svDouble, formula::svDoubleRef, formula::svEmptyCell, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMissing, formula::svSingleRef, and formula::svString.
|
private |
pOptions | NULL means case sensitivity document option is to be used! |
Definition at line 979 of file interpr1.cxx.
References aStr, sc::CompareFunc(), ScMatrix::CompareMatrix(), GetString(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::hasString(), i, if(), sc::Compare::maCells, sc::Compare::Cell::maStr, sc::Compare::Cell::mbEmpty, sc::Compare::mbIgnoreCase, sc::Compare::Cell::mbValue, sc::Compare::meOp, sc::Compare::Cell::mfValue, sc::RangeMatrix::mnCol1, sc::RangeMatrix::mnCol2, sc::RangeMatrix::mnRow1, sc::RangeMatrix::mnRow2, sc::RangeMatrix::mnTab1, sc::RangeMatrix::mnTab2, sc::RangeMatrix::mpMat, SAL_WARN, SC_EQUAL, SC_GREATER, SC_GREATER_EQUAL, SC_LESS, SC_LESS_EQUAL, SC_NOT_EQUAL, SetError(), formula::svDouble, formula::svDoubleRef, formula::svEmptyCell, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svMissing, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 1412 of file interpr4.cxx.
Referenced by MatrixJumpConditionToMatrix().
|
private |
Definition at line 1436 of file interpr4.cxx.
Referenced by MatrixParameterConversion().
|
private |
Definition at line 160 of file interpr4.cxx.
References ScGlobal::ConvertStringToValue(), and SetError().
Referenced by lcl_MatrixCalculation().
double ScInterpreter::ConvertStringToValue | ( | const OUString & | rStr, |
FormulaError & | rError, | ||
SvNumFormatType & | rCurFmtType | ||
) |
For matrix back calls into the current interpreter.
Uses rError instead of nGlobalError and rCurFmtType instead of nCurFmtType.
Definition at line 170 of file interpr4.cxx.
References ScGlobal::ConvertStringToValue().
|
private |
Definition at line 456 of file interpr4.cxx.
|
private |
Definition at line 277 of file interpr4.cxx.
References SAL_MAX_UINT16.
|
private |
Definition at line 1759 of file interpr4.cxx.
|
private |
Definition at line 1734 of file interpr4.cxx.
|
private |
Definition at line 316 of file interpr5.cxx.
References assert(), CELLTYPE_VALUE, ScAddress::Col(), ScCellIterator::first(), formula::FormulaToken::GetDoubleRef(), ScCellIterator::GetPos(), ScCellIterator::getRefCellValue(), ScRefCellValue::getValue(), ScCellIterator::isEmpty(), ScMatrix::IsSizeAllocatable(), ScComplexRefData::IsTrimToData(), mrContext, ScCellIterator::next(), ScAddress::Row(), and SetError().
|
private |
Definition at line 359 of file interpr4.cxx.
|
staticprivate |
Definition at line 1431 of file interpr4.cxx.
Referenced by GetTokenMatrixMap().
|
inlineprivate |
Definition at line 465 of file interpre.hxx.
References nCurFmtIndex, and nCurFmtType.
|
private |
Definition at line 7797 of file interpr1.cxx.
References sc::div(), ScDBQueryDataIterator::GetFirst(), ScDBQueryDataIterator::GetNext(), ifAVERAGE, ifCOUNT, ifMAX, ifMIN, ifPRODUCT, ifSUM, ifSUMSQ, MAXDOUBLE, ScDBQueryDataIterator::Value::mfValue, ScDBQueryDataIterator::Value::mnError, mrContext, nCount, and SetError().
|
static |
Detect if string should be used as regular expression or wildcard expression or literal string.
Definition at line 9958 of file interpr1.cxx.
References ScDocument::GetDocOptions(), ScDocOptions::IsFormulaRegexEnabled(), ScDocOptions::IsFormulaWildcardsEnabled(), utl::SearchParam::Normal, utl::SearchParam::Regexp, and utl::SearchParam::Wildcard.
|
inlinestatic |
Fail safe division, returning a FormulaError::DivisionByZero coded into a double if denominator is 0.0.
Definition at line 1157 of file interpre.hxx.
References sc::div().
|
private |
Definition at line 2155 of file interpr4.cxx.
Definition at line 1985 of file interpr4.cxx.
|
private |
Definition at line 1023 of file interpr4.cxx.
|
private |
Definition at line 938 of file interpr4.cxx.
|
private |
Definition at line 436 of file interpr3.cxx.
References SetError().
|
private |
Definition at line 7452 of file interpr1.cxx.
References aStr, ScQueryEntry::ByString, ScQueryEntry::ByValue, ScQueryEntry::GetQueryItem(), GetString(), ScRefCellValue::hasNumeric(), ScMatrix::IsNonValueType(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScQueryEntry::Item::mfVal, nType, formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svSingleRef, and formula::svString.
|
staticprivate |
Definition at line 212 of file interpr3.cxx.
|
static |
Definition at line 265 of file interpr3.cxx.
|
private |
Definition at line 797 of file interpr3.cxx.
References lcl_getLanczosSum().
|
private |
Definition at line 982 of file interpr3.cxx.
References GetBetaDistPDF, GetLogBeta, lcl_GetBetaHelperContFrac(), and log.
Referenced by ScBetaDistFunction::GetValue().
|
private |
Definition at line 859 of file interpr3.cxx.
References GetBeta, GetLogBeta, log, and SetError().
|
private |
Definition at line 1229 of file interpr3.cxx.
References GetBetaDistPDF, i, and max.
|
inlineprivate |
|
inlineprivate |
Definition at line 426 of file interpre.hxx.
References cPar.
Referenced by ScConcat_MS(), ScForecast_Ets(), ScIfs_MS(), ScSwitch_MS(), and ScTextJoin_MS().
|
staticprivate |
Definition at line 155 of file interpr4.cxx.
References CELLTYPE_FORMULA, ScFormulaCell::GetErrCode(), ScRefCellValue::meType, and ScRefCellValue::mpFormula.
|
private |
Definition at line 122 of file interpr4.cxx.
References CELLTYPE_FORMULA, ScFormulaCell::GetErrCode(), ScRefCellValue::isEmpty(), ScRefCellValue::meType, ScRefCellValue::mpFormula, mrContext, and SetError().
|
private |
Definition at line 242 of file interpr4.cxx.
References CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_STRING, CELLTYPE_VALUE, svl::SharedString::getEmptyString(), ScFormulaCell::GetErrCode(), ScRefCellValue::getString(), ScFormulaCell::GetString(), ScFormulaCell::GetValue(), ScFormulaCell::IsValue(), ScRefCellValue::meType, ScRefCellValue::mfValue, ScRefCellValue::mpFormula, and SetError().
Referenced by ScConcat_MS(), ScSwitch_MS(), and ScTextJoin_MS().
|
private |
Definition at line 175 of file interpr4.cxx.
Referenced by ScSwitch_MS().
|
private |
Definition at line 185 of file interpr4.cxx.
References aStr, CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_NONE, CELLTYPE_STRING, CELLTYPE_VALUE, eType, ScFormulaCell::GetErrCode(), svl::SharedString::getString(), ScRefCellValue::getString(), ScFormulaCell::GetString(), ScFormulaCell::GetValue(), ScFormulaCell::IsValue(), ScRefCellValue::meType, ScRefCellValue::mfValue, ScRefCellValue::mpFormula, mrContext, and SetError().
|
private |
You must ensure fDF>0.0.
Definition at line 666 of file interpr3.cxx.
References GetUpRegIGamma.
Referenced by ScChiDistFunction::GetValue().
|
private |
You must ensure fDF>0.0.
Definition at line 678 of file interpr3.cxx.
References GetLowRegIGamma.
Referenced by ScChiSqDistFunction::GetValue().
|
staticprivate |
Definition at line 686 of file interpr3.cxx.
References F_PI, GetLogGamma, and log.
|
private |
Obtain the date serial number for a given date.
bStrict | If false, nYear < 100 takes the two-digit year setting into account, and rollover of invalid calendar dates takes place, e.g. 1999-02-31 => 1999-03-03. If true, the date passed must be a valid Gregorian calendar date. No two-digit expanding or rollover is done. |
Date must be Gregorian, i.e. >= 1582-10-15.
Definition at line 58 of file interpr2.cxx.
References Date::AddDays(), Date::IsValidAndGregorian(), and SetError().
|
inlinestaticprivate |
Definition at line 1162 of file interpre.hxx.
|
private |
Definition at line 7659 of file interpr1.cxx.
References aStr, ScQueryEntry::bDoQuery, ScQueryEntry::ByString, ScQueryEntry::ByValue, ScQueryEntry::GetQueryItem(), GetString(), svl::SharedString::getString(), ScRefCellValue::hasNumeric(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScQueryEntry::Item::mfVal, nCount, nIndex, utl::SearchParam::Normal, SetError(), formula::svDouble, formula::svDoubleRef, formula::svMissing, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 7983 of file interpr1.cxx.
References ScDBQueryDataIterator::GetFirst(), ScDBQueryDataIterator::GetNext(), ScDBQueryDataIterator::Value::mfValue, ScDBQueryDataIterator::Value::mnError, mrContext, SetError(), v, and values.
|
private |
Definition at line 2065 of file interpr4.cxx.
Referenced by GetBool(), GetStringPositionArgument(), ScSwitch_MS(), and ScTextJoin_MS().
|
private |
Definition at line 2024 of file interpr4.cxx.
|
private |
returns TRUE if double (or error, check nGlobalError), else FALSE
Definition at line 2242 of file interpr4.cxx.
|
private |
Definition at line 2403 of file interpr4.cxx.
Referenced by ScSwitch_MS().
|
private |
Definition at line 2146 of file interpr4.cxx.
Referenced by ScForecast_Ets().
|
inline |
Definition at line 1026 of file interpre.hxx.
References nGlobalError.
Referenced by ScFormulaCell::InterpretTail().
|
private |
Definition at line 9776 of file interpr1.cxx.
References n, formula::svDoubleRef, formula::svRefList, formula::svSingleRef, and x.
|
private |
Definition at line 1258 of file interpr4.cxx.
|
private |
Definition at line 637 of file interpr3.cxx.
References GetBetaDist.
Referenced by ScFDistFunction::GetValue().
|
private |
You must ensure non integer arguments for fZ<1.
Definition at line 582 of file interpr3.cxx.
References F_PI, lcl_GetGammaHelper(), lcl_GetLogGammaHelper(), log, and SetError().
|
private |
You must ensure fA>0.0 && fX>0.0 valid results only if fX > fA+1.0 uses continued fraction with odd items.
Definition at line 44 of file interpr6.cxx.
References fHalfMachEps, and SetError().
|
private |
Gamma distribution, cumulative distribution function.
fLambda is "scale" parameter You must ensure fAlpha>0.0 and fLambda>0.0
Definition at line 198 of file interpr6.cxx.
References GetLowRegIGamma.
Referenced by ScGammaDistFunction::GetValue().
|
private |
Gamma distribution, probability density function.
fLambda is "scale" parameter You must ensure fAlpha>0.0 and fLambda>0.0
Definition at line 144 of file interpr6.cxx.
References GetLogGamma, log, and SetError().
|
private |
You must ensure fA>0.0 && fX>0.0 valid results only if fX <= fA+1.0 uses power series.
Definition at line 96 of file interpr6.cxx.
References fHalfMachEps, nCount, and SetError().
|
static |
Definition at line 3867 of file interpr4.cxx.
Referenced by ScTokenArray::CheckToken(), ScModelObj::disableAutomaticDeviceSelection(), ScModelObj::enableAutomaticDeviceSelection(), ScModelObj::enableOpenCL(), sc::FormulaGroupInterpreter::getStatic(), ScFormulaCell::InterpretFormulaGroup(), and sc::FormulaGroupInterpreter::MergeCalcConfig().
|
private |
Calculates a value of the hypergeometric distribution.
The algorithm is designed to avoid unnecessary multiplications and division by expanding all factorial elements (9 of them). It is done by excluding those ranges that overlap in the numerator and the denominator. This allows for a fast calculation for large values which would otherwise cause an overflow in the intermediate values.
Definition at line 1897 of file interpr3.cxx.
References lcl_PutFactorialElements().
|
private |
if GetDouble() not within int16 limits sets nGlobalError and returns SAL_MAX_INT16
Definition at line 2197 of file interpr4.cxx.
|
private |
if GetDouble() not within int32 limits sets nGlobalError and returns SAL_MAX_INT32
Definition at line 2183 of file interpr4.cxx.
|
private |
if GetDoubleWithDefault() not within int32 limits sets nGlobalError and returns SAL_MAX_INT32
Definition at line 2188 of file interpr4.cxx.
|
staticprivate |
Definition at line 830 of file interpr3.cxx.
References lcl_getLanczosSum(), and log.
|
staticprivate |
You must ensure fZ>0.
Definition at line 626 of file interpr3.cxx.
References lcl_GetGammaHelper(), lcl_GetLogGammaHelper(), and log.
|
private |
You must ensure fA>0.0 && fX>0.0)
Definition at line 119 of file interpr6.cxx.
References GetGammaContFraction, GetGammaSeries, GetLogGamma, and log.
|
private |
Definition at line 478 of file interpr5.cxx.
References aStr, CreateDoubleError(), GetString(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::hasNumeric(), p, SetError(), formula::svDouble, formula::svDoubleRef, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svMissing, formula::svSingleRef, and formula::svString.
Referenced by ScConcat_MS(), ScForecast_Ets(), and ScTextJoin_MS().
|
private |
Definition at line 592 of file interpr5.cxx.
References ScRange::GetVars(), ScAddress::INITIALIZE_INVALID, and formula::svRefList.
|
private |
Definition at line 3379 of file interpr3.cxx.
References SetError().
ScMatrixRef ScInterpreter::GetNewMat | ( | SCSIZE | nC, |
SCSIZE | nR, | ||
bool | bEmpty = false |
||
) |
Definition at line 298 of file interpr5.cxx.
Referenced by lcl_MatrixCalculation(), and ScForecast_Ets().
ScMatrixRef ScInterpreter::GetNewMat | ( | SCSIZE | nC, |
SCSIZE | nR, | ||
const std::vector< double > & | rValues | ||
) |
Definition at line 309 of file interpr5.cxx.
|
private |
Definition at line 3942 of file interpr3.cxx.
References ScRange::aEnd, ScRange::aStart, aStr, ScAddress::Col(), CreateDoubleError(), ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasError(), ScRefCellValue::hasNumeric(), i, IgnoreErrVal, nCount, ScRange::PutInOrder(), ScAddress::Row(), SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, and formula::svSingleRef.
|
inline |
Definition at line 1029 of file interpre.hxx.
Referenced by ScFormulaCell::InterpretTail().
|
staticprivate |
Definition at line 3855 of file interpr4.cxx.
|
static |
Definition at line 3413 of file interpr3.cxx.
References nIndex.
|
private |
Definition at line 3437 of file interpr3.cxx.
References nIndex, and SetError().
|
staticprivate |
Definition at line 3771 of file interpr3.cxx.
|
private |
Definition at line 615 of file interpr5.cxx.
References sc::RangeMatrix::mpMat, and formula::svMatrix.
|
private |
Raw stack type without default replacements.
Definition at line 1931 of file interpr4.cxx.
|
private |
Check for array of references to determine the maximum size of a return column vector if in array context.
Definition at line 469 of file interpr6.cxx.
References ScRefListToken::GetRefList(), ScRefListToken::IsArrayResult(), and formula::svRefList.
|
inline |
Definition at line 1030 of file interpre.hxx.
References xResult.
Referenced by ScFormulaCell::InterpretTail().
|
inline |
Definition at line 1027 of file interpre.hxx.
Referenced by ScFormulaCell::InterpretTail().
|
inline |
Definition at line 1032 of file interpre.hxx.
References nRetFmtIndex.
Referenced by ScFormulaCell::InterpretTail().
|
inline |
Definition at line 1031 of file interpre.hxx.
References nRetFmtType.
Referenced by ScFormulaCell::InterpretTail().
|
private |
Definition at line 4125 of file interpr3.cxx.
References MAX_COUNT_DOUBLE_FOR_SORT(), and SetError().
|
private |
Stack type with replacement of defaults, e.g. svMissing and formula::svEmptyCell will result in formula::svDouble.
Definition at line 1946 of file interpr4.cxx.
Referenced by ScConcat_MS(), ScSwitch_MS(), and ScTextJoin_MS().
Definition at line 1963 of file interpr4.cxx.
|
private |
Definition at line 2302 of file interpr4.cxx.
Referenced by ScConcat_MS(), ScSwitch_MS(), and ScTextJoin_MS().
|
private |
Definition at line 2464 of file interpr4.cxx.
|
private |
Definition at line 2381 of file interpr4.cxx.
|
inlineprivate |
Obtain a sal_Int32 suitable as string position or length argument.
Returns -1 if the number is Inf or NaN or less than 0 or greater than some implementation defined max string length. In these cases also sets nGlobalError to FormulaError::IllegalArgument, if not already set.
Definition at line 1111 of file interpre.hxx.
References CheckStringPositionArgument(), GetDouble(), and SetError().
const svl::SharedString & ScInterpreter::GetStringResult | ( | ) | const |
Definition at line 4750 of file interpr4.cxx.
Referenced by ScFormulaCell::InterpretTail().
|
private |
Definition at line 3930 of file interpr1.cxx.
References assert(), CreateDoubleError(), ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), ScRefCellValue::hasString(), i, IgnoreErrVal, ScRefListToken::IsArrayResult(), n, p, SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, formula::svString, swap(), and values.
|
private |
Definition at line 645 of file interpr3.cxx.
References GetBeta, GetBetaDist, R, SetError(), and X.
Referenced by ScTDistFunction::GetValue().
|
private |
Definition at line 2290 of file interpr3.cxx.
References lcl_IterateInverse(), and SetError().
|
inlineprivate |
Definition at line 1054 of file interpre.hxx.
References CreateTokenMatrixMap(), and pTokenMatrixMap.
Definition at line 3857 of file interpr3.cxx.
References ScRange::aEnd, assert(), ScRange::aStart, ScAddress::Col(), ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), i, nCount, ScAddress::Row(), SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svSingleRef, and ScAddress::Tab().
|
private |
if GetDouble() not within uint32 limits sets nGlobalError and returns SAL_MAX_UINT32
Definition at line 2226 of file interpr4.cxx.
|
private |
You must ensure fA>0.0 && fX>0.0)
Definition at line 130 of file interpr6.cxx.
References GetGammaContFraction, GetGammaSeries, GetLogGamma, and log.
|
private |
Only ValueCell, formula cells already store the result rounded.
Definition at line 145 of file interpr4.cxx.
References mrContext.
|
inline |
Definition at line 185 of file interpre.hxx.
References meVolatileType.
Referenced by ScFormulaCell::HandleStuffAfterParallelCalculation(), and ScFormulaCell::InterpretTail().
|
private |
Definition at line 346 of file interpr2.cxx.
|
private |
Definition at line 386 of file interpr2.cxx.
References FRIDAY, svl::SharedString::getLength(), svl::SharedString::getString(), i, svl::SharedString::isEmpty(), MONDAY, SATURDAY, SUNDAY, svDoubleRef, svExternalDoubleRef, THURSDAY, TUESDAY, and WEDNESDAY.
|
static |
Definition at line 3878 of file interpr4.cxx.
Referenced by ScGlobal::Clear().
|
inlineprivate |
If nGlobalError is set push formula::FormulaErrorToken.
If nGlobalError is not set do nothing. Used in PushTempToken() and alike to simplify handling.
Definition at line 305 of file interpre.hxx.
References PushTempTokenWithoutError().
void ScInterpreter::Init | ( | ScFormulaCell * | pCell, |
const ScAddress & | rPos, | ||
ScTokenArray & | rTokArray | ||
) |
Definition at line 3831 of file interpr4.cxx.
Referenced by ScFormulaCell::HandleStuffAfterParallelCalculation(), and ScFormulaCell::InterpretTail().
|
static |
Definition at line 197 of file interpr3.cxx.
StackVar ScInterpreter::Interpret | ( | ) |
Definition at line 3939 of file interpr4.cxx.
Referenced by ScFormulaCell::InterpretInvariantFormulaGroup(), and ScFormulaCell::InterpretTail().
|
private |
Definition at line 3017 of file interpr1.cxx.
References CELLTYPE_FORMULA, CELLTYPE_VALUE, ScFormulaCell::IsValue(), ScRefCellValue::meType, ScRefCellValue::mpFormula, SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
inlineprivate |
Definition at line 1035 of file interpre.hxx.
References formula::FormulaToken::IsInForceArray().
Referenced by MatrixJumpConditionToMatrix(), and MatrixParameterConversion().
|
private |
Definition at line 1926 of file interpr4.cxx.
|
private |
Definition at line 2020 of file interpr1.cxx.
References CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_STRING, ScFormulaCell::IsEmpty(), ScFormulaCell::IsValue(), ScRefCellValue::meType, ScRefCellValue::mpFormula, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 104 of file interpr4.cxx.
References ScRange::aEnd, ScInterpreterTableOpParams::aOld1, ScInterpreterTableOpParams::aOld2, ScRange::aStart, i, and ScRange::In().
|
private |
Definition at line 511 of file interpr6.cxx.
References assert(), aStr, CELLTYPE_NONE, eType, sc::RangeColumnSpanSet::executeColumnAction(), ScCellIterator::first(), ScValueIterator::GetCurNumFmtInfo(), ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScInterpreterContext::GetNumberFormatType(), ScRefCellValue::hasNumeric(), ScRefCellValue::hasString(), ifAVERAGE, ifCOUNT, ifCOUNT2, ifPRODUCT, ifSUM, ifSUMSQ, IgnoreErrVal, IgnoreFiltered, IgnoreHidden, IgnoreNestedStAg, ScRefListToken::IsArrayResult(), ScRefCellValue::isEmpty(), ScCellIterator::isEmpty(), IterateMatrix(), lcl_IterResult(), ScExternalRefCache::CellFormat::mbIsSet, ScRefCellValue::meType, ScExternalRefCache::CellFormat::mnIndex, ScExternalRefCache::CellFormat::mnType, nCount, ScCellIterator::next(), NONE, ocAggregate, ocSubTotal, ScAddress::Row(), SetError(), ScValueIterator::SetInterpreterContext(), formula::svDouble, formula::svDoubleRef, formula::svEmptyCell, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, formula::svString, and ScAddress::Tab().
|
private |
Definition at line 5191 of file interpr1.cxx.
References ScQueryEntry::bDoQuery, ScQueryEntry::ByString, ScQueryEntry::ByValue, CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_STRING, CELLTYPE_VALUE, sc::div(), ScQueryEntry::eOp, ScQueryParamBase::eSearchType, ScQueryParamBase::FillInExcelSyntax(), ScQueryCellIterator::GetCol(), ScQueryParamBase::GetEntry(), ScQueryCellIterator::GetFirst(), ScQueryCellIterator::GetNext(), ScQueryEntry::GetQueryItem(), ScQueryCellIterator::GetRow(), svl::SharedString::getString(), GetString(), ScRange::GetVars(), ScRefCellValue::hasNumeric(), ifAVERAGEIF, ifSUMIF, ScMatrix::IsRealStringType(), ScFormulaCell::IsValue(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScRefCellValue::meType, ScQueryEntry::Item::mfVal, ScRefCellValue::mpFormula, mrContext, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryEntry::nField, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, nType, SC_EQUAL, ScQueryCellIterator::SetAdvanceQueryParamEntryField(), ScAddress::SetCol(), SetError(), ScAddress::SetRow(), ScAddress::SetTab(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 5828 of file interpr1.cxx.
References ScRange::aEnd, assert(), ScRange::aStart, ScQueryEntry::bDoQuery, ScQueryEntry::ByString, ScQueryEntry::ByValue, CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_STRING, CELLTYPE_VALUE, ScAddress::Col(), ScQueryEntry::eOp, ScQueryParamBase::eSearchType, ScQueryParamBase::FillInExcelSyntax(), ScQueryCellIterator::GetCol(), GetDoubleErrorValue(), formula::FormulaToken::GetDoubleRef(), ScQueryParamBase::GetEntry(), ScQueryCellIterator::GetFirst(), ScQueryCellIterator::GetNext(), ScQueryEntry::GetQueryItem(), ScQueryCellIterator::GetRow(), GetString(), svl::SharedString::getString(), formula::FormulaToken::GetType(), ScRange::GetVars(), ScRefCellValue::hasNumeric(), ScRefListToken::IsArrayResult(), ScComplexRefData::IsDeleted(), ScMatrix::IsRealStringType(), ScFormulaCell::IsValue(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScRefCellValue::meType, sc::ParamIfsResult::mfCount, sc::ParamIfsResult::mfMax, sc::ParamIfsResult::mfMem, sc::ParamIfsResult::mfMin, sc::ParamIfsResult::mfSum, ScQueryEntry::Item::mfVal, ScRefCellValue::mpFormula, mrContext, n, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryEntry::nField, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, nType, p, ScAddress::Row(), SC_EQUAL, ScQueryCellIterator::SetAdvanceQueryParamEntryField(), ScAddress::SetCol(), ScAddress::SetRow(), ScAddress::SetTab(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, formula::svString, swap(), and ScAddress::Tab().
|
private |
Definition at line 536 of file interpr1.cxx.
References ScRange::aEnd, assert(), ScRange::aStart, aStr, ScAddress::Col(), CreateDoubleError(), GetDoubleErrorValue(), ScParameterClassification::GetParameterType(), GetString(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::hasNumeric(), i, formula::FormulaCompiler::IsOpCodeJumpCommand(), lcl_AdjustJumpMatrix(), lcl_storeJumpMatResult(), o3tl::make_unsigned(), ScComplexRefData::Ref1, ScComplexRefData::Ref2, ScAddress::Row(), SAL_MAX_UINT16, ScAddress::SetCol(), SetError(), ScAddress::SetRow(), formula::svDouble, formula::svDoubleRef, formula::svEmptyCell, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 10032 of file interpr1.cxx.
References ScLookupCache::CRITERIA_DIFFERENT, ScLookupCache::FOUND, ScQueryParamBase::GetEntry(), ScLookupCache::insert(), ScLookupCache::QueryCriteria::isEmptyStringQuery(), lcl_getPrevRowWithEmptyValueLookup(), lcl_LookupQuery(), ScLookupCache::lookup(), mrContext, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryEntry::nField, ScLookupCache::NOT_AVAILABLE, ScLookupCache::NOT_CACHED, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, ScQueryParamTable::nTab, and ScAddress::SetRow().
|
private |
Definition at line 283 of file interpr5.cxx.
References SetError().
|
private |
Definition at line 1230 of file interpr5.cxx.
References lcl_GetMinExtent().
|
inlineprivate |
Definition at line 1040 of file interpre.hxx.
References ConvertMatrixJumpConditionToMatrix(), and IsInArrayContext().
|
inlineprivate |
Definition at line 1046 of file interpre.hxx.
References ConvertMatrixParameters(), formula::FormulaToken::GetOpCode(), ScParameterClassification::HasForceArray(), and IsInArrayContext().
|
static |
Could string be a regular expression? if regularExpressions are disabled the function returns false regardless of the string content.
Definition at line 9918 of file interpr1.cxx.
|
static |
Could string be a wildcard (*,?,~) expression? If wildcards are disabled the function returns false regardless of the string content.
Definition at line 9938 of file interpr1.cxx.
|
staticprivate |
Definition at line 753 of file interpr5.cxx.
References i.
|
private |
Merge global and document specific settings.
Definition at line 3872 of file interpr4.cxx.
|
inlineprivate |
Definition at line 1061 of file interpre.hxx.
References PushIllegalParameter(), and PushParameterExpected().
Referenced by ScForecast_Ets().
|
inlineprivate |
Definition at line 1072 of file interpre.hxx.
References PushIllegalParameter(), and PushParameterExpected().
|
inlineprivate |
Definition at line 1083 of file interpre.hxx.
References PushParameterExpected().
Referenced by ScSwitch_MS(), and ScTextJoin_MS().
|
static |
Definition at line 192 of file interpr3.cxx.
|
private |
Definition at line 738 of file interpr4.cxx.
Referenced by ScIfs_MS(), and ScSwitch_MS().
|
private |
Definition at line 959 of file interpr4.cxx.
|
private |
Definition at line 775 of file interpr4.cxx.
If formula::StackVar formula::svDoubleRef pop ScDoubleRefToken and return values of ScComplexRefData.
Else if StackVar svRefList return values of the ScComplexRefData where rRefInList is pointing to. rRefInList is incremented. If rRefInList was the last element in list pop ScRefListToken and set rRefInList to 0, else rParam is incremented (!) to allow usage as in while(nParamCount–) PopDoubleRef(aRange,nParamCount,nRefInList);
Definition at line 1041 of file interpr4.cxx.
Referenced by ScConcat_MS(), and ScTextJoin_MS().
Definition at line 1093 of file interpr4.cxx.
|
private |
Definition at line 1000 of file interpr4.cxx.
|
private |
Definition at line 1316 of file interpr4.cxx.
Referenced by ScSwitch_MS().
|
private |
Definition at line 1338 of file interpr4.cxx.
|
private |
Definition at line 748 of file interpr4.cxx.
Referenced by ScConcat_MS(), ScSwitch_MS(), and ScTextJoin_MS().
|
private |
Definition at line 1194 of file interpr4.cxx.
|
private |
Definition at line 1223 of file interpr4.cxx.
|
private |
Definition at line 1237 of file interpr4.cxx.
|
private |
Definition at line 1115 of file interpr4.cxx.
|
private |
Guarantees that nGlobalError is set if rToken could not be obtained.
Definition at line 1144 of file interpr4.cxx.
|
private |
Guarantees that nGlobalError is set if rToken could not be obtained.
Definition at line 1152 of file interpr4.cxx.
|
private |
Definition at line 1610 of file interpr4.cxx.
|
private |
Definition at line 1642 of file interpr4.cxx.
|
private |
Definition at line 1352 of file interpr4.cxx.
Definition at line 901 of file interpr4.cxx.
Referenced by ScConcat_MS(), and ScTextJoin_MS().
Definition at line 892 of file interpr4.cxx.
|
private |
Definition at line 807 of file interpr4.cxx.
|
private |
Definition at line 760 of file interpr4.cxx.
Referenced by ScIfs_MS(), and ScSwitch_MS().
|
private |
Does substitute with formula::FormulaErrorToken in case nGlobalError is set and the token passed is not formula::FormulaErrorToken.
Increments RefCount of the original token if not substituted.
Definition at line 594 of file interpr4.cxx.
|
private |
Obtain cell result / content from address and push as temp token.
bDisplayEmptyAsString | is passed to ScEmptyCell in case of an empty cell result. |
pRetTypeExpr | |
pRetIndexExpr | Obtain number format and type if both, type and index pointer, are not NULL. |
bFinalResult | If TRUE, only a standard FormulaDoubleToken is pushed. If FALSE, PushDouble() is used that may push either a FormulaDoubleToken or a FormulaTypedDoubleToken. |
Definition at line 681 of file interpr4.cxx.
|
private |
Definition at line 1769 of file interpr4.cxx.
Referenced by ScForecast_Ets().
|
private |
Definition at line 1814 of file interpr4.cxx.
|
private |
Definition at line 1860 of file interpr4.cxx.
|
private |
Definition at line 1895 of file interpr4.cxx.
Referenced by ScForecast_Ets(), ScIfs_MS(), and ScSwitch_MS().
|
private |
Definition at line 1837 of file interpr4.cxx.
|
private |
Definition at line 1825 of file interpr4.cxx.
|
private |
Definition at line 1911 of file interpr4.cxx.
Referenced by ScForecast_Ets(), ScSwitch_MS(), and ScTextJoin_MS().
|
private |
Definition at line 1906 of file interpr4.cxx.
Referenced by MustHaveParamCount(), and ScForecast_Ets().
Definition at line 1776 of file interpr4.cxx.
|
private |
Definition at line 1870 of file interpr4.cxx.
Referenced by ScForecast_Ets().
|
private |
Definition at line 1884 of file interpr4.cxx.
|
private |
Definition at line 1916 of file interpr4.cxx.
Referenced by ScIfs_MS(), and ScSwitch_MS().
|
private |
Definition at line 1921 of file interpr4.cxx.
Referenced by ScIfs_MS().
|
private |
Definition at line 1901 of file interpr4.cxx.
Referenced by MustHaveParamCount(), MustHaveParamCountMin(), ScForecast_Ets(), and ScIfs_MS().
Definition at line 1804 of file interpr4.cxx.
|
private |
Definition at line 1850 of file interpr4.cxx.
|
private |
Definition at line 1793 of file interpr4.cxx.
Referenced by ScConcat_MS(), and ScTextJoin_MS().
|
private |
Definition at line 1798 of file interpr4.cxx.
|
private |
Definition at line 1782 of file interpr4.cxx.
|
private |
Does substitute with formula::FormulaErrorToken in case nGlobalError is set and the token passed is not formula::FormulaErrorToken.
Increments RefCount of the original token if not substituted. ATTENTION! The token had to be allocated with `new' and must not be used after this call if no RefCount was set because possibly it gets immediately deleted in case of a FormulaError::StackOverflow or if substituted with formula::FormulaErrorToken!
Definition at line 612 of file interpr4.cxx.
|
private |
Does not substitute with formula::FormulaErrorToken in case nGlobalError is set.
Used to push tokens from within PushTempToken() or tokens that are already explicit formula::FormulaErrorToken. Increments RefCount. ATTENTION! The token had to be allocated with `new' and must not be used after this call if no RefCount was set because possibly it gets immediately decremented again and thus deleted in case of a FormulaError::StackOverflow!
Definition at line 641 of file interpr4.cxx.
Referenced by IfErrorPushError().
|
private |
Pushes the token or substitutes with formula::FormulaErrorToken in case nGlobalError is set and the token passed is not formula::FormulaErrorToken.
Increments RefCount of the original token if not substituted.
Definition at line 661 of file interpr4.cxx.
Referenced by ScIfs_MS(), and ScSwitch_MS().
|
private |
Does not substitute with formula::FormulaErrorToken in case nGlobalError is set.
Used to push RPN tokens or from within Push() or tokens that are already explicit formula::FormulaErrorToken. Increments RefCount.
Definition at line 578 of file interpr4.cxx.
|
private |
Definition at line 1141 of file interpr1.cxx.
References sc::CompareOptions::aQueryEntry, ScQueryEntry::ByString, ScQueryEntry::eOp, ScQueryEntry::GetQueryItem(), svl::SharedString::getString(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScQueryEntry::Item::mfVal, and SetError().
|
private |
Definition at line 1682 of file interpr4.cxx.
|
staticprivate |
Definition at line 4192 of file interpr3.cxx.
References i, lcl_QuickSort(), n, and comphelper::rng::uniform_size_distribution().
|
staticprivate |
Definition at line 2026 of file interpr2.cxx.
References nCount, and SCdEpsilon.
Definition at line 85 of file interpr4.cxx.
References ScInterpreterTableOpParams::aNew1, ScInterpreterTableOpParams::aNew2, ScInterpreterTableOpParams::aOld1, ScInterpreterTableOpParams::aOld2, and i.
Definition at line 1977 of file interpr4.cxx.
Referenced by ScConcat_MS(), ScIfs_MS(), ScSwitch_MS(), and ScTextJoin_MS().
|
private |
Definition at line 967 of file interpr2.cxx.
|
staticprivate |
Definition at line 1017 of file interpr2.cxx.
|
private |
Definition at line 957 of file interpr2.cxx.
|
private |
Definition at line 1274 of file interpr5.cxx.
|
private |
Definition at line 8272 of file interpr1.cxx.
References ScCompiler::CheckTabQuotes(), COL_ABS, COL_VALID, formula::FormulaGrammar::CONV_OOO, formula::FormulaGrammar::CONV_UNSPECIFIED, formula::FormulaGrammar::CONV_XL_A1, formula::FormulaGrammar::CONV_XL_R1C1, ScAddress::Format(), ScCompiler::GetDocTabPos(), GetString(), n, nPos, ROW_ABS, ROW_VALID, u, VALID, and ZERO.
|
private |
Definition at line 7563 of file interpr1.cxx.
References AGGREGATE_FUNC_AVE, AGGREGATE_FUNC_CNT, AGGREGATE_FUNC_CNT2, AGGREGATE_FUNC_LARGE, AGGREGATE_FUNC_MAX, AGGREGATE_FUNC_MEDIAN, AGGREGATE_FUNC_MIN, AGGREGATE_FUNC_MODSNGL, AGGREGATE_FUNC_PERCEXC, AGGREGATE_FUNC_PERCINC, AGGREGATE_FUNC_PROD, AGGREGATE_FUNC_QRTEXC, AGGREGATE_FUNC_QRTINC, AGGREGATE_FUNC_SMALL, AGGREGATE_FUNC_STD, AGGREGATE_FUNC_STDP, AGGREGATE_FUNC_SUM, AGGREGATE_FUNC_VAR, AGGREGATE_FUNC_VARP, IgnoreErrVal, IgnoreHidden, IgnoreNestedStAg, NONE, and p.
|
private |
Definition at line 1407 of file interpr5.cxx.
References GetString(), i, and formula::svMatrix.
|
private |
Definition at line 1265 of file interpr1.cxx.
References GetDoubleErrorValue(), ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 3127 of file interpr2.cxx.
References GetString(), lcl_GetArabicValue(), and nValue.
|
private |
Definition at line 1865 of file interpr1.cxx.
|
private |
Definition at line 1905 of file interpr1.cxx.
|
private |
Definition at line 1875 of file interpr1.cxx.
References F_PI2.
|
private |
Definition at line 1923 of file interpr1.cxx.
References log.
|
private |
Definition at line 1860 of file interpr1.cxx.
|
private |
Definition at line 1900 of file interpr1.cxx.
|
private |
Definition at line 1870 of file interpr1.cxx.
|
private |
Definition at line 1258 of file interpr2.cxx.
|
private |
Definition at line 1914 of file interpr1.cxx.
|
private |
Definition at line 8754 of file interpr1.cxx.
References nCount, SetError(), formula::svDoubleRef, formula::svRefList, and formula::svSingleRef.
|
private |
Definition at line 3553 of file interpr1.cxx.
References GetString(), getString(), and lcl_convertIntoHalfWidth().
|
private |
Definition at line 4282 of file interpr3.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), nCount, SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, and formula::svSingleRef.
|
private |
Definition at line 1053 of file interpr6.cxx.
References ifAVERAGE.
|
private |
Definition at line 5626 of file interpr1.cxx.
References ifAVERAGEIF.
|
private |
Definition at line 6510 of file interpr1.cxx.
References sc::div().
|
private |
Definition at line 1277 of file interpr3.cxx.
References GetBetaDist, GetBinomDistPMF, lcl_GetBinomDistRange(), n, p, and x.
|
private |
Definition at line 182 of file interpr3.cxx.
|
private |
Definition at line 3485 of file interpr2.cxx.
References UTF8_TH_0, UTF8_TH_1E6, UTF8_TH_BAHT, UTF8_TH_DOT0, UTF8_TH_MINUS, and UTF8_TH_SATANG.
|
private |
Definition at line 2836 of file interpr2.cxx.
References aBuf, o3tl::convertsToAtMost(), log, p, SAL_MAX_UINT16, SAL_N_ELEMENTS, and void().
|
private |
Definition at line 1033 of file interpr3.cxx.
References GetBetaDist, GetBetaDistPDF, and x.
|
private |
Microsoft version has parameters in different order Also, upper and lowerbound are optional and have default values and different constraints apply.
Basically, function is identical with ScInterpreter::ScBetaDist()
Definition at line 1097 of file interpr3.cxx.
References GetBetaDist, GetBetaDistPDF, and x.
|
private |
Definition at line 2214 of file interpr3.cxx.
References lcl_IterateInverse().
|
private |
Definition at line 1344 of file interpr3.cxx.
References fMachEps, GetBetaDist, GetBinomDistPMF, i, lcl_GetBinomDistRange(), max, n, p, and x.
|
private |
Definition at line 1640 of file interpr1.cxx.
References n2power48.
|
private |
Definition at line 1685 of file interpr1.cxx.
References n2power48.
|
private |
Definition at line 1655 of file interpr1.cxx.
References n2power48.
|
private |
Definition at line 1708 of file interpr1.cxx.
References n2power48.
|
private |
Definition at line 1670 of file interpr1.cxx.
References n2power48.
|
private |
tdf69552 ODFF1.2 function CEILING and Excel function CEILING.MATH In essence, the difference between the two is that ODFF-CEILING needs to have arguments value and significance of the same sign and with CEILING.MATH the sign of argument significance is irrevelevant.
This is why ODFF-CEILING is exported to Excel as CEILING.MATH and CEILING.MATH is imported in Calc as CEILING.MATH
Definition at line 1059 of file interpr2.cxx.
|
private |
Definition at line 1099 of file interpr2.cxx.
|
private |
Definition at line 1117 of file interpr2.cxx.
|
private |
Definition at line 2239 of file interpr1.cxx.
References aBuf, ADDR_ABS, ADDR_ABS_3D, ScRange::aStart, aStr, ATTR_HOR_JUSTIFY(), ATTR_PROTECTION(), ScAddress::Col(), COL_ABS, COL_VALID, ScAddress::Format(), OutputDevice::GetFont(), ScGlobal::GetLocale(), INetURLObject::GetMainURL(), OutputDevice::GetMapMode(), SfxObjectShell::GetMedium(), ScProtectionAttr::GetProtection(), GetString(), OutputDevice::GetTextWidth(), SfxMedium::GetURLObject(), ScRefCellValue::hasNumeric(), ScRefCellValue::hasString(), lcl_FormatHasNegColor(), lcl_FormatHasOpenPar(), ocCell, ScAddress::Row(), ROW_ABS, ROW_VALID, SC_AUTOCOL_BLACK, SetError(), OutputDevice::SetFont(), OutputDevice::SetMapMode(), formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svSingleRef, ScAddress::Tab(), ScCellKeywordTranslator::transKeyword(), INetURLObject::Unambiguous, and VALUE.
|
private |
Definition at line 2427 of file interpr1.cxx.
References aBuf, ScTokenArray::AddExternalSingleReference(), aStr, formula::FormulaCompiler::CreateStringFromTokenArray(), ScExternalRefManager::getCacheTable(), ScGlobal::GetEmptyOUString(), ScGlobal::GetErrorString(), ScExternalRefManager::getExternalFileName(), ScGlobal::GetLocale(), GetString(), formula::FormulaGrammar::GRAM_ODFF_A1, lcl_FormatHasNegColor(), lcl_FormatHasOpenPar(), ScExternalRefCache::CellFormat::mbIsSet, ScExternalRefCache::CellFormat::mnIndex, ocCell, p, ScSingleRefData::SetAbsTab(), SetError(), formula::svDouble, formula::svEmptyCell, formula::svError, formula::svString, and ScCellKeywordTranslator::transKeyword().
|
private |
Definition at line 3481 of file interpr1.cxx.
References aStr.
|
private |
Definition at line 1743 of file interpr3.cxx.
References GetChiDist.
|
private |
Definition at line 2370 of file interpr3.cxx.
References lcl_IterateInverse(), and SetError().
|
private |
Definition at line 724 of file interpr3.cxx.
References GetChiSqDistCDF, and GetChiSqDistPDF.
|
private |
Definition at line 747 of file interpr3.cxx.
References GetChiSqDistCDF, and GetChiSqDistPDF.
|
private |
Definition at line 2405 of file interpr3.cxx.
References lcl_IterateInverse(), and SetError().
|
private |
Definition at line 2797 of file interpr3.cxx.
References sc::divide(), GetChiDist, and i.
|
private |
Definition at line 407 of file interpr1.cxx.
References CreateDoubleError(), and formula::svMatrix.
|
private |
Definition at line 3450 of file interpr1.cxx.
References aStr, GetString(), i, and lcl_ScInterpreter_IsPrintable().
|
private |
Definition at line 3461 of file interpr1.cxx.
References aStr, GetString(), and OUStringToOString().
|
private |
Definition at line 516 of file interpr7.cxx.
|
private |
Definition at line 3670 of file interpr4.cxx.
|
private |
Definition at line 4374 of file interpr1.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), i, SetError(), formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svSingleRef, ScSingleRefData::toAbs(), and ScComplexRefData::toAbs().
|
private |
Definition at line 4213 of file interpr1.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), SetError(), formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svSingleRef, ScAddress::Tab(), and ScComplexRefData::toAbs().
|
private |
Definition at line 1170 of file interpr3.cxx.
References n.
|
private |
Definition at line 1183 of file interpr3.cxx.
References n.
|
private |
Definition at line 9761 of file interpr1.cxx.
References aStr, and GetString().
|
private |
Definition at line 1378 of file interpr8.cxx.
References CheckStringResultLen(), GetByte(), GetCellString(), GetMatrix(), GetStackType(), svl::SharedString::getString(), GetString(), ScRange::GetVars(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::isEmpty(), mrDoc, nGlobalError, PopDoubleRef(), PopError(), PopSingleRef(), PushString(), ReverseStack(), ScAddress::SetCol(), SetError(), ScAddress::SetRow(), ScAddress::SetTab(), svDouble, svDoubleRef, svExternalDoubleRef, svExternalSingleRef, svMatrix, svRefList, svSingleRef, and svString.
|
private |
Definition at line 2425 of file interpr3.cxx.
|
private |
Definition at line 2439 of file interpr3.cxx.
References n.
|
private |
Definition at line 3018 of file interpr2.cxx.
References GetString(), ScGlobal::GetUnitConverter(), and GetValue.
|
private |
Definition at line 4514 of file interpr3.cxx.
|
private |
Definition at line 1845 of file interpr1.cxx.
|
private |
Definition at line 1932 of file interpr1.cxx.
|
private |
Definition at line 1942 of file interpr1.cxx.
|
private |
Definition at line 1885 of file interpr1.cxx.
|
private |
Definition at line 1855 of file interpr1.cxx.
|
private |
Definition at line 1895 of file interpr1.cxx.
|
private |
Definition at line 1058 of file interpr6.cxx.
References ifCOUNT.
|
private |
Definition at line 1063 of file interpr6.cxx.
References ifCOUNT2.
|
private |
Definition at line 5111 of file interpr1.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), ScCellIterator::first(), ScCellIterator::getRefCellValue(), nCount, ScCellIterator::next(), ScAddress::Row(), SetError(), formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and ScAddress::Tab().
|
private |
Definition at line 5631 of file interpr1.cxx.
References ScQueryEntry::bDoQuery, ScQueryEntry::ByString, ScQueryEntry::ByValue, CELLTYPE_EDIT, CELLTYPE_FORMULA, CELLTYPE_STRING, CELLTYPE_VALUE, ScQueryEntry::eOp, ScQueryParamBase::eSearchType, ScQueryParamBase::FillInExcelSyntax(), ScCountIfCellIterator::GetCount(), ScQueryParamBase::GetEntry(), ScQueryEntry::GetQueryItem(), GetString(), svl::SharedString::getString(), ScRange::GetVars(), ScMatrix::IsRealStringType(), ScFormulaCell::IsValue(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScRefCellValue::meType, ScQueryEntry::Item::mfVal, ScRefCellValue::mpFormula, mrContext, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryEntry::nField, nIndex, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, nType, SC_EQUAL, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 6527 of file interpr1.cxx.
|
private |
Definition at line 4520 of file interpr3.cxx.
|
private |
Definition at line 4525 of file interpr3.cxx.
|
private |
Definition at line 1408 of file interpr3.cxx.
|
private |
Definition at line 2260 of file interpr2.cxx.
References i.
|
private |
Definition at line 2302 of file interpr2.cxx.
References i.
|
private |
Definition at line 8790 of file interpr1.cxx.
References aStr, ScGlobal::eLnge, nIndex, and SetError().
|
private |
Definition at line 2642 of file interpr2.cxx.
|
private |
Definition at line 1711 of file interpr2.cxx.
References i.
|
private |
Definition at line 3653 of file interpr4.cxx.
|
private |
Definition at line 7963 of file interpr1.cxx.
References ifAVERAGE.
|
private |
Definition at line 7875 of file interpr1.cxx.
References ScDBQueryDataIterator::GetFirst(), ScQueryCellIterator::GetFirst(), ScDBQueryDataIterator::GetNext(), ScQueryCellIterator::GetNext(), ScDBQueryParamBase::INTERNAL, ScDBQueryDataIterator::Value::mnError, ScDBQueryParamBase::mnField, mrContext, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, nCount, ScQueryParamTable::nTab, p, and SetError().
|
private |
Definition at line 7933 of file interpr1.cxx.
References ScDBQueryDataIterator::GetFirst(), ScDBQueryDataIterator::GetNext(), ScDBQueryDataIterator::Value::mnError, mrContext, nCount, and SetError().
|
private |
Definition at line 2474 of file interpr4.cxx.
|
private |
Definition at line 7968 of file interpr1.cxx.
References ifMAX.
|
private |
Definition at line 7973 of file interpr1.cxx.
References ifMIN.
|
private |
Definition at line 7978 of file interpr1.cxx.
References ifPRODUCT.
|
private |
Definition at line 8025 of file interpr1.cxx.
|
private |
Definition at line 8032 of file interpr1.cxx.
|
private |
Definition at line 7870 of file interpr1.cxx.
References ifSUM.
|
private |
Definition at line 8039 of file interpr1.cxx.
|
private |
Definition at line 8046 of file interpr1.cxx.
|
private |
Definition at line 1688 of file interpr2.cxx.
References ScGetDDB.
|
private |
Definition at line 2721 of file interpr2.cxx.
References ScMatrix::GetDimensions(), ScDdeLink::GetResult(), GetString(), SfxBindings::Invalidate(), lcl_GetDdeLink(), ScMatrix::MatCopy(), pLink, SAL_MAX_UINT8, SC_DDE_DEFAULT, SC_DDE_TEXT, and ScDdeLink::TryUpdate().
|
private |
Definition at line 450 of file interpr7.cxx.
References sc::datastream_get_time(), ScDPCollection::GetCount(), GetString(), sc::Import, p, sc::Recalc, and sc::Render.
|
private |
Definition at line 2962 of file interpr2.cxx.
References aStr, GetString(), n, and p.
|
private |
Definition at line 1830 of file interpr1.cxx.
References basegfx::rad2deg().
|
private |
Definition at line 4440 of file interpr3.cxx.
|
private |
Definition at line 1580 of file interpr5.cxx.
References sc::div(), and formula::svMatrix.
|
private |
|
private |
Definition at line 2345 of file interpr2.cxx.
|
private |
Definition at line 730 of file interpr5.cxx.
References ScMatrix::IsSizeAllocatable().
|
private |
Returns a string in which all non-alphanumeric characters except stroke and underscore (-_) have been replaced with a percent (%) sign followed by hex digits.
It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type and as per RFC 3986.
Definition at line 413 of file interpr7.cxx.
References aStr, GetString(), and i.
|
private |
Definition at line 1163 of file interpr1.cxx.
References naturalsort::Compare(), sc::RangeMatrix::mpMat, SC_EQUAL, and formula::svMatrix.
|
private |
Definition at line 496 of file interpr7.cxx.
References x.
|
private |
Definition at line 506 of file interpr7.cxx.
References x.
|
private |
Definition at line 9848 of file interpr1.cxx.
|
private |
Definition at line 9862 of file interpr1.cxx.
|
private |
Definition at line 3313 of file interpr2.cxx.
References GetString(), and lclConvertMoney().
|
private |
Definition at line 1231 of file interpr2.cxx.
|
private |
Definition at line 8974 of file interpr1.cxx.
References svl::SharedString::getData(), and GetString().
|
private |
Definition at line 1952 of file interpr1.cxx.
|
private |
Definition at line 1617 of file interpr3.cxx.
References x.
|
private |
Definition at line 2509 of file interpr4.cxx.
|
private |
Definition at line 1161 of file interpr3.cxx.
|
private |
Definition at line 1824 of file interpr1.cxx.
|
private |
Definition at line 1691 of file interpr3.cxx.
References GetFDist.
|
private |
Definition at line 1706 of file interpr3.cxx.
|
private |
Definition at line 39 of file interpr7.cxx.
References ScMatrix::GetDimensions(), GetString(), ns, OUStringToOString(), and formula::svMatrix.
|
private |
Definition at line 8941 of file interpr1.cxx.
References GetString(), getString(), and nPos.
|
private |
Definition at line 9212 of file interpr1.cxx.
References aBuf, aStr, getLengthB(), GetString(), lcl_getLengthB(), lcl_RightB(), and nPos.
|
private |
Definition at line 2314 of file interpr3.cxx.
References lcl_IterateInverse(), and SetError().
|
private |
Definition at line 2335 of file interpr3.cxx.
References lcl_IterateInverse(), and SetError().
|
private |
Definition at line 1147 of file interpr3.cxx.
|
private |
Definition at line 1156 of file interpr3.cxx.
|
private |
Definition at line 8885 of file interpr1.cxx.
References aStr, ScGlobal::eLnge, and nIndex.
|
private |
tdf69552 ODFF1.2 function FLOOR and Excel function FLOOR.MATH In essence, the difference between the two is that ODFF-FLOOR needs to have arguments value and significance of the same sign and with FLOOR.MATH the sign of argument significance is irrevelevant.
This is why ODFF-FLOOR is exported to Excel as FLOOR.MATH and FLOOR.MATH is imported in Calc as FLOOR.MATH
Definition at line 1147 of file interpr2.cxx.
|
private |
Definition at line 1187 of file interpr2.cxx.
|
private |
Definition at line 1208 of file interpr2.cxx.
|
private |
Definition at line 4731 of file interpr3.cxx.
References i.
Definition at line 1171 of file interpr8.cxx.
References etsAdd, etsMult, etsPIAdd, etsPIMult, etsSeason, etsStatAdd, etsStatMult, GetByte(), GetDoubleWithDefault(), GetMatrix(), GetNewMat(), i, MustHaveParamCount(), pFormatter, PushDouble(), PushError(), PushIllegalArgument(), PushIllegalParameter(), PushMatrix(), PushParameterExpected(), and SetError().
|
private |
Definition at line 2760 of file interpr1.cxx.
References CELLTYPE_FORMULA, ScFormulaCell::GetFormula(), formula::FormulaGrammar::GRAM_UNSPECIFIED, i, ScRefCellValue::meType, ScRefCellValue::mpFormula, mrContext, ScAddress::SetCol(), SetError(), ScAddress::SetRow(), formula::svDoubleRef, and formula::svSingleRef.
|
private |
Definition at line 5491 of file interpr3.cxx.
References pOut.
|
private |
Definition at line 1880 of file interpr5.cxx.
|
private |
Definition at line 2732 of file interpr3.cxx.
References GetFDist.
|
private |
Definition at line 1981 of file interpr2.cxx.
|
private |
Definition at line 771 of file interpr3.cxx.
References x.
|
private |
Definition at line 2093 of file interpr3.cxx.
References GetGammaDist, and GetGammaDistPDF.
|
private |
Definition at line 2174 of file interpr3.cxx.
References lcl_IterateInverse(), and SetError().
|
private |
Definition at line 1142 of file interpr3.cxx.
References gauss.
|
private |
Definition at line 129 of file interpr5.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 3036 of file interpr3.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), log, nCount, SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, ui, and x.
|
private |
Definition at line 98 of file interpr2.cxx.
References Date::SYSTEM.
|
private |
Definition at line 106 of file interpr2.cxx.
References tools::Time::GetHour(), tools::Time::GetMin(), tools::Time::GetNanoSec(), tools::Time::GetSec(), tools::Time::hourPerDay, tools::Time::minutePerDay, tools::Time::nanoSecPerDay, tools::Time::secondPerDay, and DateTime::SYSTEM.
|
private |
Definition at line 635 of file interpr2.cxx.
References SetError().
|
private |
Definition at line 775 of file interpr2.cxx.
References Date::AddDays(), GetString(), and md().
|
private |
Definition at line 166 of file interpr2.cxx.
References eType, and GetString().
|
private |
Definition at line 132 of file interpr2.cxx.
References Date::AddDays(), and Date::GetDay().
|
private |
Definition at line 186 of file interpr2.cxx.
References Date::AddDays(), Date::GetDayOfWeek(), and SetError().
|
staticprivate |
Definition at line 1662 of file interpr2.cxx.
|
private |
Definition at line 670 of file interpr2.cxx.
|
private |
Definition at line 680 of file interpr2.cxx.
References Date::AddDays(), Date::GetDay(), Date::GetMonth(), Date::GetYear(), Date::IsLeapYear(), and Date::SetDay().
|
staticprivate |
Definition at line 1964 of file interpr2.cxx.
|
static |
Definition at line 108 of file interpr5.cxx.
|
private |
Definition at line 158 of file interpr2.cxx.
References tools::Time::GetClock().
|
private |
Definition at line 2186 of file interpr2.cxx.
|
private |
Definition at line 295 of file interpr2.cxx.
References Date::AddDays(), and Date::GetWeekOfYear().
|
private |
Definition at line 139 of file interpr2.cxx.
References tools::Time::GetClock().
|
private |
Definition at line 125 of file interpr2.cxx.
References Date::AddDays(), and Date::GetMonth().
|
private |
Definition at line 3552 of file interpr2.cxx.
References ScGlobal::eLnge, ScDPCache::GetLocaleIndependentFormattedString(), ScDPObject::GetPivotData(), GetString(), svl::SharedString::getString(), i, ScDPObject::ParseFilters(), svDoubleRef, and svSingleRef.
|
staticprivate |
Definition at line 1913 of file interpr2.cxx.
|
staticprivate |
Definition at line 1610 of file interpr2.cxx.
|
private |
Definition at line 147 of file interpr2.cxx.
References tools::Time::GetClock().
|
private |
Definition at line 654 of file interpr2.cxx.
References DATE_TIME_FACTOR, tools::Time::secondPerHour, and tools::Time::secondPerMinute.
|
private |
Definition at line 924 of file interpr2.cxx.
References eType, and GetString().
|
private |
Definition at line 245 of file interpr2.cxx.
References Date::AddDays(), Date::GetWeekOfYear(), MONDAY, and SUNDAY.
|
private |
Definition at line 118 of file interpr2.cxx.
References Date::AddDays(), and Date::GetYear().
|
private |
Definition at line 1214 of file interpr1.cxx.
References naturalsort::Compare(), sc::RangeMatrix::mpMat, SC_GREATER, and formula::svMatrix.
|
private |
Definition at line 1248 of file interpr1.cxx.
References naturalsort::Compare(), sc::RangeMatrix::mpMat, SC_GREATER_EQUAL, and formula::svMatrix.
|
private |
Definition at line 2927 of file interpr5.cxx.
|
private |
Definition at line 2915 of file interpr3.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), ScRefCellValue::hasNumeric(), nCount, SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and x.
|
private |
Definition at line 7194 of file interpr1.cxx.
|
private |
Definition at line 3184 of file interpr2.cxx.
References aStr, CreateDoubleError(), Empty, GetString(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::hasNumeric(), ScMatrix::IsRealStringType(), ScMatrix::IsValueType(), SetError(), String, svDouble, svDoubleRef, svEmptyCell, svMatrix, svMissing, svSingleRef, svString, and Value.
Calculates a value of the hypergeometric distribution.
This function has an extra argument bCumulative, which only calculates the non-cumulative distribution and which is optional in Calc and mandatory with Excel's HYPGEOM.DIST()
Definition at line 1858 of file interpr3.cxx.
|
private |
Definition at line 240 of file interpr1.cxx.
References aStr, CreateDoubleError(), lcl_storeJumpMatResult(), formula::svDoubleRef, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 84 of file interpr1.cxx.
References CreateDoubleError(), and formula::svMatrix.
|
private |
Definition at line 1852 of file interpr8.cxx.
References GetBool(), GetByte(), nGlobalError, Pop(), PopToken(), PushError(), PushNA(), PushNoValue(), PushParameterExpected(), PushTokenRef(), and ReverseStack().
|
private |
Definition at line 8536 of file interpr1.cxx.
References ScRange::GetVars(), o3tl::make_unsigned(), SetError(), formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and ScAddress::UNINITIALIZED.
|
private |
Definition at line 8053 of file interpr1.cxx.
References ScRange::aEnd, aName, ScRange::aStart, ScAddress::Col(), ScRefAddress::Col(), formula::FormulaGrammar::CONV_A1_XL_A1, formula::FormulaGrammar::CONV_OOO, formula::FormulaGrammar::CONV_UNSPECIFIED, formula::FormulaGrammar::CONV_XL_A1, formula::FormulaGrammar::CONV_XL_R1C1, ConvertDoubleRef(), ConvertSingleRef(), ScDBCollection::NamedDBs::findByUpperName(), ScGlobal::FindUnquoted(), ScDBData::GetArea(), ScGlobal::getCharClassPtr(), ScRangeStringConverter::GetRangeDataFromString(), GetString(), formula::FormulaToken::GetType(), ScDBData::HasHeader(), ScDBData::HasTotals(), ScAddress::IncRow(), ScRangeData::IsReference(), ScAddress::ExternalInfo::maTabName, ScAddress::ExternalInfo::mbExternal, ScAddress::ExternalInfo::mnFileId, nIndex, ocTableRef, pData, ScAddress::Row(), ScRefAddress::Row(), ScCompiler::SetRefConvention(), formula::svDoubleRef, formula::svError, formula::svExternalDoubleRef, formula::svExternalName, formula::svExternalSingleRef, formula::svSingleRef, ScAddress::Tab(), ScRefAddress::Tab(), and ScRangeData::ValidateTabRefs().
|
private |
Definition at line 3314 of file interpr5.cxx.
References aStr, utl::Bootstrap::getBuildIdData(), ScGlobal::GetLocale(), GetString(), ocInfo, ScResId(), and ScCellKeywordTranslator::transKeyword().
|
private |
Definition at line 962 of file interpr2.cxx.
|
private |
Definition at line 4726 of file interpr3.cxx.
|
private |
Definition at line 2402 of file interpr2.cxx.
References ScAddress::Col(), formula::FormulaToken::GetDoubleRef(), formula::FormulaToken::GetRefList(), ScRefListToken::GetRefList(), formula::FormulaToken::GetSingleRef(), formula::FormulaToken::GetSingleRef2(), i, ScComplexRefData::InitRange(), n, p, pt, ScComplexRefData::Ref1, ScComplexRefData::Ref2, ScAddress::Row(), svDoubleRef, svRefList, svSingleRef, ScAddress::Tab(), and ScSingleRefData::toAbs().
|
staticprivate |
Definition at line 1756 of file interpr2.cxx.
|
private |
Definition at line 2209 of file interpr2.cxx.
|
private |
Definition at line 1402 of file interpr2.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), SCdEpsilon, SetError(), svDoubleRef, and x.
|
private |
Definition at line 1966 of file interpr1.cxx.
References CELLTYPE_NONE, ScRefCellValue::meType, p, formula::svDoubleRef, formula::svEmptyCell, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 2895 of file interpr1.cxx.
References formula::svDoubleRef, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 2958 of file interpr1.cxx.
References formula::svDoubleRef, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 3111 of file interpr1.cxx.
|
private |
Definition at line 2691 of file interpr1.cxx.
References CELLTYPE_FORMULA, i, ScRefCellValue::meType, ScAddress::SetCol(), ScAddress::SetRow(), formula::svDoubleRef, and formula::svSingleRef.
|
private |
Definition at line 2098 of file interpr1.cxx.
References aStr, Boolean, ScRefCellValue::hasNumeric(), formula::svDoubleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 2093 of file interpr1.cxx.
|
private |
Definition at line 2838 of file interpr1.cxx.
References formula::svDoubleRef, formula::svError, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 3116 of file interpr1.cxx.
|
private |
Definition at line 1593 of file interpr2.cxx.
|
private |
Definition at line 2568 of file interpr1.cxx.
References formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svRefList, formula::svSingleRef, and x.
|
private |
Definition at line 2088 of file interpr1.cxx.
|
private |
Definition at line 2620 of file interpr1.cxx.
References CELLTYPE_FORMULA, CELLTYPE_VALUE, ScFormulaCell::IsEmpty(), ScFormulaCell::IsValue(), ScRefCellValue::meType, ScRefCellValue::mpFormula, formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, and formula::svSingleRef.
|
private |
Definition at line 3541 of file interpr1.cxx.
References GetString(), getString(), and lcl_convertIntoFullWidth().
|
private |
Definition at line 2873 of file interpr3.cxx.
|
private |
Definition at line 3723 of file interpr3.cxx.
|
private |
Definition at line 203 of file interpr5.cxx.
References ScValueIterator::GetFirst(), ScValueIterator::GetNext(), SetError(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svRefList, formula::svSingleRef, and formula::svString.
|
private |
Definition at line 8985 of file interpr1.cxx.
References aStr, GetString(), and n.
|
private |
Definition at line 9148 of file interpr1.cxx.
References aStr, getString(), GetString(), lcl_LeftB(), and n.
|
private |
Definition at line 3190 of file interpr1.cxx.
References aStr, and GetString().
|
private |
Definition at line 9067 of file interpr1.cxx.
References getLengthB(), getString(), and GetString().
|
private |
Definition at line 1197 of file interpr1.cxx.
References naturalsort::Compare(), sc::RangeMatrix::mpMat, SC_LESS, and formula::svMatrix.
|
private |
Definition at line 1231 of file interpr1.cxx.
References naturalsort::Compare(), sc::RangeMatrix::mpMat, SC_LESS_EQUAL, and formula::svMatrix.
|
private |
Definition at line 2397 of file interpr5.cxx.
|
private |
Definition at line 1286 of file interpr2.cxx.
References log.
|
private |
Definition at line 1268 of file interpr2.cxx.
References log.
|
private |
Definition at line 1295 of file interpr2.cxx.
|
private |
Definition at line 2403 of file interpr5.cxx.
|
private |
Definition at line 788 of file interpr3.cxx.
References GetLogGamma, and x.
Definition at line 1568 of file interpr3.cxx.
|
private |
Definition at line 2145 of file interpr3.cxx.
References gaussinv.
|
private |
Definition at line 6579 of file interpr1.cxx.
References ScQueryParamBase::bByRow, ScQueryEntry::bDoQuery, ScQueryEntry::ByString, CollatorWrapper::compareString(), ScQueryEntry::eOp, ScQueryParamBase::eSearchType, ScGlobal::GetCollator(), ScQueryParamBase::GetEntry(), ScQueryEntry::GetQueryItem(), svl::SharedString::getString(), GetString(), ScRefCellValue::hasEmptyValue(), ScRefCellValue::hasNumeric(), o3tl::make_unsigned(), ScQueryEntry::Item::maString, ScQueryEntry::Item::meType, ScQueryEntry::Item::mfVal, mrContext, n, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, nElements, ScQueryEntry::nField, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, SC_LESS_EQUAL, ScAddress::Set(), ScAddress::SetCol(), SetError(), ScAddress::SetRow(), ScAddress::SetTab(), formula::svDouble, formula::svDoubleRef, formula::svExternalDoubleRef, formula::svExternalSingleRef, formula::svMatrix, formula::svSingleRef, formula::svString, formula::svUnknown, and swap().
|
private |
Definition at line 3184 of file interpr1.cxx.
References ScGlobal::getCharClassPtr(), getString(), GetString(), and CharClass::lowercase().
|
private |
Definition at line 3188 of file interpr4.cxx.
|
private |
Definition at line 4769 of file interpr1.cxx.
References aStr, ScQueryParamBase::bByRow, ScQueryEntry::bDoQuery, ScQueryEntry::ByString, ScQueryEntry::ByValue, ScQueryEntry::eOp, ScQueryParamBase::eSearchType, ScQueryCellIterator::FindEqualOrSortedLastInRange(), ScQueryCel