Classes | Macros | Typedefs | Functions | Variables
xmlcode.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "xmlcode.h"
#include "entry.h"
#include "doxygen.h"
#include "outputlist.h"
#include "util.h"
#include "membername.h"
#include "searchindex.h"
#include "config.h"
#include "filedef.h"
#include "tooltip.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   xmlcodeYY_create_buffer
 
#define yy_delete_buffer   xmlcodeYY_delete_buffer
 
#define yy_flex_debug   xmlcodeYY_flex_debug
 
#define yy_init_buffer   xmlcodeYY_init_buffer
 
#define yy_flush_buffer   xmlcodeYY_flush_buffer
 
#define yy_load_buffer_state   xmlcodeYY_load_buffer_state
 
#define yy_switch_to_buffer   xmlcodeYY_switch_to_buffer
 
#define yyin   xmlcodeYYin
 
#define yyleng   xmlcodeYYleng
 
#define yylex   xmlcodeYYlex
 
#define yylineno   xmlcodeYYlineno
 
#define yyout   xmlcodeYYout
 
#define yyrestart   xmlcodeYYrestart
 
#define yytext   xmlcodeYYtext
 
#define yywrap   xmlcodeYYwrap
 
#define yyalloc   xmlcodeYYalloc
 
#define yyrealloc   xmlcodeYYrealloc
 
#define yyfree   xmlcodeYYfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   xmlcodeYYrestart(xmlcodeYYin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   xmlcodeYY_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   xmlcodeYY_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define xmlcodeYYwrap(n)   1
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   xmlcodeYYtext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   12
 
#define YY_END_OF_BUFFER   13
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_NEVER_INTERACTIVE   1
 
#define YY_NO_INPUT   1
 
#define YY_NO_UNISTD_H   1
 
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
 
#define INITIAL   0
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( xmlcodeYYtext, xmlcodeYYleng, 1, xmlcodeYYout )) {} } while (0)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int xmlcodeYYlex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void xmlcodeYYrestart (FILE *input_file)
 
void xmlcodeYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE xmlcodeYY_create_buffer (FILE *file, int size)
 
void xmlcodeYY_delete_buffer (YY_BUFFER_STATE b)
 
void xmlcodeYY_flush_buffer (YY_BUFFER_STATE b)
 
void xmlcodeYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void xmlcodeYYpop_buffer_state (void)
 
static void xmlcodeYYensure_buffer_stack (void)
 
static void xmlcodeYY_load_buffer_state (void)
 
static void xmlcodeYY_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE xmlcodeYY_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE xmlcodeYY_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE xmlcodeYY_scan_bytes (yyconst char *bytes, int len)
 
void * xmlcodeYYalloc (yy_size_t)
 
void * xmlcodeYYrealloc (void *, yy_size_t)
 
void xmlcodeYYfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (yyconst char msg[])
 
static void codify (const char *text)
 
static void setCurrentDoc (const QCString &anchor)
 
static void startCodeLine ()
 
static void endFontClass ()
 
static void endCodeLine ()
 
static void nextCodeLine ()
 
static void codifyLines (char *text)
 
static void startFontClass (const char *s)
 
static int countLines ()
 
static int yyread (char *buf, int max_size)
 
static int yy_init_globals (void)
 
int xmlcodeYYlex_destroy (void)
 
int xmlcodeYYget_debug (void)
 
void xmlcodeYYset_debug (int debug_flag)
 
YY_EXTRA_TYPE xmlcodeYYget_extra (void)
 
void xmlcodeYYset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * xmlcodeYYget_in (void)
 
void xmlcodeYYset_in (FILE *in_str)
 
FILE * xmlcodeYYget_out (void)
 
void xmlcodeYYset_out (FILE *out_str)
 
int xmlcodeYYget_leng (void)
 
char * xmlcodeYYget_text (void)
 
int xmlcodeYYget_lineno (void)
 
void xmlcodeYYset_lineno (int line_number)
 
int xmlcodeYYlex (void)
 
 if (!(yy_init))
 
 while (1)
 
static void yy_fatal_error (yyconst char *msg)
 
void parseXmlCode (CodeOutputInterface &od, const char *, const QCString &s, bool, const char *exName, FileDef *fd, int startLine, int endLine, bool, MemberDef *, bool, Definition *searchCtx, bool)
 
void resetXmlCodeParserState ()
 

Variables

int xmlcodeYYleng
 
FILE * xmlcodeYYin = (FILE *) 0
 
FILE * xmlcodeYYout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 
static char yy_hold_char
 
static int yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int xmlcodeYYlineno = 1
 
char * xmlcodeYYtext
 
static yyconst flex_int16_t yy_accept [45]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [21]
 
static yyconst flex_int16_t yy_base [54]
 
static yyconst flex_int16_t yy_def [54]
 
static yyconst flex_int16_t yy_nxt [121]
 
static yyconst flex_int16_t yy_chk [121]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int xmlcodeYY_flex_debug = 0
 
static CodeOutputInterfaceg_code
 
static QCString g_curClassName
 
static QCString g_parmType
 
static QCString g_parmName
 
static const char * g_inputString
 the code fragment as text More...
 
static int g_inputPosition
 read offset during parsing More...
 
static int g_inputLines
 number of line in the code fragment More...
 
static int g_yyLineNr
 current line number More...
 
static bool g_needsTermination
 
static Definitiong_searchCtx
 
static QCString g_exampleName
 
static QCString g_exampleFile
 
static QCString g_type
 
static QCString g_name
 
static QCString g_args
 
static QCString g_classScope
 
static QCString g_CurrScope
 
static FileDefg_sourceFileDef
 
static Definitiong_currentDefinition
 
static MemberDefg_currentMemberDef
 
static bool g_includeCodeFragment
 
static const char * g_currentFontClass
 
 YY_DECL
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file xmlcode.cpp.

#define ECHO   do { if (fwrite( xmlcodeYYtext, xmlcodeYYleng, 1, xmlcodeYYout )) {} } while (0)

Definition at line 823 of file xmlcode.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 179 of file xmlcode.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 180 of file xmlcode.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 181 of file xmlcode.cpp.

#define FLEX_BETA

Definition at line 33 of file xmlcode.cpp.

#define FLEX_SCANNER

Definition at line 28 of file xmlcode.cpp.

#define FLEXINT_H

Definition at line 49 of file xmlcode.cpp.

#define INITIAL   0

Definition at line 738 of file xmlcode.cpp.

#define INT16_MAX   (32767)

Definition at line 92 of file xmlcode.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 83 of file xmlcode.cpp.

#define INT32_MAX   (2147483647)

Definition at line 95 of file xmlcode.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 86 of file xmlcode.cpp.

#define INT8_MAX   (127)

Definition at line 89 of file xmlcode.cpp.

#define INT8_MIN   (-128)

Definition at line 80 of file xmlcode.cpp.

#define REJECT   reject_used_but_not_detected

Definition at line 504 of file xmlcode.cpp.

#define UINT16_MAX   (65535U)

Definition at line 101 of file xmlcode.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file xmlcode.cpp.

#define UINT8_MAX   (255U)

Definition at line 98 of file xmlcode.cpp.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 199 of file xmlcode.cpp.

#define xmlcodeYYwrap (   n)    1

Definition at line 354 of file xmlcode.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 350 of file xmlcode.cpp.

#define YY_BREAK   break;

Definition at line 902 of file xmlcode.cpp.

#define YY_BUF_SIZE   16384

Definition at line 163 of file xmlcode.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 266 of file xmlcode.cpp.

#define YY_BUFFER_NEW   0

Definition at line 254 of file xmlcode.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 255 of file xmlcode.cpp.

#define yy_create_buffer   xmlcodeYY_create_buffer

Definition at line 9 of file xmlcode.cpp.

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: xmlcode.cpp:274
static size_t yy_buffer_stack_top
Definition: xmlcode.cpp:272

Definition at line 282 of file xmlcode.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 289 of file xmlcode.cpp.

#define YY_DECL   int xmlcodeYYlex (void)

Definition at line 890 of file xmlcode.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 886 of file xmlcode.cpp.

#define yy_delete_buffer   xmlcodeYY_delete_buffer

Definition at line 10 of file xmlcode.cpp.

#define YY_DO_BEFORE_ACTION
Value:
xmlcodeYYleng = (size_t) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
int xmlcodeYYleng
Definition: xmlcode.cpp:294
#define yytext_ptr
Definition: xmlcode.cpp:368
register char * yy_bp
Definition: xmlcode.cpp:913
register char * yy_cp
Definition: xmlcode.cpp:913
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static char yy_hold_char
Definition: xmlcode.cpp:292

Definition at line 378 of file xmlcode.cpp.

#define YY_END_OF_BUFFER   13

Definition at line 386 of file xmlcode.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file xmlcode.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 1873 of file xmlcode.cpp.

#define YY_EXTRA_TYPE   void *

Definition at line 749 of file xmlcode.cpp.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 877 of file xmlcode.cpp.

#define yy_flex_debug   xmlcodeYY_flex_debug

Definition at line 11 of file xmlcode.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file xmlcode.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 30 of file xmlcode.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 31 of file xmlcode.cpp.

#define yy_flush_buffer   xmlcodeYY_flush_buffer

Definition at line 13 of file xmlcode.cpp.

#define YY_FLUSH_BUFFER   xmlcodeYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 318 of file xmlcode.cpp.

#define yy_init_buffer   xmlcodeYY_init_buffer

Definition at line 12 of file xmlcode.cpp.

#define YY_INPUT (   buf,
  result,
  max_size 
)    result=yyread(buf,max_size);

Definition at line 723 of file xmlcode.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 5 of file xmlcode.cpp.

#define YY_LESS_LINENO (   n)

Definition at line 183 of file xmlcode.cpp.

#define yy_load_buffer_state   xmlcodeYY_load_buffer_state

Definition at line 14 of file xmlcode.cpp.

#define YY_MORE_ADJ   0

Definition at line 506 of file xmlcode.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 544 of file xmlcode.cpp.

#define yy_new_buffer   xmlcodeYY_create_buffer

Definition at line 328 of file xmlcode.cpp.

#define YY_NEW_FILE   xmlcodeYYrestart(xmlcodeYYin )

Definition at line 157 of file xmlcode.cpp.

#define YY_NO_INPUT   1

Definition at line 545 of file xmlcode.cpp.

#define YY_NO_UNISTD_H   1

Definition at line 546 of file xmlcode.cpp.

#define YY_NULL   0

Definition at line 131 of file xmlcode.cpp.

#define YY_NUM_RULES   12

Definition at line 385 of file xmlcode.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 815 of file xmlcode.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 507 of file xmlcode.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 905 of file xmlcode.cpp.

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 138 of file xmlcode.cpp.

#define yy_set_bol (   at_bol)
Value:
{ \
xmlcodeYYensure_buffer_stack (); \
xmlcodeYY_create_buffer(xmlcodeYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_BUF_SIZE
Definition: xmlcode.cpp:163
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
if(!(yy_init))
Definition: xmlcode.cpp:921
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289

Definition at line 340 of file xmlcode.cpp.

#define yy_set_interactive (   is_interactive)
Value:
{ \
xmlcodeYYensure_buffer_stack (); \
xmlcodeYY_create_buffer(xmlcodeYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_BUF_SIZE
Definition: xmlcode.cpp:163
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
if(!(yy_init))
Definition: xmlcode.cpp:921
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289

Definition at line 330 of file xmlcode.cpp.

#define YY_SKIP_YYWRAP

Definition at line 355 of file xmlcode.cpp.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 150 of file xmlcode.cpp.

#define YY_START_STACK_INCR   25

Definition at line 872 of file xmlcode.cpp.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 168 of file xmlcode.cpp.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 154 of file xmlcode.cpp.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 207 of file xmlcode.cpp.

#define yy_switch_to_buffer   xmlcodeYY_switch_to_buffer

Definition at line 15 of file xmlcode.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file xmlcode.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 202 of file xmlcode.cpp.

#define YY_USER_ACTION

Definition at line 897 of file xmlcode.cpp.

#define yyalloc   xmlcodeYYalloc

Definition at line 24 of file xmlcode.cpp.

#define yyconst

Definition at line 127 of file xmlcode.cpp.

#define yyfree   xmlcodeYYfree

Definition at line 26 of file xmlcode.cpp.

#define yyin   xmlcodeYYin

Definition at line 16 of file xmlcode.cpp.

#define yyleng   xmlcodeYYleng

Definition at line 17 of file xmlcode.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up xmlcodeYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up xmlcodeYYtext again */ \
} \
while ( 0 )
#define YY_DO_BEFORE_ACTION
Definition: xmlcode.cpp:378
std::void_t< T > n
register char * yy_bp
Definition: xmlcode.cpp:913
#define YY_MORE_ADJ
Definition: xmlcode.cpp:506
#define YY_RESTORE_YY_MORE_OFFSET
Definition: xmlcode.cpp:507
register char * yy_cp
Definition: xmlcode.cpp:913
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static char yy_hold_char
Definition: xmlcode.cpp:292
while(1)
Definition: xmlcode.cpp:947

Definition at line 1885 of file xmlcode.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up xmlcodeYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = xmlcodeYYtext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
xmlcodeYYleng = yyless_macro_arg; \
} \
while ( 0 )
int xmlcodeYYleng
Definition: xmlcode.cpp:294
char * xmlcodeYYtext
Definition: xmlcode.cpp:508
std::void_t< T > n
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static char yy_hold_char
Definition: xmlcode.cpp:292
while(1)
Definition: xmlcode.cpp:947

Definition at line 1885 of file xmlcode.cpp.

#define yylex   xmlcodeYYlex

Definition at line 18 of file xmlcode.cpp.

#define yylineno   xmlcodeYYlineno

Definition at line 19 of file xmlcode.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 505 of file xmlcode.cpp.

#define yyout   xmlcodeYYout

Definition at line 20 of file xmlcode.cpp.

#define yyrealloc   xmlcodeYYrealloc

Definition at line 25 of file xmlcode.cpp.

#define yyrestart   xmlcodeYYrestart

Definition at line 21 of file xmlcode.cpp.

#define YYSTATE   YY_START

Definition at line 151 of file xmlcode.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 2075 of file xmlcode.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 867 of file xmlcode.cpp.

#define yytext   xmlcodeYYtext

Definition at line 22 of file xmlcode.cpp.

#define yytext_ptr   xmlcodeYYtext

Definition at line 368 of file xmlcode.cpp.

#define yywrap   xmlcodeYYwrap

Definition at line 23 of file xmlcode.cpp.

Typedef Documentation

typedef short int flex_int16_t

Definition at line 71 of file xmlcode.cpp.

typedef int flex_int32_t

Definition at line 72 of file xmlcode.cpp.

typedef signed char flex_int8_t

Definition at line 70 of file xmlcode.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 74 of file xmlcode.cpp.

typedef unsigned int flex_uint32_t

Definition at line 75 of file xmlcode.cpp.

typedef unsigned char flex_uint8_t

Definition at line 73 of file xmlcode.cpp.

Definition at line 172 of file xmlcode.cpp.

typedef unsigned char YY_CHAR

Definition at line 357 of file xmlcode.cpp.

typedef size_t yy_size_t

Definition at line 203 of file xmlcode.cpp.

typedef int yy_state_type

Definition at line 361 of file xmlcode.cpp.

Function Documentation

static void codify ( const char *  text)
static

Definition at line 575 of file xmlcode.cpp.

576 {
577  g_code->codify(text);
578 }
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
virtual void codify(const char *s)=0
static void codifyLines ( char *  text)
static

Definition at line 668 of file xmlcode.cpp.

669 {
670  char *p=text,*sp=p;
671  char c;
672  bool done=FALSE;
673 
674  while (!done)
675  {
676  sp=p;
677 
678  while ((c=*p++) && c!='\n') { }
679 
680  if (c=='\n')
681  {
682  g_yyLineNr++;
683  *(p-1)='\0';
684  g_code->codify(sp);
685  nextCodeLine();
686  }
687  else
688  {
689  g_code->codify(sp);
690  done=TRUE;
691  }
692  }
693 }
const bool FALSE
Definition: qglobal.h:370
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
p
Definition: test.py:223
static int g_yyLineNr
current line number
Definition: xmlcode.cpp:555
virtual void codify(const char *s)=0
static void nextCodeLine()
Definition: xmlcode.cpp:657
const bool TRUE
Definition: qglobal.h:371
static int countLines ( )
static

counts the number of lines in the input

Definition at line 703 of file xmlcode.cpp.

704 {
705  const char *p=g_inputString;
706  char c;
707  int count=1;
708  while ((c=*p))
709  {
710  p++ ;
711  if (c=='\n') count++;
712  }
713  if (p>g_inputString && *(p-1)!='\n')
714  { // last line does not end with a \n, so we add an extra
715  // line and explicitly terminate the line after parsing.
716  count++,
718  }
719  return count;
720 }
p
Definition: test.py:223
static const char * g_inputString
the code fragment as text
Definition: xmlcode.cpp:552
static bool g_needsTermination
Definition: xmlcode.cpp:556
const bool TRUE
Definition: qglobal.h:371
static void endCodeLine ( )
static

Definition at line 651 of file xmlcode.cpp.

652 {
653  endFontClass();
654  g_code->endCodeLine();
655 }
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
virtual void endCodeLine()=0
static void endFontClass()
Definition: xmlcode.cpp:642
static void endFontClass ( )
static

Definition at line 642 of file xmlcode.cpp.

643 {
644  if (g_currentFontClass)
645  {
646  g_code->endFontClass();
648  }
649 }
virtual void endFontClass()=0
static const char * g_currentFontClass
Definition: xmlcode.cpp:573
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
if ( yy_init)

Definition at line 921 of file xmlcode.cpp.

922  {
923  (yy_init) = 1;
924 
925 #ifdef YY_USER_INIT
926  YY_USER_INIT;
927 #endif
928 
929  if ( ! (yy_start) )
930  (yy_start) = 1; /* first start state */
931 
932  if ( ! xmlcodeYYin )
933  xmlcodeYYin = stdin;
934 
935  if ( ! xmlcodeYYout )
937 
938  if ( ! YY_CURRENT_BUFFER ) {
942  }
943 
945  }
#define YY_BUF_SIZE
Definition: xmlcode.cpp:163
static void xmlcodeYYensure_buffer_stack(void)
Definition: xmlcode.cpp:1743
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
static int yy_start
Definition: xmlcode.cpp:299
FILE * xmlcodeYYout
Definition: xmlcode.cpp:359
YY_BUFFER_STATE xmlcodeYY_create_buffer(FILE *file, int size)
Definition: xmlcode.cpp:1590
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
static int yy_init
Definition: xmlcode.cpp:298
static void xmlcodeYY_load_buffer_state(void)
Definition: xmlcode.cpp:1576
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
static void nextCodeLine ( )
static

Definition at line 657 of file xmlcode.cpp.

658 {
659  const char *fc = g_currentFontClass;
660  endCodeLine();
662  {
663  g_currentFontClass = fc;
664  startCodeLine();
665  }
666 }
static void endCodeLine()
Definition: xmlcode.cpp:651
static const char * g_currentFontClass
Definition: xmlcode.cpp:573
static void startCodeLine()
Definition: xmlcode.cpp:599
static int g_yyLineNr
current line number
Definition: xmlcode.cpp:555
static int g_inputLines
number of line in the code fragment
Definition: xmlcode.cpp:554
void parseXmlCode ( CodeOutputInterface od,
const char *  ,
const QCString s,
bool  ,
const char *  exName,
FileDef fd,
int  startLine,
int  endLine,
bool  ,
MemberDef ,
bool  ,
Definition searchCtx,
bool   
)

Definition at line 2081 of file xmlcode.cpp.

2095 {
2096  if (s.isEmpty()) return;
2097 
2099 
2100  g_code = &od;
2101  g_inputString = s;
2102  g_inputPosition = 0;
2103  g_currentFontClass = 0;
2105  g_searchCtx=searchCtx;
2106 
2107  if (endLine!=-1)
2108  g_inputLines = endLine+1;
2109  else
2111 
2112  if (startLine!=-1)
2113  g_yyLineNr = startLine;
2114  else
2115  g_yyLineNr = 1;
2116 
2117  g_exampleName = exName;
2118  g_sourceFileDef = fd;
2119 
2120  bool cleanupSourceDef = FALSE;
2121 
2122  if (fd==0)
2123  {
2124  // create a dummy filedef for the example
2125  g_sourceFileDef = new FileDef("",(exName?exName:"generated"));
2126  cleanupSourceDef = TRUE;
2127  }
2128 
2129  if (g_sourceFileDef)
2130  {
2131  setCurrentDoc("l00001");
2132  }
2133 
2134  // Starts line 1 on the output
2135  startCodeLine();
2136 
2138 
2139  xmlcodeYYlex();
2140 
2141  if (g_needsTermination)
2142  {
2143  endCodeLine();
2144  }
2145  if (fd)
2146  {
2148  }
2149  if (cleanupSourceDef)
2150  {
2151  // delete the temporary file definition used for this example
2152  delete g_sourceFileDef;
2153  g_sourceFileDef=0;
2154  }
2155 
2156  return;
2157 }
bool isEmpty() const
Definition: qcstring.h:189
static void setCurrentDoc(const QCString &anchor)
Definition: xmlcode.cpp:580
static Definition * g_searchCtx
Definition: xmlcode.cpp:557
const bool FALSE
Definition: qglobal.h:370
static void endCodeLine()
Definition: xmlcode.cpp:651
static const char * g_currentFontClass
Definition: xmlcode.cpp:573
void clearTooltips()
Definition: tooltip.cpp:54
static int g_inputPosition
read offset during parsing
Definition: xmlcode.cpp:553
void xmlcodeYYrestart(FILE *input_file)
Definition: xmlcode.cpp:1528
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
static void startCodeLine()
Definition: xmlcode.cpp:599
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
static QCString g_exampleName
Definition: xmlcode.cpp:559
static int g_yyLineNr
current line number
Definition: xmlcode.cpp:555
void writeTooltips(CodeOutputInterface &ol)
Definition: tooltip.cpp:93
int xmlcodeYYlex(void)
static int g_inputLines
number of line in the code fragment
Definition: xmlcode.cpp:554
static TooltipManager * instance()
Definition: tooltip.cpp:45
static const char * g_inputString
the code fragment as text
Definition: xmlcode.cpp:552
static bool g_needsTermination
Definition: xmlcode.cpp:556
static int countLines()
Definition: xmlcode.cpp:703
static QCString * s
Definition: config.cpp:1042
const bool TRUE
Definition: qglobal.h:371
static FileDef * g_sourceFileDef
Definition: xmlcode.cpp:569
void resetXmlCodeParserState ( )

Definition at line 2159 of file xmlcode.cpp.

2160 {
2161  g_currentDefinition = 0;
2162  g_currentMemberDef = 0;
2163 }
static Definition * g_currentDefinition
Definition: xmlcode.cpp:570
static MemberDef * g_currentMemberDef
Definition: xmlcode.cpp:571
static void setCurrentDoc ( const QCString anchor)
static

Definition at line 580 of file xmlcode.cpp.

581 {
583  {
584  if (g_searchCtx)
585  {
587  }
588  else
589  {
591  }
592  }
593 }
static Definition * g_searchCtx
Definition: xmlcode.cpp:557
const bool FALSE
Definition: qglobal.h:370
static SearchIndexIntf * searchIndex
Definition: doxygen.h:133
virtual void setCurrentDoc(Definition *ctx, const char *anchor, bool isSourceFile)=0
const bool TRUE
Definition: qglobal.h:371
virtual QCString anchor() const =0
static FileDef * g_sourceFileDef
Definition: xmlcode.cpp:569
static void startCodeLine ( )
static

start a new line of code, inserting a line number if g_sourceFileDef is TRUE. If a definition starts at the current line, then the line number is linked to the documentation of that definition.

Definition at line 599 of file xmlcode.cpp.

600 {
601  if (g_sourceFileDef)
602  {
604 
605  if (!g_includeCodeFragment && d && d->isLinkableInProject())
606  {
609  //g_insideBody = FALSE;
610  g_classScope = d->name().copy();
611  QCString lineAnchor;
612  lineAnchor.sprintf("l%05d",g_yyLineNr);
613  if (g_currentMemberDef)
614  {
618  setCurrentDoc(lineAnchor);
619  }
620  else
621  {
623  d->getOutputFileBase(),
624  0,g_yyLineNr);
625  setCurrentDoc(lineAnchor);
626  }
627  }
628  else
629  {
631  }
632  }
633 
635 
636  if (g_currentFontClass)
637  {
639  }
640 }
virtual QCString getReference() const
QCString getReference() const
Definition: memberdef.cpp:1001
virtual void writeLineNumber(const char *ref, const char *file, const char *anchor, int lineNumber)=0
MemberDef * getSourceMember(int lineNr) const
Definition: filedef.cpp:1226
virtual bool isLinkableInProject() const =0
static void setCurrentDoc(const QCString &anchor)
Definition: xmlcode.cpp:580
virtual void startFontClass(const char *clsName)=0
static const char * g_currentFontClass
Definition: xmlcode.cpp:573
virtual QCString getOutputFileBase() const =0
QCString copy() const
Definition: qcstring.h:250
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
const QCString & name() const
Definition: definition.h:114
Definition * getSourceDefinition(int lineNr) const
Definition: filedef.cpp:1215
QCString anchor() const
Definition: memberdef.cpp:1031
static Definition * g_currentDefinition
Definition: xmlcode.cpp:570
static bool g_includeCodeFragment
Definition: xmlcode.cpp:572
static int g_yyLineNr
current line number
Definition: xmlcode.cpp:555
QCString & sprintf(const char *format,...)
Definition: qcstring.cpp:27
static QCString g_classScope
Definition: xmlcode.cpp:565
virtual void startCodeLine(bool hasLineNumbers)=0
QCString getOutputFileBase() const
Definition: memberdef.cpp:941
static MemberDef * g_currentMemberDef
Definition: xmlcode.cpp:571
static FileDef * g_sourceFileDef
Definition: xmlcode.cpp:569
static void startFontClass ( const char *  s)
static

Definition at line 695 of file xmlcode.cpp.

696 {
697  endFontClass();
700 }
virtual void startFontClass(const char *clsName)=0
static const char * g_currentFontClass
Definition: xmlcode.cpp:573
static CodeOutputInterface * g_code
Definition: xmlcode.cpp:548
static QCString * s
Definition: config.cpp:1042
static void endFontClass()
Definition: xmlcode.cpp:642
while ( )

Definition at line 947 of file xmlcode.cpp.

948  {
949  yy_cp = (yy_c_buf_p);
950 
951  /* Support of xmlcodeYYtext. */
952  *yy_cp = (yy_hold_char);
953 
954  /* yy_bp points to the position in yy_ch_buf of the start of
955  * the current run.
956  */
957  yy_bp = yy_cp;
958 
959  yy_current_state = (yy_start);
960 yy_match:
961  do
962  {
963  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
964  if ( yy_accept[yy_current_state] )
965  {
966  (yy_last_accepting_state) = yy_current_state;
968  }
969  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
970  {
971  yy_current_state = (int) yy_def[yy_current_state];
972  if ( yy_current_state >= 45 )
973  yy_c = yy_meta[(unsigned int) yy_c];
974  }
975  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
976  ++yy_cp;
977  }
978  while ( yy_current_state != 44 );
980  yy_current_state = (yy_last_accepting_state);
981 
982 yy_find_action:
983  yy_act = yy_accept[yy_current_state];
984 
986 
987 do_action: /* This label is used only to access EOF actions. */
988 
989  switch ( yy_act )
990  { /* beginning of action switch */
991  case 0: /* must back up */
992  /* undo the effects of YY_DO_BEFORE_ACTION */
993  *yy_cp = (yy_hold_char);
995  yy_current_state = (yy_last_accepting_state);
996  goto yy_find_action;
997 
998 case 1:
1000 #line 248 "xmlcode.l"
1001 {
1003  }
1004  YY_BREAK
1005 case 2:
1007 #line 251 "xmlcode.l"
1008 {
1009  endFontClass();
1011  }
1012  YY_BREAK
1013 case 3:
1015 #line 255 "xmlcode.l"
1016 {
1017  endFontClass();
1019  }
1020  YY_BREAK
1021 case 4:
1023 #line 259 "xmlcode.l"
1024 {
1025  endFontClass();
1027  }
1028  YY_BREAK
1029 case 5:
1031 #line 263 "xmlcode.l"
1032 {
1033  startFontClass("keyword");
1035  endFontClass();
1036  }
1037  YY_BREAK
1038 case 6:
1039 /* rule 6 can match eol */
1041 #line 268 "xmlcode.l"
1042 {
1043  startFontClass("stringliteral");
1045  endFontClass();
1046  }
1047  YY_BREAK
1048 case 7:
1050 #line 274 "xmlcode.l"
1051 {
1052  // Write the < in a different color
1053  char openBracket[] = { xmlcodeYYtext[0], '\0' };
1054  codify(openBracket);
1055 
1056  // Then write the rest
1057  xmlcodeYYtext++;
1058  startFontClass("keywordtype");
1060  endFontClass();
1061 
1062  BEGIN(INITIAL);
1063  }
1064  YY_BREAK
1065 case 8:
1067 #line 287 "xmlcode.l"
1068 {
1069  // Write the "</" in a different color
1070  char closeBracket[] = { xmlcodeYYtext[0], xmlcodeYYtext[1], '\0' };
1071  endFontClass();
1072  codify(closeBracket);
1073 
1074  // Then write the rest
1075  xmlcodeYYtext++; // skip the '<'
1076  xmlcodeYYtext++; // skip the '/'
1077  startFontClass("keywordtype");
1079  endFontClass();
1080 
1081  BEGIN(INITIAL);
1082  }
1083  YY_BREAK
1084 case 9:
1085 /* rule 9 can match eol */
1087 #line 302 "xmlcode.l"
1088 {
1089  // Strip off the extra '!'
1090  // xmlcodeYYtext++; // <
1091  // *xmlcodeYYtext = '<'; // replace '!' with '<'
1092 
1093  startFontClass("comment");
1095  endFontClass();
1096  }
1097  YY_BREAK
1098 case 10:
1099 /* rule 10 can match eol */
1101 #line 311 "xmlcode.l"
1102 {
1104  }
1105  YY_BREAK
1106 case 11:
1108 #line 315 "xmlcode.l"
1109 {
1110  //printf("!ERROR(%c)\n", *xmlcodeYYtext);
1112  }
1113  YY_BREAK
1114 case 12:
1116 #line 320 "xmlcode.l"
1117 ECHO;
1118  YY_BREAK
1119 #line 1120 "/nova/app/home/novasoft/doxygen/doxygen-1.8.11/build/generated_src/xmlcode.cpp"
1120 case YY_STATE_EOF(INITIAL):
1121  yyterminate();
1122 
1123  case YY_END_OF_BUFFER:
1124  {
1125  /* Amount of text matched not including the EOB char. */
1126  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1127 
1128  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1129  *yy_cp = (yy_hold_char);
1131 
1132  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1133  {
1134  /* We're scanning a new file or input source. It's
1135  * possible that this happened because the user
1136  * just pointed xmlcodeYYin at a new source and called
1137  * xmlcodeYYlex(). If so, then we have to assure
1138  * consistency between YY_CURRENT_BUFFER and our
1139  * globals. Here is the right place to do so, because
1140  * this is the first action (other than possibly a
1141  * back-up) that will match for the new input source.
1142  */
1143  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1144  YY_CURRENT_BUFFER_LVALUE->yy_input_file = xmlcodeYYin;
1145  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1146  }
1147 
1148  /* Note that here we test for yy_c_buf_p "<=" to the position
1149  * of the first EOB in the buffer, since yy_c_buf_p will
1150  * already have been incremented past the NUL character
1151  * (since all states make transitions on EOB to the
1152  * end-of-buffer state). Contrast this with the test
1153  * in input().
1154  */
1155  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1156  { /* This was really a NUL. */
1157  yy_state_type yy_next_state;
1158 
1159  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1160 
1161  yy_current_state = yy_get_previous_state( );
1162 
1163  /* Okay, we're now positioned to make the NUL
1164  * transition. We couldn't have
1165  * yy_get_previous_state() go ahead and do it
1166  * for us because it doesn't know how to deal
1167  * with the possibility of jamming (and we don't
1168  * want to build jamming into it because then it
1169  * will run more slowly).
1170  */
1171 
1172  yy_next_state = yy_try_NUL_trans( yy_current_state );
1173 
1175 
1176  if ( yy_next_state )
1177  {
1178  /* Consume the NUL. */
1179  yy_cp = ++(yy_c_buf_p);
1180  yy_current_state = yy_next_state;
1181  goto yy_match;
1182  }
1183 
1184  else
1185  {
1187  yy_current_state = (yy_last_accepting_state);
1188  goto yy_find_action;
1189  }
1190  }
1191 
1192  else switch ( yy_get_next_buffer( ) )
1193  {
1194  case EOB_ACT_END_OF_FILE:
1195  {
1197 
1198  if ( xmlcodeYYwrap( ) )
1199  {
1200  /* Note: because we've taken care in
1201  * yy_get_next_buffer() to have set up
1202  * xmlcodeYYtext, we can now set up
1203  * yy_c_buf_p so that if some total
1204  * hoser (like flex itself) wants to
1205  * call the scanner after we return the
1206  * YY_NULL, it'll still work - another
1207  * YY_NULL will get returned.
1208  */
1210 
1212  goto do_action;
1213  }
1214 
1215  else
1216  {
1217  if ( ! (yy_did_buffer_switch_on_eof) )
1218  YY_NEW_FILE;
1219  }
1220  break;
1221  }
1222 
1223  case EOB_ACT_CONTINUE_SCAN:
1224  (yy_c_buf_p) =
1225  (yytext_ptr) + yy_amount_of_matched_text;
1226 
1227  yy_current_state = yy_get_previous_state( );
1228 
1229  yy_cp = (yy_c_buf_p);
1231  goto yy_match;
1232 
1233  case EOB_ACT_LAST_MATCH:
1234  (yy_c_buf_p) =
1235  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1236 
1237  yy_current_state = yy_get_previous_state( );
1238 
1239  yy_cp = (yy_c_buf_p);
1241  goto yy_find_action;
1242  }
1243  break;
1244  }
1245 
1246  default:
1248  "fatal flex scanner internal error--no action found" );
1249  } /* end of action switch */
1250  } /* end of scanning one token */
static yyconst flex_int32_t yy_meta[21]
Definition: xmlcode.cpp:435
static yyconst flex_int32_t yy_ec[256]
Definition: xmlcode.cpp:403
static yyconst flex_int16_t yy_def[54]
Definition: xmlcode.cpp:451
#define YY_STATE_EOF(state)
Definition: xmlcode.cpp:154
static int yy_start
Definition: xmlcode.cpp:299
static yyconst flex_int16_t yy_chk[121]
Definition: xmlcode.cpp:478
#define YY_BUFFER_NORMAL
Definition: xmlcode.cpp:255
static int yy_get_next_buffer(void)
Definition: xmlcode.cpp:1260
static yyconst flex_int16_t yy_base[54]
Definition: xmlcode.cpp:441
char * xmlcodeYYtext
Definition: xmlcode.cpp:508
int yy_state_type
Definition: code.cpp:361
#define YY_DO_BEFORE_ACTION
Definition: xmlcode.cpp:378
static int yy_did_buffer_switch_on_eof
Definition: xmlcode.cpp:304
static void codify(const char *text)
Definition: xmlcode.cpp:575
static int yy_n_chars
Definition: xmlcode.cpp:293
static yy_state_type yy_get_previous_state(void)
Definition: xmlcode.cpp:1394
#define EOB_ACT_CONTINUE_SCAN
Definition: xmlcode.cpp:179
register int yy_act
Definition: xmlcode.cpp:914
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
Definition: xmlcode.cpp:1426
#define BEGIN
Definition: xmlcode.cpp:144
static void startFontClass(const char *s)
Definition: xmlcode.cpp:695
static yyconst flex_int16_t yy_nxt[121]
Definition: xmlcode.cpp:461
#define YY_SC_TO_UI(c)
Definition: xmlcode.cpp:138
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
#define YY_BUFFER_NEW
Definition: xmlcode.cpp:254
static void codifyLines(char *text)
Definition: xmlcode.cpp:668
#define yytext_ptr
Definition: xmlcode.cpp:368
#define INITIAL
Definition: xmlcode.cpp:738
static yy_state_type yy_last_accepting_state
Definition: xmlcode.cpp:495
#define YY_END_OF_BUFFER
Definition: xmlcode.cpp:386
unsigned char YY_CHAR
Definition: code.cpp:357
#define YY_RULE_SETUP
Definition: xmlcode.cpp:905
register char * yy_bp
Definition: xmlcode.cpp:913
#define YY_MORE_ADJ
Definition: xmlcode.cpp:506
#define yyterminate()
Definition: xmlcode.cpp:867
#define ECHO
Definition: xmlcode.cpp:823
#define YY_NEW_FILE
Definition: xmlcode.cpp:157
#define YY_RESTORE_YY_MORE_OFFSET
Definition: xmlcode.cpp:507
#define xmlcodeYYwrap(n)
Definition: xmlcode.cpp:354
#define YY_START
Definition: xmlcode.cpp:150
register char * yy_cp
Definition: xmlcode.cpp:913
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
#define EOB_ACT_LAST_MATCH
Definition: xmlcode.cpp:181
#define YY_FATAL_ERROR(msg)
Definition: xmlcode.cpp:877
#define EOB_ACT_END_OF_FILE
Definition: xmlcode.cpp:180
#define YY_BREAK
Definition: xmlcode.cpp:902
static yyconst flex_int16_t yy_accept[45]
Definition: xmlcode.cpp:394
static void endFontClass()
Definition: xmlcode.cpp:642
static char yy_hold_char
Definition: xmlcode.cpp:292
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
static char * yy_last_accepting_cpos
Definition: xmlcode.cpp:496
YY_BUFFER_STATE xmlcodeYY_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1590 of file xmlcode.cpp.

1591 {
1593 
1594  b = (YY_BUFFER_STATE) xmlcodeYYalloc(sizeof( struct yy_buffer_state ) );
1595  if ( ! b )
1596  YY_FATAL_ERROR( "out of dynamic memory in xmlcodeYY_create_buffer()" );
1597 
1598  b->yy_buf_size = size;
1599 
1600  /* yy_ch_buf has to be 2 characters longer than the size given because
1601  * we need to put in 2 end-of-buffer characters.
1602  */
1603  b->yy_ch_buf = (char *) xmlcodeYYalloc(b->yy_buf_size + 2 );
1604  if ( ! b->yy_ch_buf )
1605  YY_FATAL_ERROR( "out of dynamic memory in xmlcodeYY_create_buffer()" );
1606 
1607  b->yy_is_our_buffer = 1;
1608 
1610 
1611  return b;
1612 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: xmlcode.cpp:172
yy_size_t yy_buf_size
Definition: code.cpp:218
static void xmlcodeYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: xmlcode.cpp:1637
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
static bool * b
Definition: config.cpp:1043
void * xmlcodeYYalloc(yy_size_t)
Definition: xmlcode.cpp:2053
#define YY_FATAL_ERROR(msg)
Definition: xmlcode.cpp:877
void xmlcodeYY_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with xmlcodeYY_create_buffer()

Definition at line 1618 of file xmlcode.cpp.

1619 {
1620 
1621  if ( ! b )
1622  return;
1623 
1624  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1626 
1627  if ( b->yy_is_our_buffer )
1628  xmlcodeYYfree((void *) b->yy_ch_buf );
1629 
1630  xmlcodeYYfree((void *) b );
1631 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: xmlcode.cpp:172
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
void xmlcodeYYfree(void *)
Definition: xmlcode.cpp:2070
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
void xmlcodeYY_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1665 of file xmlcode.cpp.

1666 {
1667  if ( ! b )
1668  return;
1669 
1670  b->yy_n_chars = 0;
1671 
1672  /* We always need two end-of-buffer characters. The first causes
1673  * a transition to the end-of-buffer state. The second causes
1674  * a jam in that state.
1675  */
1678 
1679  b->yy_buf_pos = &b->yy_ch_buf[0];
1680 
1681  b->yy_at_bol = 1;
1683 
1684  if ( b == YY_CURRENT_BUFFER )
1686 }
char * yy_buf_pos
Definition: code.cpp:213
int yy_n_chars
Definition: code.cpp:223
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
#define YY_BUFFER_NEW
Definition: xmlcode.cpp:254
char * yy_ch_buf
Definition: code.cpp:212
#define YY_END_OF_BUFFER_CHAR
Definition: xmlcode.cpp:159
static void xmlcodeYY_load_buffer_state(void)
Definition: xmlcode.cpp:1576
int yy_buffer_status
Definition: code.cpp:252
static void xmlcodeYY_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 1637 of file xmlcode.cpp.

1639 {
1640  int oerrno = errno;
1641 
1643 
1644  b->yy_input_file = file;
1645  b->yy_fill_buffer = 1;
1646 
1647  /* If b is the current buffer, then xmlcodeYY_init_buffer was _probably_
1648  * called from xmlcodeYYrestart() or through yy_get_next_buffer.
1649  * In that case, we don't want to reset the lineno or column.
1650  */
1651  if (b != YY_CURRENT_BUFFER){
1652  b->yy_bs_lineno = 1;
1653  b->yy_bs_column = 0;
1654  }
1655 
1656  b->yy_is_interactive = 0;
1657 
1658  errno = oerrno;
1659 }
FILE * yy_input_file
Definition: code.cpp:210
void xmlcodeYY_flush_buffer(YY_BUFFER_STATE b)
Definition: xmlcode.cpp:1665
int yy_fill_buffer
Definition: code.cpp:250
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
int yy_bs_lineno
Definition: code.cpp:244
int errno
Contains the last error code.
Definition: structcmd.h:53
int yy_bs_column
Definition: code.cpp:245
int yy_is_interactive
Definition: code.cpp:236
static void xmlcodeYY_load_buffer_state ( void  )
static

Definition at line 1576 of file xmlcode.cpp.

1577 {
1578  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1579  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1580  xmlcodeYYin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1581  (yy_hold_char) = *(yy_c_buf_p);
1582 }
static int yy_n_chars
Definition: xmlcode.cpp:293
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
#define yytext_ptr
Definition: xmlcode.cpp:368
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static char yy_hold_char
Definition: xmlcode.cpp:292
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
YY_BUFFER_STATE xmlcodeYY_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1792 of file xmlcode.cpp.

1793 {
1795 
1796  if ( size < 2 ||
1799  /* They forgot to leave room for the EOB's. */
1800  return 0;
1801 
1802  b = (YY_BUFFER_STATE) xmlcodeYYalloc(sizeof( struct yy_buffer_state ) );
1803  if ( ! b )
1804  YY_FATAL_ERROR( "out of dynamic memory in xmlcodeYY_scan_buffer()" );
1805 
1806  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1807  b->yy_buf_pos = b->yy_ch_buf = base;
1808  b->yy_is_our_buffer = 0;
1809  b->yy_input_file = 0;
1810  b->yy_n_chars = b->yy_buf_size;
1811  b->yy_is_interactive = 0;
1812  b->yy_at_bol = 1;
1813  b->yy_fill_buffer = 0;
1815 
1817 
1818  return b;
1819 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: xmlcode.cpp:172
char * yy_buf_pos
Definition: code.cpp:213
FILE * yy_input_file
Definition: code.cpp:210
int yy_n_chars
Definition: code.cpp:223
int yy_fill_buffer
Definition: code.cpp:250
yy_size_t yy_buf_size
Definition: code.cpp:218
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
#define YY_BUFFER_NEW
Definition: xmlcode.cpp:254
char * yy_ch_buf
Definition: code.cpp:212
#define YY_END_OF_BUFFER_CHAR
Definition: xmlcode.cpp:159
int yy_is_our_buffer
Definition: code.cpp:229
void xmlcodeYY_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Definition: xmlcode.cpp:1545
static bool * b
Definition: config.cpp:1043
void * xmlcodeYYalloc(yy_size_t)
Definition: xmlcode.cpp:2053
int yy_is_interactive
Definition: code.cpp:236
#define YY_FATAL_ERROR(msg)
Definition: xmlcode.cpp:877
int yy_buffer_status
Definition: code.cpp:252
YY_BUFFER_STATE xmlcodeYY_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to xmlcodeYYlex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 1842 of file xmlcode.cpp.

1843 {
1845  char *buf;
1846  yy_size_t n;
1847  int i;
1848 
1849  /* Get memory for full buffer, including space for trailing EOB's. */
1850  n = _yybytes_len + 2;
1851  buf = (char *) xmlcodeYYalloc(n );
1852  if ( ! buf )
1853  YY_FATAL_ERROR( "out of dynamic memory in xmlcodeYY_scan_bytes()" );
1854 
1855  for ( i = 0; i < _yybytes_len; ++i )
1856  buf[i] = yybytes[i];
1857 
1858  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1859 
1860  b = xmlcodeYY_scan_buffer(buf,n );
1861  if ( ! b )
1862  YY_FATAL_ERROR( "bad buffer in xmlcodeYY_scan_bytes()" );
1863 
1864  /* It's okay to grow etc. this buffer, and we should throw it
1865  * away when we're done.
1866  */
1867  b->yy_is_our_buffer = 1;
1868 
1869  return b;
1870 }
std::void_t< T > n
#define YY_END_OF_BUFFER_CHAR
Definition: xmlcode.cpp:159
int yy_is_our_buffer
Definition: code.cpp:229
static bool * b
Definition: config.cpp:1043
void * xmlcodeYYalloc(yy_size_t)
Definition: xmlcode.cpp:2053
YY_BUFFER_STATE xmlcodeYY_scan_buffer(char *base, yy_size_t size)
Definition: xmlcode.cpp:1792
#define YY_FATAL_ERROR(msg)
Definition: xmlcode.cpp:877
size_t yy_size_t
Definition: code.cpp:203
YY_BUFFER_STATE xmlcodeYY_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string. The next call to xmlcodeYYlex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use xmlcodeYY_scan_bytes() instead.

Definition at line 1829 of file xmlcode.cpp.

1830 {
1831 
1832  return xmlcodeYY_scan_bytes(yystr,strlen(yystr) );
1833 }
YY_BUFFER_STATE xmlcodeYY_scan_bytes(yyconst char *bytes, int len)
Definition: xmlcode.cpp:1842
void xmlcodeYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1545 of file xmlcode.cpp.

1546 {
1547 
1548  /* TODO. We should be able to replace this entire function body
1549  * with
1550  * xmlcodeYYpop_buffer_state();
1551  * xmlcodeYYpush_buffer_state(new_buffer);
1552  */
1554  if ( YY_CURRENT_BUFFER == new_buffer )
1555  return;
1556 
1557  if ( YY_CURRENT_BUFFER )
1558  {
1559  /* Flush out information for old buffer. */
1560  *(yy_c_buf_p) = (yy_hold_char);
1561  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1562  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1563  }
1564 
1565  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1567 
1568  /* We don't actually know whether we did this switch during
1569  * EOF (xmlcodeYYwrap()) processing, but the only time this flag
1570  * is looked at is after xmlcodeYYwrap() is called, so it's safe
1571  * to go ahead and always set it.
1572  */
1574 }
static void xmlcodeYYensure_buffer_stack(void)
Definition: xmlcode.cpp:1743
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
static int yy_did_buffer_switch_on_eof
Definition: xmlcode.cpp:304
static int yy_n_chars
Definition: xmlcode.cpp:293
static void xmlcodeYY_load_buffer_state(void)
Definition: xmlcode.cpp:1576
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static char yy_hold_char
Definition: xmlcode.cpp:292
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
void * xmlcodeYYalloc ( yy_size_t  size)

Definition at line 2053 of file xmlcode.cpp.

2054 {
2055  return (void *) malloc( size );
2056 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
static void xmlcodeYYensure_buffer_stack ( void  )
static

Definition at line 1743 of file xmlcode.cpp.

1744 {
1745  int num_to_alloc;
1746 
1747  if (!(yy_buffer_stack)) {
1748 
1749  /* First allocation is just for 2 elements, since we don't know if this
1750  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1751  * immediate realloc on the next call.
1752  */
1753  num_to_alloc = 1;
1755  (num_to_alloc * sizeof(struct yy_buffer_state*)
1756  );
1757  if ( ! (yy_buffer_stack) )
1758  YY_FATAL_ERROR( "out of dynamic memory in xmlcodeYYensure_buffer_stack()" );
1759 
1760  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1761 
1762  (yy_buffer_stack_max) = num_to_alloc;
1763  (yy_buffer_stack_top) = 0;
1764  return;
1765  }
1766 
1767  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1768 
1769  /* Increase the buffer to prepare for a possible push. */
1770  int grow_size = 8 /* arbitrary grow size */;
1771 
1772  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1774  ((yy_buffer_stack),
1775  num_to_alloc * sizeof(struct yy_buffer_state*)
1776  );
1777  if ( ! (yy_buffer_stack) )
1778  YY_FATAL_ERROR( "out of dynamic memory in xmlcodeYYensure_buffer_stack()" );
1779 
1780  /* zero only the new slots.*/
1781  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1782  (yy_buffer_stack_max) = num_to_alloc;
1783  }
1784 }
void * xmlcodeYYrealloc(void *, yy_size_t)
Definition: xmlcode.cpp:2058
static YY_BUFFER_STATE * yy_buffer_stack
Definition: xmlcode.cpp:274
static size_t yy_buffer_stack_max
Definition: xmlcode.cpp:273
static size_t yy_buffer_stack_top
Definition: xmlcode.cpp:272
void * xmlcodeYYalloc(yy_size_t)
Definition: xmlcode.cpp:2053
#define YY_FATAL_ERROR(msg)
Definition: xmlcode.cpp:877
void xmlcodeYYfree ( void *  ptr)

Definition at line 2070 of file xmlcode.cpp.

2071 {
2072  free( (char *) ptr ); /* see xmlcodeYYrealloc() for (char *) cast */
2073 }
int xmlcodeYYget_debug ( void  )

Definition at line 1969 of file xmlcode.cpp.

1970 {
1971  return xmlcodeYY_flex_debug;
1972 }
int xmlcodeYY_flex_debug
Definition: xmlcode.cpp:499
YY_EXTRA_TYPE xmlcodeYYget_extra ( void  )
FILE * xmlcodeYYget_in ( void  )

Get the input stream.

Definition at line 1913 of file xmlcode.cpp.

1914 {
1915  return xmlcodeYYin;
1916 }
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
int xmlcodeYYget_leng ( void  )

Get the length of the current token.

Definition at line 1929 of file xmlcode.cpp.

1930 {
1931  return xmlcodeYYleng;
1932 }
int xmlcodeYYleng
Definition: xmlcode.cpp:294
int xmlcodeYYget_lineno ( void  )

Get the current line number.

Definition at line 1904 of file xmlcode.cpp.

1905 {
1906 
1907  return xmlcodeYYlineno;
1908 }
int xmlcodeYYlineno
Definition: xmlcode.cpp:365
FILE * xmlcodeYYget_out ( void  )

Get the output stream.

Definition at line 1921 of file xmlcode.cpp.

1922 {
1923  return xmlcodeYYout;
1924 }
FILE * xmlcodeYYout
Definition: xmlcode.cpp:359
char * xmlcodeYYget_text ( void  )

Get the current token.

Definition at line 1938 of file xmlcode.cpp.

1939 {
1940  return xmlcodeYYtext;
1941 }
char * xmlcodeYYtext
Definition: xmlcode.cpp:508
int xmlcodeYYlex ( void  )
int xmlcodeYYlex_destroy ( void  )

Definition at line 2008 of file xmlcode.cpp.

2009 {
2010 
2011  /* Pop the buffer stack, destroying each element. */
2012  while(YY_CURRENT_BUFFER){
2014  YY_CURRENT_BUFFER_LVALUE = NULL;
2016  }
2017 
2018  /* Destroy the stack itself. */
2020  (yy_buffer_stack) = NULL;
2021 
2022  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2023  * xmlcodeYYlex() is called, initialization will occur. */
2024  yy_init_globals( );
2025 
2026  return 0;
2027 }
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
static int yy_init_globals(void)
Definition: xmlcode.cpp:1979
void xmlcodeYYfree(void *)
Definition: xmlcode.cpp:2070
void xmlcodeYYpop_buffer_state(void)
Definition: xmlcode.cpp:1724
static YY_BUFFER_STATE * yy_buffer_stack
Definition: xmlcode.cpp:274
void xmlcodeYY_delete_buffer(YY_BUFFER_STATE b)
Definition: xmlcode.cpp:1618
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
void xmlcodeYYpop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1724 of file xmlcode.cpp.

1725 {
1726  if (!YY_CURRENT_BUFFER)
1727  return;
1728 
1730  YY_CURRENT_BUFFER_LVALUE = NULL;
1731  if ((yy_buffer_stack_top) > 0)
1732  --(yy_buffer_stack_top);
1733 
1734  if (YY_CURRENT_BUFFER) {
1737  }
1738 }
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
static int yy_did_buffer_switch_on_eof
Definition: xmlcode.cpp:304
static void xmlcodeYY_load_buffer_state(void)
Definition: xmlcode.cpp:1576
static size_t yy_buffer_stack_top
Definition: xmlcode.cpp:272
void xmlcodeYY_delete_buffer(YY_BUFFER_STATE b)
Definition: xmlcode.cpp:1618
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
void xmlcodeYYpush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1694 of file xmlcode.cpp.

1695 {
1696  if (new_buffer == NULL)
1697  return;
1698 
1700 
1701  /* This block is copied from xmlcodeYY_switch_to_buffer. */
1702  if ( YY_CURRENT_BUFFER )
1703  {
1704  /* Flush out information for old buffer. */
1705  *(yy_c_buf_p) = (yy_hold_char);
1706  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1707  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1708  }
1709 
1710  /* Only push if top exists. Otherwise, replace top. */
1711  if (YY_CURRENT_BUFFER)
1712  (yy_buffer_stack_top)++;
1713  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1714 
1715  /* copied from xmlcodeYY_switch_to_buffer. */
1718 }
static void xmlcodeYYensure_buffer_stack(void)
Definition: xmlcode.cpp:1743
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
static int yy_did_buffer_switch_on_eof
Definition: xmlcode.cpp:304
static int yy_n_chars
Definition: xmlcode.cpp:293
static void xmlcodeYY_load_buffer_state(void)
Definition: xmlcode.cpp:1576
static size_t yy_buffer_stack_top
Definition: xmlcode.cpp:272
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static char yy_hold_char
Definition: xmlcode.cpp:292
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
void * xmlcodeYYrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2058 of file xmlcode.cpp.

2059 {
2060  /* The cast to (char *) in the following accommodates both
2061  * implementations that use char* generic pointers, and those
2062  * that use void* generic pointers. It works with the latter
2063  * because both ANSI C and C++ allow castless assignment from
2064  * any pointer type to void*, and deal with argument conversions
2065  * as though doing an assignment.
2066  */
2067  return (void *) realloc( (char *) ptr, size );
2068 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
void xmlcodeYYrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1528 of file xmlcode.cpp.

1529 {
1530 
1531  if ( ! YY_CURRENT_BUFFER ){
1535  }
1536 
1539 }
#define YY_BUF_SIZE
Definition: xmlcode.cpp:163
static void xmlcodeYYensure_buffer_stack(void)
Definition: xmlcode.cpp:1743
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
static void xmlcodeYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: xmlcode.cpp:1637
YY_BUFFER_STATE xmlcodeYY_create_buffer(FILE *file, int size)
Definition: xmlcode.cpp:1590
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
static void xmlcodeYY_load_buffer_state(void)
Definition: xmlcode.cpp:1576
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
void xmlcodeYYset_debug ( int  debug_flag)

Definition at line 1974 of file xmlcode.cpp.

1975 {
1976  xmlcodeYY_flex_debug = bdebug ;
1977 }
int xmlcodeYY_flex_debug
Definition: xmlcode.cpp:499
void xmlcodeYYset_extra ( YY_EXTRA_TYPE  user_defined)
void xmlcodeYYset_in ( FILE *  in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
xmlcodeYY_switch_to_buffer

Definition at line 1959 of file xmlcode.cpp.

1960 {
1961  xmlcodeYYin = in_str ;
1962 }
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
void xmlcodeYYset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1947 of file xmlcode.cpp.

1948 {
1949 
1950  xmlcodeYYlineno = line_number;
1951 }
int xmlcodeYYlineno
Definition: xmlcode.cpp:365
void xmlcodeYYset_out ( FILE *  out_str)

Definition at line 1964 of file xmlcode.cpp.

1965 {
1966  xmlcodeYYout = out_str ;
1967 }
FILE * xmlcodeYYout
Definition: xmlcode.cpp:359
static void yy_fatal_error ( yyconst char  msg[])
static
static void yy_fatal_error ( yyconst char *  msg)
static

Definition at line 1876 of file xmlcode.cpp.

1877 {
1878  (void) fprintf( stderr, "%s\n", msg );
1879  exit( YY_EXIT_FAILURE );
1880 }
void msg(const char *fmt,...)
Definition: message.cpp:107
#define YY_EXIT_FAILURE
Definition: xmlcode.cpp:1873
static int yy_get_next_buffer ( void  )
static

Definition at line 1260 of file xmlcode.cpp.

1261 {
1262  register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1263  register char *source = (yytext_ptr);
1264  register int number_to_move, i;
1265  int ret_val;
1266 
1267  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1269  "fatal flex scanner internal error--end of buffer missed" );
1270 
1271  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1272  { /* Don't try to fill the buffer, so this is an EOF. */
1273  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1274  {
1275  /* We matched a single character, the EOB, so
1276  * treat this as a final EOF.
1277  */
1278  return EOB_ACT_END_OF_FILE;
1279  }
1280 
1281  else
1282  {
1283  /* We matched some text prior to the EOB, first
1284  * process it.
1285  */
1286  return EOB_ACT_LAST_MATCH;
1287  }
1288  }
1289 
1290  /* Try to read more data. */
1291 
1292  /* First move last chars to start of buffer. */
1293  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1294 
1295  for ( i = 0; i < number_to_move; ++i )
1296  *(dest++) = *(source++);
1297 
1298  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1299  /* don't do the read, it's not guaranteed to return an EOF,
1300  * just force an EOF
1301  */
1302  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1303 
1304  else
1305  {
1306  int num_to_read =
1307  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1308 
1309  while ( num_to_read <= 0 )
1310  { /* Not enough room in the buffer - grow it. */
1311 
1312  /* just a shorter name for the current buffer */
1314 
1315  int yy_c_buf_p_offset =
1316  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1317 
1318  if ( b->yy_is_our_buffer )
1319  {
1320  int new_size = b->yy_buf_size * 2;
1321 
1322  if ( new_size <= 0 )
1323  b->yy_buf_size += b->yy_buf_size / 8;
1324  else
1325  b->yy_buf_size *= 2;
1326 
1327  b->yy_ch_buf = (char *)
1328  /* Include room in for 2 EOB chars. */
1329  xmlcodeYYrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1330  }
1331  else
1332  /* Can't grow it, we don't own it. */
1333  b->yy_ch_buf = 0;
1334 
1335  if ( ! b->yy_ch_buf )
1337  "fatal error - scanner input buffer overflow" );
1338 
1339  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1340 
1341  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1342  number_to_move - 1;
1343 
1344  }
1345 
1346  if ( num_to_read > YY_READ_BUF_SIZE )
1347  num_to_read = YY_READ_BUF_SIZE;
1348 
1349  /* Read in more data. */
1350  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1351  (yy_n_chars), (size_t) num_to_read );
1352 
1353  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1354  }
1355 
1356  if ( (yy_n_chars) == 0 )
1357  {
1358  if ( number_to_move == YY_MORE_ADJ )
1359  {
1360  ret_val = EOB_ACT_END_OF_FILE;
1362  }
1363 
1364  else
1365  {
1366  ret_val = EOB_ACT_LAST_MATCH;
1367  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1369  }
1370  }
1371 
1372  else
1373  ret_val = EOB_ACT_CONTINUE_SCAN;
1374 
1375  if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1376  /* Extend the array by 50%, plus the number we really need. */
1377  yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1378  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) xmlcodeYYrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1379  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1380  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1381  }
1382 
1383  (yy_n_chars) += number_to_move;
1386 
1387  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1388 
1389  return ret_val;
1390 }
void * xmlcodeYYrealloc(void *, yy_size_t)
Definition: xmlcode.cpp:2058
#define YY_CURRENT_BUFFER
Definition: xmlcode.cpp:282
yy_size_t yy_buf_size
Definition: code.cpp:218
void xmlcodeYYrestart(FILE *input_file)
Definition: xmlcode.cpp:1528
static int yy_n_chars
Definition: xmlcode.cpp:293
#define EOB_ACT_CONTINUE_SCAN
Definition: xmlcode.cpp:179
#define YY_INPUT(buf, result, max_size)
Definition: xmlcode.cpp:723
#define YY_READ_BUF_SIZE
Definition: xmlcode.cpp:815
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
#define yytext_ptr
Definition: xmlcode.cpp:368
char * yy_ch_buf
Definition: code.cpp:212
#define YY_END_OF_BUFFER_CHAR
Definition: xmlcode.cpp:159
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_MORE_ADJ
Definition: xmlcode.cpp:506
static bool * b
Definition: config.cpp:1043
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
#define YY_BUFFER_EOF_PENDING
Definition: xmlcode.cpp:266
#define EOB_ACT_LAST_MATCH
Definition: xmlcode.cpp:181
#define YY_FATAL_ERROR(msg)
Definition: xmlcode.cpp:877
#define EOB_ACT_END_OF_FILE
Definition: xmlcode.cpp:180
size_t yy_size_t
Definition: code.cpp:203
#define YY_CURRENT_BUFFER_LVALUE
Definition: xmlcode.cpp:289
static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1394 of file xmlcode.cpp.

1395 {
1396  register yy_state_type yy_current_state;
1397  register char *yy_cp;
1398 
1399  yy_current_state = (yy_start);
1400 
1401  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1402  {
1403  register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1404  if ( yy_accept[yy_current_state] )
1405  {
1406  (yy_last_accepting_state) = yy_current_state;
1407  (yy_last_accepting_cpos) = yy_cp;
1408  }
1409  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1410  {
1411  yy_current_state = (int) yy_def[yy_current_state];
1412  if ( yy_current_state >= 45 )
1413  yy_c = yy_meta[(unsigned int) yy_c];
1414  }
1415  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1416  }
1417 
1418  return yy_current_state;
1419 }
static yyconst flex_int32_t yy_meta[21]
Definition: xmlcode.cpp:435
static yyconst flex_int32_t yy_ec[256]
Definition: xmlcode.cpp:403
static yyconst flex_int16_t yy_def[54]
Definition: xmlcode.cpp:451
static int yy_start
Definition: xmlcode.cpp:299
static yyconst flex_int16_t yy_chk[121]
Definition: xmlcode.cpp:478
static yyconst flex_int16_t yy_base[54]
Definition: xmlcode.cpp:441
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_nxt[121]
Definition: xmlcode.cpp:461
#define YY_SC_TO_UI(c)
Definition: xmlcode.cpp:138
#define yytext_ptr
Definition: xmlcode.cpp:368
static yy_state_type yy_last_accepting_state
Definition: xmlcode.cpp:495
unsigned char YY_CHAR
Definition: code.cpp:357
#define YY_MORE_ADJ
Definition: xmlcode.cpp:506
register char * yy_cp
Definition: xmlcode.cpp:913
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static yyconst flex_int16_t yy_accept[45]
Definition: xmlcode.cpp:394
static char * yy_last_accepting_cpos
Definition: xmlcode.cpp:496
static int yy_init_globals ( void  )
static

Definition at line 1979 of file xmlcode.cpp.

1980 {
1981  /* Initialization is the same as for the non-reentrant scanner.
1982  * This function is called from xmlcodeYYlex_destroy(), so don't allocate here.
1983  */
1984 
1985  (yy_buffer_stack) = 0;
1986  (yy_buffer_stack_top) = 0;
1987  (yy_buffer_stack_max) = 0;
1988  (yy_c_buf_p) = (char *) 0;
1989  (yy_init) = 0;
1990  (yy_start) = 0;
1991 
1992 /* Defined in main.c */
1993 #ifdef YY_STDINIT
1994  xmlcodeYYin = stdin;
1995  xmlcodeYYout = stdout;
1996 #else
1997  xmlcodeYYin = (FILE *) 0;
1998  xmlcodeYYout = (FILE *) 0;
1999 #endif
2000 
2001  /* For future reference: Set errno on error, since we are called by
2002  * xmlcodeYYlex_init()
2003  */
2004  return 0;
2005 }
static int yy_start
Definition: xmlcode.cpp:299
FILE * xmlcodeYYout
Definition: xmlcode.cpp:359
FILE * xmlcodeYYin
Definition: xmlcode.cpp:359
static YY_BUFFER_STATE * yy_buffer_stack
Definition: xmlcode.cpp:274
static int yy_init
Definition: xmlcode.cpp:298
static size_t yy_buffer_stack_max
Definition: xmlcode.cpp:273
static size_t yy_buffer_stack_top
Definition: xmlcode.cpp:272
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 1426 of file xmlcode.cpp.

1427 {
1428  register int yy_is_jam;
1429  register char *yy_cp = (yy_c_buf_p);
1430 
1431  register YY_CHAR yy_c = 1;
1432  if ( yy_accept[yy_current_state] )
1433  {
1434  (yy_last_accepting_state) = yy_current_state;
1435  (yy_last_accepting_cpos) = yy_cp;
1436  }
1437  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1438  {
1439  yy_current_state = (int) yy_def[yy_current_state];
1440  if ( yy_current_state >= 45 )
1441  yy_c = yy_meta[(unsigned int) yy_c];
1442  }
1443  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1444  yy_is_jam = (yy_current_state == 44);
1445 
1446  return yy_is_jam ? 0 : yy_current_state;
1447 }
static yyconst flex_int32_t yy_meta[21]
Definition: xmlcode.cpp:435
static yyconst flex_int16_t yy_def[54]
Definition: xmlcode.cpp:451
static yyconst flex_int16_t yy_chk[121]
Definition: xmlcode.cpp:478
static yyconst flex_int16_t yy_base[54]
Definition: xmlcode.cpp:441
static yyconst flex_int16_t yy_nxt[121]
Definition: xmlcode.cpp:461
static yy_state_type yy_last_accepting_state
Definition: xmlcode.cpp:495
unsigned char YY_CHAR
Definition: code.cpp:357
register char * yy_cp
Definition: xmlcode.cpp:913
static char * yy_c_buf_p
Definition: xmlcode.cpp:297
static yyconst flex_int16_t yy_accept[45]
Definition: xmlcode.cpp:394
static char * yy_last_accepting_cpos
Definition: xmlcode.cpp:496
static int yyread ( char *  buf,
int  max_size 
)
static

Definition at line 725 of file xmlcode.cpp.

726 {
727  int c=0;
728  while( c < max_size && g_inputString[g_inputPosition] )
729  {
730  *buf = g_inputString[g_inputPosition++] ;
731  c++; buf++;
732  }
733  return c;
734 }
static int g_inputPosition
read offset during parsing
Definition: xmlcode.cpp:553
static const char * g_inputString
the code fragment as text
Definition: xmlcode.cpp:552

Variable Documentation

QCString g_args
static

Definition at line 564 of file xmlcode.cpp.

QCString g_classScope
static

Definition at line 565 of file xmlcode.cpp.

CodeOutputInterface* g_code
static

Definition at line 548 of file xmlcode.cpp.

QCString g_curClassName
static

Definition at line 549 of file xmlcode.cpp.

Definition* g_currentDefinition
static

Definition at line 570 of file xmlcode.cpp.

const char* g_currentFontClass
static

Definition at line 573 of file xmlcode.cpp.

MemberDef* g_currentMemberDef
static

Definition at line 571 of file xmlcode.cpp.

QCString g_CurrScope
static

Definition at line 567 of file xmlcode.cpp.

QCString g_exampleFile
static

Definition at line 560 of file xmlcode.cpp.

QCString g_exampleName
static

Definition at line 559 of file xmlcode.cpp.

bool g_includeCodeFragment
static

Definition at line 572 of file xmlcode.cpp.

int g_inputLines
static

number of line in the code fragment

Definition at line 554 of file xmlcode.cpp.

int g_inputPosition
static

read offset during parsing

Definition at line 553 of file xmlcode.cpp.

const char* g_inputString
static

the code fragment as text

Definition at line 552 of file xmlcode.cpp.

QCString g_name
static

Definition at line 563 of file xmlcode.cpp.

bool g_needsTermination
static

Definition at line 556 of file xmlcode.cpp.

QCString g_parmName
static

Definition at line 551 of file xmlcode.cpp.

QCString g_parmType
static

Definition at line 550 of file xmlcode.cpp.

Definition* g_searchCtx
static

Definition at line 557 of file xmlcode.cpp.

FileDef* g_sourceFileDef
static

Definition at line 569 of file xmlcode.cpp.

QCString g_type
static

Definition at line 562 of file xmlcode.cpp.

int g_yyLineNr
static

current line number

Definition at line 555 of file xmlcode.cpp.

int xmlcodeYY_flex_debug = 0

Definition at line 499 of file xmlcode.cpp.

FILE * xmlcodeYYin = (FILE *) 0

Definition at line 359 of file xmlcode.cpp.

int xmlcodeYYleng

Definition at line 294 of file xmlcode.cpp.

int xmlcodeYYlineno = 1

Definition at line 365 of file xmlcode.cpp.

FILE * xmlcodeYYout = (FILE *) 0

Definition at line 359 of file xmlcode.cpp.

char * xmlcodeYYtext

Definition at line 508 of file xmlcode.cpp.

yyconst flex_int16_t yy_accept[45]
static
Initial value:
=
{ 0,
0, 0, 13, 11, 1, 10, 10, 11, 11, 2,
11, 3, 4, 5, 1, 10, 0, 6, 0, 0,
0, 0, 0, 0, 7, 5, 0, 0, 0, 8,
7, 0, 0, 0, 0, 0, 8, 0, 0, 0,
0, 0, 9, 0
}

Definition at line 394 of file xmlcode.cpp.

register int yy_act

Definition at line 914 of file xmlcode.cpp.

yyconst flex_int16_t yy_base[54]
static
Initial value:
=
{ 0,
0, 0, 99, 100, 96, 100, 94, 15, 16, 100,
24, 100, 100, 0, 94, 100, 22, 100, 88, 23,
87, 88, 82, 0, 0, 0, 14, 20, 67, 0,
0, 24, 28, 34, 32, 62, 0, 51, 35, 29,
25, 5, 100, 100, 50, 56, 61, 63, 68, 73,
79, 83, 86
}

Definition at line 441 of file xmlcode.cpp.

register char * yy_bp

Definition at line 913 of file xmlcode.cpp.

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 274 of file xmlcode.cpp.

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 273 of file xmlcode.cpp.

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 272 of file xmlcode.cpp.

char* yy_c_buf_p = (char *) 0
static

Definition at line 297 of file xmlcode.cpp.

yyconst flex_int16_t yy_chk[121]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
8, 42, 8, 9, 9, 11, 27, 17, 11, 17,
20, 20, 28, 27, 41, 11, 32, 32, 40, 28,
33, 11, 11, 11, 35, 33, 34, 34, 39, 35,
45, 45, 45, 45, 45, 45, 46, 46, 46, 46,
46, 46, 47, 47, 38, 47, 47, 48, 48, 49,
49, 36, 49, 49, 50, 50, 29, 50, 50, 51,
51, 51, 51, 51, 51, 52, 52, 52, 53, 53,
53, 23, 22, 21, 19, 15, 7, 5, 3, 44,
44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
44, 44, 44, 44, 44, 44, 44, 44, 44, 44
}

Definition at line 478 of file xmlcode.cpp.

register char* yy_cp

Definition at line 913 of file xmlcode.cpp.

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: code.cpp:361

The main scanner function which does all the work.

Definition at line 911 of file xmlcode.cpp.

yyconst flex_int16_t yy_def[54]
static
Initial value:
=
{ 0,
44, 1, 44, 44, 44, 44, 44, 45, 46, 44,
44, 44, 44, 47, 44, 44, 45, 44, 44, 46,
44, 11, 44, 48, 49, 47, 44, 44, 44, 50,
49, 44, 44, 44, 44, 51, 50, 52, 53, 51,
51, 44, 44, 0, 44, 44, 44, 44, 44, 44,
44, 44, 44
}

Definition at line 451 of file xmlcode.cpp.

int yy_did_buffer_switch_on_eof
static

Definition at line 304 of file xmlcode.cpp.

yyconst flex_int32_t yy_ec[256]
static

Definition at line 403 of file xmlcode.cpp.

char yy_hold_char
static

Definition at line 292 of file xmlcode.cpp.

int yy_init = 0
static

Definition at line 298 of file xmlcode.cpp.

char* yy_last_accepting_cpos
static

Definition at line 496 of file xmlcode.cpp.

yy_state_type yy_last_accepting_state
static

Definition at line 495 of file xmlcode.cpp.

yyconst flex_int32_t yy_meta[21]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
2, 1, 3, 4, 1, 1, 1, 5, 6, 6
}

Definition at line 435 of file xmlcode.cpp.

int yy_n_chars
static

Definition at line 293 of file xmlcode.cpp.

yyconst flex_int16_t yy_nxt[121]
static
Initial value:
=
{ 0,
4, 5, 6, 7, 4, 8, 4, 4, 9, 4,
4, 10, 4, 4, 11, 12, 13, 14, 14, 14,
18, 43, 19, 21, 18, 22, 32, 18, 23, 19,
21, 18, 34, 33, 42, 24, 32, 17, 41, 35,
38, 25, 25, 25, 39, 38, 34, 20, 20, 39,
17, 17, 17, 17, 17, 17, 20, 20, 20, 20,
20, 20, 26, 26, 17, 26, 26, 30, 30, 31,
31, 41, 31, 31, 37, 37, 36, 37, 37, 40,
40, 40, 40, 40, 40, 38, 38, 38, 39, 39,
39, 29, 44, 28, 27, 15, 16, 15, 44, 3,
44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
44, 44, 44, 44, 44, 44, 44, 44, 44, 44
}

Definition at line 461 of file xmlcode.cpp.

int yy_start = 0
static

Definition at line 299 of file xmlcode.cpp.