49 #ifdef SC_USE_SC_STRING_OLD 52 #ifdef SC_USE_STD_STRING 62 sc_string_old
operator + (
const char* s,
const sc_string_old& t );
135 const char* c_str()
const;
139 operator const char*()
const;
143 char operator[](
int index)
const;
147 char& operator[](
int index);
165 int last_char = length()-1;
169 index = temp.
pos(
"%");
170 if(index == last_char)
172 temp = substr(index,last_char);
173 }
while(temp[0] !=
'%');
174 int f_len = (int)temp.fmt_length();
175 temp =
to_string(substr(0,index+f_len-1).c_str(),t);
176 return (*
this) = temp + substr(index+f_len,last_char);
196 bool is_delimiter(
const sc_string_old& str,
unsigned index)
const;
200 bool contains(
char c)
const;
213 void set(
int index,
char c );
214 int cmp(
const char* s )
const;
218 void print( ::std::ostream& os = ::std::cout )
const;
226 void test(
int position)
const;
227 unsigned fmt_length()
const;
bool operator==(const sc_bit &a, const sc_bit &b)
bool operator!=(const sc_bit &a, const sc_bit &b)
void print(::std::ostream &os=::std::cout) const
SC_API sc_signed operator+(const sc_unsigned &u, const sc_signed &v)
bool operator>=(const sc_int_base &a, const sc_int_base &b)
bool operator<(const sc_int_base &a, const sc_int_base &b)
SC_API const std::string to_string(sc_enc)
bool operator>(const sc_int_base &a, const sc_int_base &b)
String class (yet another).
Run-time logging and reporting facilities.
sc_string_old & fmt(const T &t)
int pos(const sc_string_old &sub_string) const
inline ::std::ostream & operator<<(::std::ostream &os, const sc_bit &a)
bool operator<=(const sc_int_base &a, const sc_int_base &b)
inline ::std::istream & operator>>(::std::istream &is, sc_bit &a)