Changeset 59c24b6
- Timestamp:
- Jul 5, 2016, 4:35:29 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3a808fd
- Parents:
- 9bb81bb8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ExpressionNode.cc
r9bb81bb8 r59c24b6 10 10 // Created On : Sat May 16 13:17:07 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Jun 30 13:33:16201613 // Update Count : 3 1912 // Last Modified On : Tue Jul 5 13:41:55 2016 13 // Update Count : 320 14 14 // 15 15 … … 94 94 ConstantNode *ConstantNode::appendstr( const std::string *newValue ) { 95 95 assert( newValue != 0 ); 96 96 97 string value = expr->get_constant()->get_value(); 97 98 98 99 // "abc" "def" "ghi" => "abcdefghi", remove new text from quotes and insert before last quote in old string. 99 100 value.insert( value.length() - 1, newValue->substr( 1, newValue->length() - 2 ) ); 101 expr->get_constant()->set_value( value ); 100 102 101 103 delete newValue; // allocated by lexer
Note: See TracChangeset
for help on using the changeset viewer.