Lines Matching defs:sc_string_rep
49 // CLASS : sc_string_rep
54 class sc_string_rep
61 sc_string_rep( int size = 16 ) :
67 sc_string_rep( const char* s ) : ref_count(1), alloc(0), str(0)
79 sc_string_rep( const char* s, int n); // get first n chars from the string
81 ~sc_string_rep()
98 sc_string_rep::sc_string_rep( const char* s, int n) :
113 sc_string_rep::resize( int new_size )
123 sc_string_rep::set_string( const char* s )
139 sc_string_old::sc_string_old( int size ) : rep( new sc_string_rep(size) )
143 sc_string_old::sc_string_old( const char* s ) : rep( new sc_string_rep(s) )
148 rep( new sc_string_rep( s, n ) )
157 sc_string_old::sc_string_old( sc_string_rep* r ) : rep(r)
182 sc_string_rep* r = new sc_string_rep( len + strlen(s) + 1 );
191 sc_string_rep* r = new sc_string_rep( len + 2 );
202 sc_string_rep* r = new sc_string_rep( len + t.length() + 1 );
212 sc_string_rep* r = new sc_string_rep( len + s.length() + 1 );
223 rep = new sc_string_rep(s);
249 sc_string_rep* oldrep = rep;
251 rep = new sc_string_rep( oldlen + slen + 1 );
266 sc_string_rep* oldrep = rep;
268 rep = new sc_string_rep( oldlen + 2 );
353 rep = new sc_string_rep(rep->str);
363 rep = new sc_string_rep(rep->str);
562 s.rep = new sc_string_rep;