Added c_str() method to String class.
This commit is contained in:
parent
ccf7eb9a56
commit
8673113e43
|
@ -147,6 +147,7 @@ public:
|
||||||
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
|
void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const;
|
||||||
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const
|
||||||
{getBytes((unsigned char *)buf, bufsize, index);}
|
{getBytes((unsigned char *)buf, bufsize, index);}
|
||||||
|
char* c_str() const { return buffer; }
|
||||||
|
|
||||||
// search
|
// search
|
||||||
int indexOf( char ch ) const;
|
int indexOf( char ch ) const;
|
||||||
|
|
Loading…
Reference in New Issue