Lines Matching defs:alloc
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)
70 alloc = 1 + strlen(s);
71 str = strcpy( new char[alloc], s );
74 alloc = 16;
75 str = strcpy( new char[alloc], "" );
91 int alloc;
99 ref_count(1), alloc(0), str(0)
102 alloc = 1 + n;
103 str = strncpy( new char[alloc], s,n );
107 alloc = 16;
108 str = strcpy( new char[alloc], "" );
115 if (new_size <= alloc) return;
116 alloc = sc_roundup( new_size, 16 );
117 char* new_str = strcpy( new char[alloc], str );
574 if( i > s.rep->alloc - 2 ) {
576 s.rep->resize( (int) (s.rep->alloc * 1.5) );