LibreOffice Module starmath (master) 1
Functions | Variables
parse5.cxx File Reference
#include <com/sun/star/i18n/UnicodeType.hpp>
#include <com/sun/star/i18n/KParseTokens.hpp>
#include <com/sun/star/i18n/KParseType.hpp>
#include <i18nlangtag/lang.h>
#include <tools/lineend.hxx>
#include <unotools/configmgr.hxx>
#include <unotools/syslocale.hxx>
#include <osl/diagnose.h>
#include <rtl/character.hxx>
#include <parse5.hxx>
#include <strings.hrc>
#include <smmod.hxx>
#include <cfgitem.hxx>
#include <starmathdatabase.hxx>
#include <stack>
Include dependency graph for parse5.cxx:

Go to the source code of this file.

Functions

static bool findCompare (const SmTokenTableEntry &lhs, const OUString &s)
 
static const SmTokenTableEntryGetTokenTableEntry (const OUString &rName)
 
static bool IsDelimiter (const OUString &rTxt, sal_Int32 nPos)
 
static bool lcl_IsNumber (const OUString &rText)
 
static bool lcl_IsNotWholeNumber (const OUString &rText)
 
static bool lcl_IsNotWholeNumber16 (const OUString &rText)
 

Variables

const SmTokenTableEntry aTokenTable []
 
const sal_Int32 coStartFlags = KParseTokens::ANY_LETTER | KParseTokens::IGNORE_LEADING_WS
 
const sal_Int32 coContFlags
 
const sal_Int32 coNumStartFlags = KParseTokens::ASC_DIGIT | KParseTokens::ASC_DOT | KParseTokens::IGNORE_LEADING_WS
 
const sal_Int32 coNumContFlags
 
const sal_Int32 coNum16StartFlags = KParseTokens::ASC_DIGIT | KParseTokens::ASC_UPALPHA | KParseTokens::IGNORE_LEADING_WS
 
const sal_Int32 coNum16ContFlags = (coNum16StartFlags & ~KParseTokens::IGNORE_LEADING_WS)
 
const sal_Int32 coUserDefinedCharContFlags
 

Function Documentation

◆ findCompare()

static bool findCompare ( const SmTokenTableEntry lhs,
const OUString &  s 
)
inlinestatic

Definition at line 289 of file parse5.cxx.

References SmTokenTableEntry::aIdent.

Referenced by GetTokenTableEntry().

◆ GetTokenTableEntry()

static const SmTokenTableEntry * GetTokenTableEntry ( const OUString &  rName)
static

Definition at line 295 of file parse5.cxx.

References aTokenTable, and findCompare().

Referenced by SmParser5::NextToken().

◆ IsDelimiter()

static bool IsDelimiter ( const OUString &  rTxt,
sal_Int32  nPos 
)
static

Definition at line 307 of file parse5.cxx.

References cDelimiter, nPos, and SM_MOD.

Referenced by SmParser5::NextToken().

◆ lcl_IsNotWholeNumber()

static bool lcl_IsNotWholeNumber ( const OUString &  rText)
static

Definition at line 357 of file parse5.cxx.

References nPos.

Referenced by SmParser5::DoColor().

◆ lcl_IsNotWholeNumber16()

static bool lcl_IsNotWholeNumber16 ( const OUString &  rText)
static

Definition at line 367 of file parse5.cxx.

References nPos.

Referenced by SmParser5::DoColor().

◆ lcl_IsNumber()

static bool lcl_IsNumber ( const OUString &  rText)
static

Definition at line 336 of file parse5.cxx.

References nPos.

Referenced by SmParser5::DoFontSize().

Variable Documentation

◆ aTokenTable

const SmTokenTableEntry aTokenTable[]

Definition at line 40 of file parse5.cxx.

Referenced by GetTokenTableEntry().

◆ coContFlags

const sal_Int32 coContFlags
Initial value:
= (coStartFlags & ~KParseTokens::IGNORE_LEADING_WS)
| KParseTokens::TWO_DOUBLE_QUOTES_BREAK_STRING
const sal_Int32 coStartFlags
Definition: parse5.cxx:262

Definition at line 265 of file parse5.cxx.

Referenced by SmParser5::NextToken(), SmParser5::NextTokenColor(), and SmParser5::NextTokenFontSize().

◆ coNum16ContFlags

const sal_Int32 coNum16ContFlags = (coNum16StartFlags & ~KParseTokens::IGNORE_LEADING_WS)

Definition at line 282 of file parse5.cxx.

Referenced by SmParser5::NextTokenFontSize().

◆ coNum16StartFlags

const sal_Int32 coNum16StartFlags = KParseTokens::ASC_DIGIT | KParseTokens::ASC_UPALPHA | KParseTokens::IGNORE_LEADING_WS

Definition at line 278 of file parse5.cxx.

Referenced by SmParser5::NextTokenFontSize().

◆ coNumContFlags

const sal_Int32 coNumContFlags
Initial value:
= (coNumStartFlags & ~KParseTokens::IGNORE_LEADING_WS)
| KParseTokens::GROUP_SEPARATOR_IN_NUMBER
const sal_Int32 coNumStartFlags
Definition: parse5.cxx:269

Definition at line 275 of file parse5.cxx.

Referenced by SmParser5::NextToken().

◆ coNumStartFlags

const sal_Int32 coNumStartFlags = KParseTokens::ASC_DIGIT | KParseTokens::ASC_DOT | KParseTokens::IGNORE_LEADING_WS

Definition at line 268 of file parse5.cxx.

Referenced by SmParser5::NextToken().

◆ coStartFlags

const sal_Int32 coStartFlags = KParseTokens::ANY_LETTER | KParseTokens::IGNORE_LEADING_WS

◆ coUserDefinedCharContFlags

const sal_Int32 coUserDefinedCharContFlags
Initial value:
= KParseTokens::ANY_LETTER_OR_NUMBER
| KParseTokens::ASC_DOT
| KParseTokens::TWO_DOUBLE_QUOTES_BREAK_STRING

Definition at line 284 of file parse5.cxx.

Referenced by SmParser5::NextToken().