Lines Matching refs:str
83 std::string str(yytext);
86 yylloc->lines(std::count(str.begin(), str.end(), '\n'));
88 str = StringHelper::LTrim(str, "/");
89 bool isDoc = StringHelper::StartsWith(str, "**");
90 str = StringHelper::LTrimAll(str, "*");
91 str = StringHelper::RTrim(str, "/");
92 str = StringHelper::RTrimAll(str, "*");
94 yylval->str = strdup(str.c_str());
175 {COMPONENT} { yylval->str = strdup(yytext); return token::IDENTIFIER; }
176 {FQNAME} { yylval->str = strdup(yytext); return token::FQNAME; }
178 0[xX]{H}+{IS}? { yylval->str = strdup(yytext); return token::INTEGER; }
179 0{D}+{IS}? { yylval->str = strdup(yytext); return token::INTEGER; }
180 {D}+{IS}? { yylval->str = strdup(yytext); return token::INTEGER; }
181 L?\"(\\.|[^\\"])*\" { yylval->str = strdup(yytext); return token::STRING_LITERAL; }
183 {D}+{E}{FS}? { yylval->str = strdup(yytext); return token::FLOAT; }
184 {D}+\.{E}?{FS}? { yylval->str = strdup(yytext); return token::FLOAT; }
185 {D}*\.{D}+{E}?{FS}? { yylval->str = strdup(yytext); return token::FLOAT; }
190 . { yylval->str = strdup(yytext); return token::UNKNOWN; }