Sha256: 96eb853c5a39b6479581368e6da7e69a866a5affec0ad7f7d062c742f91c8d08

Contents?: true

Size: 1.96 KB

Versions: 13

Compression:

Stored size: 1.96 KB

Contents

/*             itex2MML 1.5.1
 *   itex2MML.h last modified 1/5/2014
 */

#ifndef ITEX2MML_H
#define ITEX2MML_H

#define ITEX2MML_VERSION "1.5.1"

#ifdef __cplusplus
extern "C" {
#endif

  /* Step 1. Parse a buffer with itex source; return value is mathml, or 0 on failure (e.g., parse error).
   */
  extern char * itex2MML_parse (const char * buffer, unsigned long length);

  /* Step 2. Free the string from Step 1.
   */
  extern void   itex2MML_free_string (char * str);


  /* Alternatively, to filter generic source and converting embedded equations, use:
   */
  extern int    itex2MML_filter (const char * buffer, unsigned long length);

  extern int    itex2MML_html_filter (const char * buffer, unsigned long length);
  extern int    itex2MML_strict_html_filter (const char * buffer, unsigned long length);


  /* To change output methods:
   *
   * Note: If length is 0, then buffer is treated like a string; otherwise only length bytes are written.
   */
  extern void (*itex2MML_write) (const char * buffer, unsigned long length); /* default writes to stdout */
  extern void (*itex2MML_write_mathml) (const char * mathml);                /* default calls itex2MML_write(mathml,0) */
  extern void (*itex2MML_error) (const char * msg);                          /* default writes to stderr */


  /* Other stuff:
   */
  extern void   itex2MML_setup (const char * buffer, unsigned long length);

  extern void   itex2MML_restart ();

  extern char * itex2MML_copy_string (const char * str);
  extern char * itex2MML_copy_string_extra (const char * str, unsigned extra);
  extern char * itex2MML_copy2 (const char * first, const char * second);
  extern char * itex2MML_copy3 (const char * first, const char * second, const char * third);
  extern char * itex2MML_copy_escaped (const char * str);

  extern char * itex2MML_empty_string;

  extern int    itex2MML_lineno;

  extern int    itex2MML_rowposn;
  extern int    itex2MML_displaymode;

#ifdef __cplusplus
}
#endif

#endif /* ! ITEX2MML_H */

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
mathematical-0.4.2 ext/mathematical/itexToMML/itex2MML.h
mathematical-0.4.1 ext/mathematical/itexToMML/itex2MML.h
mathematical-0.4.0 ext/mathematical/itexToMML/itex2MML.h
mathematical-0.3.1 ext/mathematical/itex2MML.h
mathematical-0.3.0 ext/mathematical/itex2MML.h
mathematical-0.2.3 ext/mathematical/itex2MML.h
mathematical-0.2.2 ext/mathematical/itex2MML.h
mathematical-0.2.1 ext/mathematical/itex2MML.h
mathematical-0.2.0 ext/mathematical/itex2MML.h
mathematical-0.1.2 ext/mathematical/itex2MML.h
mathematical-0.1.1 ext/mathematical/itex2MML.h
mathematical-0.0.2 ext/mathematical/itex2MML.h
itextomml-1.5.1 ext/itex2MML.h