43 #ifdef SC_USE_SC_STRING_OLD
46 #ifdef SC_USE_STD_STRING
47 typedef ::std::string sc_string;
56 sc_string_old
operator + (
const char* s,
const sc_string_old& t );
129 const char*
c_str()
const;
133 operator const char*()
const;
159 int last_char =
length()-1;
163 index = temp.
pos(
"%");
164 if(index == last_char)
166 temp =
substr(index,last_char);
167 }
while(temp[0] !=
'%');
168 int f_len = (int)temp.fmt_length();
170 return (*
this) = temp +
substr(index+f_len,last_char);
207 void set(
int index,
char c );
208 int cmp(
const char* s )
const;
220 void test(
int position)
const;
221 unsigned fmt_length()
const;
static sc_string_old make_str(long n)
sc_string_old & operator+=(const char *s)
sc_string_old operator+(const char *s) const
friend systemc_ostream & operator<<(systemc_ostream &os, const sc_string_old &a)
sc_signed operator+(const sc_unsigned &u, const sc_signed &v)
bool operator!=(const char *s) const
const char * c_str() const
int pos(const sc_string_old &sub_string) const
char operator[](int index) const
bool operator==(const char *s) const
sc_string_old lowercase() const
::std::istream systemc_istream
bool operator>=(const char *s) const
bool operator>(const char *s) const
friend systemc_istream & operator>>(systemc_istream &is, sc_string_old &a)
bool contains(char c) const
void print(systemc_ostream &os=::std::cout) const
sc_string_old & fmt(const T &t)
bool operator<=(const char *s) const
sc_string_old & operator=(const char *s)
void set(int index, char c)
sc_string_old(int size=16)
bool operator<(const char *s) const
sc_string_old uppercase() const
static sc_string_old to_string(const char *format,...)
::std::ostream systemc_ostream
bool is_delimiter(const sc_string_old &str, unsigned index) const
int cmp(const char *s) const
sc_string_old & insert(const sc_string_old &sub_string, unsigned index)
inline::std::ostream & operator<<(::std::ostream &os, const sc_bit &a)
sc_string_old substr(int first, int last) const