LibreOffice Module sc (master)  1
Functions | Variables
interpr1.cxx File Reference
#include <interpre.hxx>
#include <scitems.hxx>
#include <editeng/langitem.hxx>
#include <editeng/justifyitem.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/temporary.hxx>
#include <osl/thread.h>
#include <unotools/textsearch.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <svl/zformat.hxx>
#include <tools/urlobj.hxx>
#include <unotools/charclass.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/printer.hxx>
#include <unotools/collatorwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <rtl/character.hxx>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <unicode/uchar.h>
#include <unicode/regex.h>
#include <i18nlangtag/mslangid.hxx>
#include <patattr.hxx>
#include <global.hxx>
#include <document.hxx>
#include <dociter.hxx>
#include <formulacell.hxx>
#include <scmatrix.hxx>
#include <docoptio.hxx>
#include <attrib.hxx>
#include <jumpmatrix.hxx>
#include <cellkeytranslator.hxx>
#include <lookupcache.hxx>
#include <rangenam.hxx>
#include <rangeutl.hxx>
#include <compiler.hxx>
#include <externalrefmgr.hxx>
#include <doubleref.hxx>
#include <queryparam.hxx>
#include <queryentry.hxx>
#include <tokenarray.hxx>
#include <compare.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/random.hxx>
#include <comphelper/string.hxx>
#include <svl/sharedstringpool.hxx>
#include <stdlib.h>
#include <vector>
#include <memory>
#include <limits>
#include <string_view>
Include dependency graph for interpr1.cxx:

Go to the source code of this file.

Functions

static void lcl_storeJumpMatResult (const ScMatrix *pMat, ScJumpMatrix *pJumpMat, SCSIZE nC, SCSIZE nR)
 Store a matrix value in another matrix in the context of that other matrix is the result matrix of a jump matrix. More...
 
static void lcl_AdjustJumpMatrix (ScJumpMatrix *pJumpM, SCSIZE nParmCols, SCSIZE nParmRows)
 
static bool lcl_FormatHasNegColor (const SvNumberformat *pFormat)
 
static bool lcl_FormatHasOpenPar (const SvNumberformat *pFormat)
 
static bool lcl_ScInterpreter_IsPrintable (sal_Unicode c)
 
static OUString lcl_convertIntoHalfWidth (const OUString &rStr)
 
static OUString lcl_convertIntoFullWidth (const OUString &rStr)
 
static bool IsDBCS (sal_Unicode currentChar)
 
static sal_Int32 lcl_getLengthB (std::u16string_view str, sal_Int32 nPos)
 
static sal_Int32 getLengthB (const OUString &str)
 
static OUString lcl_RightB (const OUString &rStr, sal_Int32 n)
 
static OUString lcl_LeftB (const OUString &rStr, sal_Int32 n)
 
static bool lcl_LookupQuery (ScAddress &o_rResultPos, ScDocument &rDoc, const ScInterpreterContext &rContext, const ScQueryParam &rParam, const ScQueryEntry &rEntry)
 
static SCROW lcl_getPrevRowWithEmptyValueLookup (const ScLookupCache &rCache, const ScLookupCache::QueryCriteria &rCriteria, const ScQueryParam &rParam)
 

Variables

const sal_uInt64 n2power48 = SAL_CONST_UINT64( 281474976710656)
 
const UBlockScript scriptList []
 

Function Documentation

static sal_Int32 getLengthB ( const OUString &  str)
static
static bool IsDBCS ( sal_Unicode  currentChar)
static

Definition at line 9019 of file interpr1.cxx.

References MsLangId::getSystemLanguage(), LANGUAGE_JAPANESE, SAL_N_ELEMENTS, and to.

Referenced by lcl_getLengthB(), lcl_LeftB(), and lcl_RightB().

static void lcl_AdjustJumpMatrix ( ScJumpMatrix pJumpM,
SCSIZE  nParmCols,
SCSIZE  nParmRows 
)
static
static OUString lcl_convertIntoFullWidth ( const OUString &  rStr)
static
static OUString lcl_convertIntoHalfWidth ( const OUString &  rStr)
static
static bool lcl_FormatHasNegColor ( const SvNumberformat pFormat)
static

Definition at line 2215 of file interpr1.cxx.

References SvNumberformat::GetColor().

Referenced by ScInterpreter::ScCell(), and ScInterpreter::ScCellExternal().

static bool lcl_FormatHasOpenPar ( const SvNumberformat pFormat)
static
static sal_Int32 lcl_getLengthB ( std::u16string_view  str,
sal_Int32  nPos 
)
static

Definition at line 9034 of file interpr1.cxx.

References index, IsDBCS(), and length.

Referenced by getLengthB(), ScInterpreter::ScFindB(), and ScInterpreter::ScSearchB().

static SCROW lcl_getPrevRowWithEmptyValueLookup ( const ScLookupCache rCache,
const ScLookupCache::QueryCriteria rCriteria,
const ScQueryParam rParam 
)
static
static OUString lcl_LeftB ( const OUString &  rStr,
sal_Int32  n 
)
static
static bool lcl_LookupQuery ( ScAddress o_rResultPos,
ScDocument rDoc,
const ScInterpreterContext rContext,
const ScQueryParam rParam,
const ScQueryEntry rEntry 
)
static
static OUString lcl_RightB ( const OUString &  rStr,
sal_Int32  n 
)
static
static bool lcl_ScInterpreter_IsPrintable ( sal_Unicode  c)
static

Definition at line 3441 of file interpr1.cxx.

Referenced by ScInterpreter::ScClean().

static void lcl_storeJumpMatResult ( const ScMatrix pMat,
ScJumpMatrix pJumpMat,
SCSIZE  nC,
SCSIZE  nR 
)
static

Store a matrix value in another matrix in the context of that other matrix is the result matrix of a jump matrix.

All arguments must be valid and are not checked.

Definition at line 223 of file interpr1.cxx.

References ScMatrix::GetDouble(), ScMatrix::GetString(), ScMatrix::IsEmpty(), ScMatrix::IsValue(), ScJumpMatrix::PutResultDouble(), ScJumpMatrix::PutResultEmpty(), and ScJumpMatrix::PutResultString().

Referenced by ScInterpreter::JumpMatrix(), and ScInterpreter::ScIfError().

Variable Documentation

const sal_uInt64 n2power48 = SAL_CONST_UINT64( 281474976710656)
const UBlockScript scriptList[]
Initial value:
= {
{UBLOCK_HANGUL_JAMO, UBLOCK_HANGUL_JAMO},
{UBLOCK_CJK_RADICALS_SUPPLEMENT, UBLOCK_HANGUL_SYLLABLES},
{UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS,UBLOCK_CJK_RADICALS_SUPPLEMENT },
{UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS,UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS},
{UBLOCK_CJK_COMPATIBILITY_FORMS, UBLOCK_CJK_COMPATIBILITY_FORMS},
{UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS, UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS},
{UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B, UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT},
{UBLOCK_CJK_STROKES, UBLOCK_CJK_STROKES}
}

Definition at line 9009 of file interpr1.cxx.