LibreOffice Module starmath (master) 1
Functions
mathmlattr.cxx File Reference
#include <mathmlattr.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <rtl/math.h>
#include <cstddef>
#include <string_view>
#include <unordered_map>
Include dependency graph for mathmlattr.cxx:

Go to the source code of this file.

Functions

static std::size_t ParseMathMLUnsignedNumber (std::u16string_view rStr, Fraction &rUN)
 
static std::size_t ParseMathMLNumber (std::u16string_view rStr, Fraction &rN)
 
bool ParseMathMLAttributeLengthValue (std::u16string_view rStr, MathMLAttributeLengthValue &rV)
 
bool GetMathMLMathvariantValue (const OUString &rStr, MathMLMathvariantValue &rV)
 

Function Documentation

◆ GetMathMLMathvariantValue()

bool GetMathMLMathvariantValue ( const OUString &  rStr,
MathMLMathvariantValue rV 
)

◆ ParseMathMLAttributeLengthValue()

bool ParseMathMLAttributeLengthValue ( std::u16string_view  rStr,
MathMLAttributeLengthValue rV 
)

◆ ParseMathMLNumber()

static std::size_t ParseMathMLNumber ( std::u16string_view  rStr,
Fraction rN 
)
static

Definition at line 70 of file mathmlattr.cxx.

References Fraction::IsValid(), and ParseMathMLUnsignedNumber().

Referenced by ParseMathMLAttributeLengthValue().

◆ ParseMathMLUnsignedNumber()

static std::size_t ParseMathMLUnsignedNumber ( std::u16string_view  rStr,
Fraction rUN 
)
static

Definition at line 20 of file mathmlattr.cxx.

References o3tl::checked_add(), o3tl::checked_multiply(), and u.

Referenced by ParseMathMLNumber().