LibreOffice Module hwpfilter (master) 1
|
#include <sal/config.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <istream>
#include <sstream>
#include "hwpeq.h"
#include <sal/types.h>
#include <sal/macros.h>
#include <rtl/character.hxx>
Go to the source code of this file.
Macros | |
#define | EQ_CASE 0x01 |
#define | EQ_ENV 0x02 |
#define | EQ_ATOP 0x04 |
Enumerations | |
enum | { SCRIPT_NONE , SCRIPT_SUB , SCRIPT_SUP , SCRIPT_ALL } |
Functions | |
static bool | IS_WS (std::istream::int_type ch) |
static bool | IS_BINARY (std::istream::int_type ch) |
static int | eq_word (OString &outs, std::istream *strm, int script=SCRIPT_NONE) |
static bool | eq_sentence (OString &outs, std::istream *strm, const char *end=nullptr) |
static const hwpeq * | lookup_eqn (char const *str) |
static void | make_keyword (char *keyword, std::string_view token) |
static void | push_token (OString const &white, OString const &token, std::istream *strm) |
static int | next_token (OString &white, OString &token, std::istream *strm) |
static std::istream::int_type | read_white_space (OString &outs, std::istream *strm) |
static char | eq2ltxconv (OString &sstr, std::istream *strm, const char *sentinel) |
void | eq2latex (OString &outs, char const *s) |
Variables | |
const hwpeq | eq_tbl [] |
static eq_stack * | stk = nullptr |
anonymous enum |
void eq2latex | ( | OString & | outs, |
char const * | s | ||
) |
Definition at line 768 of file hwpeq.cxx.
References eq2ltxconv(), eq_sentence(), SAL_NEWLINE_STRING, and stk.
Referenced by Formula::parse().
|
static |
Definition at line 698 of file hwpeq.cxx.
References ch, eq2ltxconv(), EQ_ATOP, EQ_CASE, EQ_ENV, IS_WS(), lookup_eqn(), make_keyword(), next_token(), pos, result, and SAL_NEWLINE_STRING.
Referenced by eq2latex(), and eq2ltxconv().
|
static |
Definition at line 669 of file hwpeq.cxx.
References end, eq_word(), next_token(), push_token(), and read_white_space().
Referenced by eq2latex(), and eq_word().
|
static |
Definition at line 601 of file hwpeq.cxx.
References ch, eq_sentence(), eq_word(), lookup_eqn(), make_keyword(), next_token(), push_token(), read_white_space(), result, SCRIPT_NONE, SCRIPT_SUB, and SCRIPT_SUP.
Referenced by eq_sentence(), and eq_word().
|
static |
|
static |
Definition at line 42 of file hwpeq.cxx.
References ch.
Referenced by eq2ltxconv(), next_token(), and read_white_space().
|
static |
Definition at line 384 of file hwpeq.cxx.
References eq_tbl, m, result, and SAL_N_ELEMENTS.
Referenced by eq2ltxconv(), and eq_word().
|
static |
Definition at line 406 of file hwpeq.cxx.
References result.
Referenced by eq2ltxconv(), eq_word(), and next_token().
|
static |
Definition at line 482 of file hwpeq.cxx.
References ch, IS_BINARY(), IS_WS(), make_keyword(), and stk.
Referenced by eq2ltxconv(), eq_sentence(), and eq_word().
|
static |
Definition at line 467 of file hwpeq.cxx.
References stk.
Referenced by eq_sentence(), and eq_word().
|
static |
const hwpeq eq_tbl[] |
Definition at line 71 of file hwpeq.cxx.
Referenced by lookup_eqn().
|
static |
Definition at line 465 of file hwpeq.cxx.
Referenced by eq2latex(), next_token(), push_token(), and read_white_space().