Lines Matching defs:char
59 friend sc_string_old operator+( const char*, const sc_string_old& );
62 ref_count(1), alloc( sc_roundup( size, 16 ) ), str( new char[alloc] )
67 sc_string_rep( const char* s ) : ref_count(1), alloc(0), str(0)
71 str = strcpy( new char[alloc], s );
75 str = strcpy( new char[alloc], "" );
79 sc_string_rep( const char* s, int n); // get first n chars from the string
88 void set_string( const char* s );
92 char* str;
98 sc_string_rep::sc_string_rep( const char* s, int n) :
103 str = strncpy( new char[alloc], s,n );
108 str = strcpy( new char[alloc], "" );
117 char* new_str = strcpy( new char[alloc], str );
123 sc_string_rep::set_string( const char* s )
143 sc_string_old::sc_string_old( const char* s ) : rep( new sc_string_rep(s) )
147 sc_string_old::sc_string_old( const char* s, int n ) :
179 sc_string_old::operator+( const char* s ) const
188 sc_string_old sc_string_old::operator+(char c) const
199 operator+( const char* s, const sc_string_old& t )
219 sc_string_old::operator=( const char* s )
244 sc_string_old::operator+=( const char* s )
262 sc_string_old& sc_string_old::operator+=(char c)
288 sc_string_old::cmp( const char* s ) const
299 const char* sc_string_old::c_str() const
315 char buf[32];
322 bool sc_string_old::operator op( const char* s ) const \
338 sc_string_old::operator const char*() const
343 char
349 char& sc_string_old::operator[]( int i )
359 sc_string_old::set( int i, char c )
375 sc_string_old sc_string_old::to_string(const char* format, ...)
379 char buffer[1024]; // static string buffer
388 char* buf = 0; // dynamic string buffer
393 buf = new char[buf_size];
516 sc_string_old::contains(char c)const
533 char c = temp.rep->str[i];
535 temp.rep->str[i] = static_cast<char>( c-32 );
547 char c = temp.rep->str[i];
549 temp.rep->str[i] = static_cast<char>( c+32 );
566 char* p = s.rep->str;
567 char c;