Home | History | Annotate | Download | only in h

Lines Matching refs:_text

180 	ANTLRChar *_text;               // MR9 RJV

184 { setType(t); _line = 0; _text = NULL; setText(s); }
186 { setType((ANTLRTokenType)0); _line = 0; _text = NULL; setText(""); }
188 ~ANTLRCommonNoRefCountToken() { if (_text) delete [] _text; } // MR9 RJV: Added Destructor to remove string
194 ANTLRChar *getText() const { return _text; }
200 { if (s != _text) {
201 if (_text) delete [] _text;
203 _text = new ANTLRChar[strlen(s)+1];
204 if (_text == NULL) panic("ANTLRCommonNoRefCountToken::setText new failed");
205 strcpy(_text,s);
207 _text = new ANTLRChar[1];
208 if (_text == NULL) panic("ANTLRCommonNoRefCountToken::setText new failed");
209 strcpy(_text,"");
229 _text=NULL;
230 setText(from._text);
244 setText(rhs._text);
253 ANTLRChar *_text; // MR9 RJV:Added
257 { setType(t); _line = 0; _text = NULL; setText(s); } // MR9
259 { setType((ANTLRTokenType)0); _line = 0; _text = NULL; setText(""); } // MR9
261 virtual ~ANTLRCommonToken() { if (_text) delete [] _text; } // MR9 RJV: Added Destructor to remove string
267 ANTLRChar *getText() const { return _text; }
273 { if (s != _text) {
274 if (_text) delete [] _text;
276 _text = new ANTLRChar[strlen(s)+1];
277 if (_text == NULL) panic("ANTLRCommonToken::setText new failed");
278 strcpy(_text,s);
280 _text = new ANTLRChar[1];
281 if (_text == NULL) panic("ANTLRCommonToken::setText new failed");
282 strcpy(_text,"");
302 _text=NULL;
303 setText(from._text);
317 setText(rhs._text);