Home | History | Annotate | Download | only in h

Lines Matching refs:_text

160   ANTLRChar *_text;               // MR9 RJV

164 { setType(t); _line = 0; _text = NULL; setText(s); }
166 { setType((ANTLRTokenType)0); _line = 0; _text = NULL; setText(""); }
168 ~ANTLRCommonNoRefCountToken() { if (_text) delete [] _text; } // MR9 RJV: Added Destructor to remove string
174 ANTLRChar *getText() const { return _text; }
180 { if (s != _text) {
181 if (_text) delete [] _text;
183 _text = new ANTLRChar[strlen(s)+1];
184 if (_text == NULL) panic("ANTLRCommonNoRefCountToken::setText new failed");
185 strcpy(_text,s);
187 _text = new ANTLRChar[1];
188 if (_text == NULL) panic("ANTLRCommonNoRefCountToken::setText new failed");
189 strcpy(_text,"");
209 _text=NULL;
210 setText(from._text);
224 setText(rhs._text);
233 ANTLRChar *_text; // MR9 RJV:Added
237 { setType(t); _line = 0; _text = NULL; setText(s); } // MR9
239 { setType((ANTLRTokenType)0); _line = 0; _text = NULL; setText(""); } // MR9
241 virtual ~ANTLRCommonToken() { if (_text) delete [] _text; } // MR9 RJV: Added Destructor to remove string
247 ANTLRChar *getText() const { return _text; }
253 { if (s != _text) {
254 if (_text) delete [] _text;
256 _text = new ANTLRChar[strlen(s)+1];
257 if (_text == NULL) panic("ANTLRCommonToken::setText new failed");
258 strcpy(_text,s);
260 _text = new ANTLRChar[1];
261 if (_text == NULL) panic("ANTLRCommonToken::setText new failed");
262 strcpy(_text,"");
282 _text=NULL;
283 setText(from._text);
297 setText(rhs._text);