LibreOffice Module sc (master) 1
Functions | Variables
compiler.cxx File Reference
#include <config_features.h>
#include <compiler.hxx>
#include <mutex>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <sfx2/app.hxx>
#include <sfx2/objsh.hxx>
#include <basic/sbmeth.hxx>
#include <basic/sbstar.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <svl/sharedstringpool.hxx>
#include <sal/log.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <rtl/character.hxx>
#include <unotools/charclass.hxx>
#include <unotools/configmgr.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/sheet/FormulaOpCodeMapEntry.hpp>
#include <com/sun/star/sheet/FormulaLanguage.hpp>
#include <com/sun/star/i18n/KParseTokens.hpp>
#include <com/sun/star/i18n/KParseType.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <tools/urlobj.hxx>
#include <rtl/math.hxx>
#include <rtl/ustring.hxx>
#include <stdlib.h>
#include <rangenam.hxx>
#include <dbdata.hxx>
#include <document.hxx>
#include <callform.hxx>
#include <addincol.hxx>
#include <refupdat.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <formulacell.hxx>
#include <dociter.hxx>
#include <docoptio.hxx>
#include <formula/errorcodes.hxx>
#include <parclass.hxx>
#include <autonamecache.hxx>
#include <externalrefmgr.hxx>
#include <rangeutl.hxx>
#include <convuno.hxx>
#include <tokenuno.hxx>
#include <formulaparserpool.hxx>
#include <tokenarray.hxx>
#include <scmatrix.hxx>
#include <tokenstringcontext.hxx>
#include <officecfg/Office/Common.hxx>
Include dependency graph for compiler.cxx:

Go to the source code of this file.

Functions

static std::mutexgetCharClassMutex ()
 
static bool lcl_isValidQuotedText (std::u16string_view rFormula, size_t nSrcPos, ParseResult &rRes)
 
static bool lcl_parseExternalName (const OUString &rSymbol, OUString &rFile, OUString &rName, const sal_Unicode cSep, const ScDocument &rDoc, const uno::Sequence< sheet::ExternalLinkInfo > *pExternalLinks)
 
static OUString lcl_makeExternalNameStr (const OUString &rFile, const OUString &rName, const sal_Unicode cSep, bool bODF)
 
static bool lcl_getLastTabName (OUString &rTabName2, const OUString &rTabName1, const vector< OUString > &rTabNames, const ScRange &rRef)
 
static void r1c1_add_col (OUStringBuffer &rBuf, const ScSingleRefData &rRef, const ScAddress &rAbsRef)
 
static void r1c1_add_row (OUStringBuffer &rBuf, const ScSingleRefData &rRef, const ScAddress &rAbsRef)
 
static sal_Unicodelcl_UnicodeStrNCpy (sal_Unicode *pDst, const sal_Unicode *pSrc, sal_Int32 nMax)
 
static bool lcl_isUnicodeIgnoreAscii (const sal_Unicode *p1, const char *p2, size_t n)
 
static bool lcl_ParenthesisFollows (const sal_Unicode *p)
 
static void lcl_GetColRowDeltas (const ScRange &rRange, SCCOL &rXDelta, SCROW &rYDelta)
 

Variables

static const char * pInternal [2] = { "TTT", "__DEBUG_VAR" }
 

Function Documentation

◆ getCharClassMutex()

static std::mutex & getCharClassMutex ( )
static

Definition at line 224 of file compiler.cxx.

References aMutex.

Referenced by ScCompiler::GetCharClassEnglish(), and ScCompiler::GetCharClassLocalized().

◆ lcl_GetColRowDeltas()

static void lcl_GetColRowDeltas ( const ScRange rRange,
SCCOL rXDelta,
SCROW rYDelta 
)
static

◆ lcl_getLastTabName()

static bool lcl_getLastTabName ( OUString &  rTabName2,
const OUString &  rTabName1,
const vector< OUString > &  rTabNames,
const ScRange rRef 
)
static

Definition at line 727 of file compiler.cxx.

References ScRange::aEnd, ScRange::aStart, nCount, ScResId(), and ScAddress::Tab().

◆ lcl_isUnicodeIgnoreAscii()

static bool lcl_isUnicodeIgnoreAscii ( const sal_Unicode p1,
const char *  p2,
size_t  n 
)
static

Definition at line 2076 of file compiler.cxx.

References i, and n.

Referenced by ScCompiler::NextSymbol().

◆ lcl_isValidQuotedText()

static bool lcl_isValidQuotedText ( std::u16string_view  rFormula,
size_t  nSrcPos,
ParseResult &  rRes 
)
static

Definition at line 499 of file compiler.cxx.

References nPos, and ScCompiler::nSrcPos.

◆ lcl_makeExternalNameStr()

static OUString lcl_makeExternalNameStr ( const OUString &  rFile,
const OUString &  rName,
const sal_Unicode  cSep,
bool  bODF 
)
static

Definition at line 707 of file compiler.cxx.

References aBuf, and aName.

◆ lcl_ParenthesisFollows()

static bool lcl_ParenthesisFollows ( const sal_Unicode p)
static

Definition at line 3108 of file compiler.cxx.

References p.

Referenced by ScCompiler::ParseValue().

◆ lcl_parseExternalName()

static bool lcl_parseExternalName ( const OUString &  rSymbol,
OUString &  rFile,
OUString &  rName,
const sal_Unicode  cSep,
const ScDocument rDoc,
const uno::Sequence< sheet::ExternalLinkInfo > *  pExternalLinks 
)
static

Definition at line 527 of file compiler.cxx.

References equalsIgnoreAsciiCase(), i, p, ScRange::Parse_XL_Header(), ScCompiler::rDoc, and ZERO.

◆ lcl_UnicodeStrNCpy()

static sal_Unicode * lcl_UnicodeStrNCpy ( sal_Unicode pDst,
const sal_Unicode pSrc,
sal_Int32  nMax 
)
static

Definition at line 2062 of file compiler.cxx.

Referenced by ScCompiler::NextSymbol().

◆ r1c1_add_col()

static void r1c1_add_col ( OUStringBuffer &  rBuf,
const ScSingleRefData rRef,
const ScAddress rAbsRef 
)
static

◆ r1c1_add_row()

static void r1c1_add_row ( OUStringBuffer &  rBuf,
const ScSingleRefData rRef,
const ScAddress rAbsRef 
)
static

Variable Documentation

◆ pInternal

const char* pInternal[2] = { "TTT", "__DEBUG_VAR" }
static

Definition at line 105 of file compiler.cxx.

Referenced by ScCompiler::ParseOpCode2().