23 #if ! defined (octave_txt_eng_h) 24 #define octave_txt_eng_h 1 26 #include "octave-config.h" 90 enum { invalid_code = 0xFFFFFFFFU };
100 uint32_t get_symbol_code (
void)
const;
288 #define ASSIGN_COLOR(r,g,b) { rgb(0) = r; rgb(1) = g; rgb(2) = b; } 299 else if (cname ==
"lightBlue")
ASSIGN_COLOR(0.68, .85, .9)
326 el_p->accept (*
this);
331 {
e.get_element ()->accept (*
this); }
334 {
e.get_element ()->accept (*
this); }
354 #define TEXT_ELEMENT_ACCEPT(cls) \ 356 cls::accept (text_processor& p) \ 418 { destroy_lexer (); }
431 void destroy_lexer (
void);
444 std::unique_ptr<text_parser> parser;
446 if (interpreter.
compare (
"tex"))
double get_fontsize(void) const
text_element * get_element(void)
text_element_string(const std::string &s="")
bool compare(const std::string &s, size_t limit=std::string::npos) const
~text_element_superscript(void)
text_element_subscript(char c)
text_element_list(text_element *e)
virtual void visit(text_element_list &e)
void set_parse_result(text_element *e)
text_element_superscript(char c)
std::list< text_element * >::iterator iterator
virtual void visit(text_element_fontsize &)
virtual ~text_processor(void)=default
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
text_element_color(double r, double g, double b)
text_element * parse(const std::string &s)
text_element * get_parse_result(void)
text_element_fontstyle(fontstyle st)
~text_element_subscript(void)
virtual void visit(text_element_superscript &e)
#define ASSIGN_COLOR(r, g, b)
text_element_fontname(const std::string &fname)
create a structure array and initialize its values The dimensions of each cell array of values must match Singleton cells and non cell values are repeated so that they fill the entire array If the cells are empty
nd deftypefn *std::string name
text_element_superscript(text_element *e)
text_element * get_element(void)
fontstyle get_fontstyle(void) const
virtual void visit(text_element_fontname &)
text_element_subscript(text_element *e)
#define TEXT_ELEMENT_ACCEPT(cls)
virtual void visit(text_element_subscript &e)
virtual text_element * parse(const std::string &s)=0
virtual void visit(text_element_color &)
text_element_fontsize(double fsize)
text_element_combined(text_element *e1, text_element *e2)
text_element_symbol(int sym)
With real return the complex result
text_element_combined(text_element *e)
const std::string & get_fontname(void) const
virtual void visit(text_element_fontstyle &)
std::string string_value(void) const
int get_symbol(void) const
virtual void visit(text_element_symbol &)
virtual void visit(text_element_combined &)
virtual void visit(text_element_string &e)=0
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
text_element_color(const std::string &cname)