LibreOffice Module starmath (master) 1
|
#include <mathmlattr.hxx>
#include <o3tl/safeint.hxx>
#include <o3tl/string_view.hxx>
#include <rtl/math.h>
#include <cstddef>
#include <string_view>
#include <unordered_map>
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) |
bool GetMathMLMathvariantValue | ( | const OUString & | rStr, |
MathMLMathvariantValue & | rV | ||
) |
Definition at line 133 of file mathmlattr.cxx.
References aMap, Bold, BoldFraktur, BoldItalic, BoldSansSerif, BoldScript, DoubleStruck, Fraktur, Initial, Italic, Looped, Monospace, Normal, SansSerif, SansSerifBoldItalic, SansSerifItalic, Script, Stretched, and Tailed.
bool ParseMathMLAttributeLengthValue | ( | std::u16string_view | rStr, |
MathMLAttributeLengthValue & | rV | ||
) |
Definition at line 84 of file mathmlattr.cxx.
References MathMLAttributeLengthValue::aNumber, Cm, Em, MathMLAttributeLengthValue::eUnit, Ex, In, Mm, None, ParseMathMLNumber(), Pc, Percent, Pt, Px, o3tl::starts_with(), and u.
|
static |
Definition at line 70 of file mathmlattr.cxx.
References Fraction::IsValid(), and ParseMathMLUnsignedNumber().
Referenced by ParseMathMLAttributeLengthValue().
|
static |
Definition at line 20 of file mathmlattr.cxx.
References o3tl::checked_add(), o3tl::checked_multiply(), and u.
Referenced by ParseMathMLNumber().