Functions
defargs.h File Reference

Go to the source code of this file.

Functions

void stringToArgumentList (const char *argsString, ArgumentList *argList, QCString *extraTypeChars=0)
 

Function Documentation

void stringToArgumentList ( const char *  argsString,
ArgumentList al,
QCString extraTypeChars 
)

Converts an argument string into an ArgumentList.

Parameters
[in]argsStringthe list of Arguments.
[out]ala reference to resulting argument list pointer.
[out]extraTypeCharspoint to string to which trailing characters for complex types are written to

Definition at line 2922 of file defargs.cpp.

2923 {
2924  if (al==0) return;
2925  if (argsString==0) return;
2926  printlex(defargsYY_flex_debug, TRUE, __FILE__, NULL);
2927 
2928  g_copyArgValue=0;
2929  g_curArgDocs.resize(0);
2931  g_curArgArray.resize(0);
2934  g_argRoundCount = 0;
2935  g_argSharpCount = 0;
2936  g_argCurlyCount = 0;
2937  g_lastDocChar = 0;
2938 
2939  g_inputString = argsString;
2940  g_inputPosition = 0;
2943  g_curArgName.resize(0);
2944  g_argList = al;
2946  BEGIN( Start );
2947  defargsYYlex();
2948  if (extraTypeChars) *extraTypeChars=g_extraTypeChars;
2949  //printf("stringToArgumentList(%s) result=%s\n",argsString,argListToString(al).data());
2950  printlex(defargsYY_flex_debug, FALSE, __FILE__, NULL);
2951 }
bool resize(uint newlen)
Definition: qcstring.h:225
static int g_lastDocChar
Definition: defargs.cpp:914
void defargsYYrestart(FILE *input_file)
Definition: defargs.cpp:2351
static int g_inputPosition
Definition: defargs.cpp:898
static QCString g_extraTypeChars
Definition: defargs.cpp:908
static int g_argRoundCount
Definition: defargs.cpp:909
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
Definition: message.cpp:242
#define Start
Definition: defargs.cpp:952
const bool FALSE
Definition: qglobal.h:370
static QCString g_curArgArray
Definition: defargs.cpp:906
static QCString g_curArgAttrib
Definition: defargs.cpp:905
static int g_argSharpCount
Definition: defargs.cpp:910
static QCString g_curArgName
Definition: defargs.cpp:903
static QCString * g_copyArgValue
Definition: defargs.cpp:900
int defargsYYlex(void)
static QCString g_curTypeConstraint
Definition: defargs.cpp:907
static const char * g_inputString
Definition: defargs.cpp:897
static QCString g_curArgDocs
Definition: defargs.cpp:904
static int g_argCurlyCount
Definition: defargs.cpp:911
#define BEGIN
Definition: defargs.cpp:144
static ArgumentList * g_argList
Definition: defargs.cpp:899
static QCString g_curArgTypeName
Definition: defargs.cpp:901
FILE * defargsYYin
Definition: defargs.cpp:359
const bool TRUE
Definition: qglobal.h:371
static QCString g_curArgDefValue
Definition: defargs.cpp:902
int defargsYY_flex_debug
Definition: defargs.cpp:808