+void CHARSTRING_template::set_decmatch(Dec_Match_Interface* new_instance)
+{
+ if (template_selection != DECODE_MATCH) {
+ TTCN_error("Setting the decoded content matching mechanism of a non-decmatch "
+ "charstring template.");
+ }
+ dec_match = new unichar_decmatch_struct;
+ dec_match->ref_count = 1;
+ dec_match->instance = new_instance;
+ // the character coding is only used if this template is copied to a
+ // universal charstring template
+ dec_match->coding = CharCoding::UTF_8;
+}
+