332{
334 {
335 return;
336 }
339
340#ifdef FLEX_DEBUG
342#endif
343
345 yyextra->inputString = decl.
data();
346
347 yyextra->inputPosition = 0;
348 yyextra->classTempListFound = false;
349 yyextra->funcTempListFound = false;
350 yyextra->insideObjC = lang==SrcLangExt::ObjC;
351 yyextra->insidePHP = lang==SrcLangExt::PHP;
352 yyextra->insidePython = lang==SrcLangExt::Python;
353 yyextra->scope.clear();
354 yyextra->className.clear();
355 yyextra->classTempList.clear();
356 yyextra->funcTempList.clear();
357 yyextra->name.clear();
358 yyextra->type.clear();
359 yyextra->args.clear();
360 yyextra->exceptionString.clear();
361
363 BEGIN( Start );
365
366
367
368
369 if (
size_t nb = yyextra->name.rfind(
'[') ; nb!=
DString::npos && yyextra->args.empty())
370 {
371 yyextra->args.prepend(yyextra->name.mid(nb));
372 yyextra->name=yyextra->name.left(nb);
373 }
374
375 cl=yyextra->scope;
377 size_t il=n.find('<'), ir=n.rfind('>');
379
380
381 {
383 n=n.left(il);
384 }
385
386
387
391
392 size_t len = t.length();
393 if (!t.empty() && t.at(len-1)==')')
394 {
395
396 size_t pos = t.find("decltype(");
398 {
399 size_t cnt = 1;
400 for (size_t i = pos + 9; i < len; i++)
401 {
402 if (t.at(i) == '(') cnt++;
403 else if (t.at(i) == ')')
404 {
405 cnt--;
406 if (cnt == 0)
407 {
408 if (i != len-1)
409 {
410 a.prepend(")");
411 t=t.left(len-1);
412 }
413 }
414 }
415 }
416 }
417 else
418 {
419 a.prepend(")");
420 t=t.left(len-1);
421 }
422 }
423
424
425
427 return;
428}
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
static constexpr size_t npos
value used to indicate 'not found' or 'to the end of the string', matching std::string::npos
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
static bool isFlagSet(const DebugMask mask)
static yyscan_t g_yyscanner
static struct declinfoYY_state g_declinfo_extra
DString removeRedundantWhiteSpace(const DString &s)