src/idlparser/IDLParser.cc
/* Return YYSTR after stripping away unnecessary quotes and
     backslashes, so that it's suitable for yyerror.  The heuristic is
     that double-quoting is unnecessary unless the string contains an
     apostrophe, a comma, or backslash (other than backslash-backslash).
     YYSTR is taken from yytname.  */
Return YYSTR after stripping away unnecessary quotes and
backslashes, so that it's suitable for yyerror.  The heuristic is
that double-quoting is unnecessary unless the string contains an
apostrophe, a comma, or backslash (other than backslash-backslash).
YYSTR is taken from yytname.
Return YYSTR after stripping away unnecessary quotes and backslashes so that it ' s suitable for yyerror . The heuristic is that double - quoting is unnecessary unless the string contains an apostrophe a comma or backslash ( other than backslash - backslash ) . YYSTR is taken from yytname .
std::string
  IDLParser::yytnamerr_ (const char *yystr)
  {
    if (*yystr == '"')
      {
        std::string yyr = "";
        char const *yyp = yystr;
        for (;;)
          switch (*++yyp)
            {
            case '\'':
            case ',':
              goto do_not_strip_quotes;
            case '\\':
              if (*++yyp != '\\')
                goto do_not_strip_quotes;
            default:
              yyr += *yyp;
              break;
            case '"':
              return yyr;
            }
      do_not_strip_quotes: ;
      }
    return yystr;
  }
std :: string IDLParser :: yytnamerr_ ( const char * yystr ) { if ( * yystr == ' ' ) { std :: string yyr = " " ; char const * yyp = yystr ; for ( ; ; ) switch ( * ++ yyp ) { case ' \' ' : case ' ' : goto do_not_strip_quotes ; case ' \\ ' : if ( * ++ yyp != ' \\ ' ) goto do_not_strip_quotes ; default : yyr += * yyp ; break ; case ' ' : return yyr ; } do_not_strip_quotes : ; } return yystr ; }
Return YYSTR after stripping away unnecessary quotes and
backslashes, so that it's suitable for yyerror.
Return YYSTR after stripping away unnecessary quotes and backslashes so that it ' s suitable for yyerror .
// Fall through.