浏览该文件的文档.
61 m_len = (int)strlen(s);
90 return append(s,(
int)strlen(s));
100 int copy(
char *s,
int len,
int pos=0)
const
102 if (len==0)
return 0;
103 if (pos>=
m_len) { s[0]=0;
return 0; }
105 memcpy(s,
m_str+pos,r);
Minimal string class with std::string like behaviour that fulfills the JavaCC string requirements.
VhdlString(const VhdlString &other)
VhdlString(const char *s, int size)
VhdlString(const char *s)
int copy(char *s, int len, int pos=0) const
VhdlString operator+(const char *s)
const char * data() const
void setLexParser(VhdlParser *p)
VhdlString & operator+=(char c)
VhdlString & operator+=(const char *s)
const char & operator[](int i) const
VhdlString & append(const VhdlString &other)
VhdlString & operator+=(VhdlString s)
VhdlString operator+(const char *s, VhdlString v)
VhdlString & operator=(const VhdlString &other)
Token literal values and constants.
VhdlString & append(const char *s, int size)
VhdlString substr(int pos=0, int len=-1)
VhdlString & append(const char *s)
const char * c_str() const