Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
StringSumHelper Class Reference
Inheritance diagram for StringSumHelper:
String

Public Member Functions

 StringSumHelper (const String &s)
 
 StringSumHelper (const char *p)
 
 StringSumHelper (char c)
 
 StringSumHelper (unsigned char num)
 
 StringSumHelper (int num)
 
 StringSumHelper (unsigned int num)
 
 StringSumHelper (long num)
 
 StringSumHelper (unsigned long num)
 
 StringSumHelper (float num)
 
 StringSumHelper (double num)
 
void setString (const char *cstr, int length=-1)
 
unsigned char reserve (unsigned int size)
 
unsigned int length (void) const
 
unsigned char concat (const String &str)
 
unsigned char concat (const char *cstr)
 
unsigned char concat (char c)
 
unsigned char concat (unsigned char c)
 
unsigned char concat (int num)
 
unsigned char concat (unsigned int num)
 
unsigned char concat (long num)
 
unsigned char concat (unsigned long num)
 
unsigned char concat (float num)
 
unsigned char concat (double num)
 
Stringoperator+= (const String &rhs)
 
Stringoperator+= (const char *cstr)
 
Stringoperator+= (char c)
 
Stringoperator+= (unsigned char num)
 
Stringoperator+= (int num)
 
Stringoperator+= (unsigned int num)
 
Stringoperator+= (long num)
 
Stringoperator+= (unsigned long num)
 
Stringoperator+= (float num)
 
Stringoperator+= (double num)
 
 operator StringIfHelperType () const
 
int IRAM_ATTR compareTo (const String &s) const
 
unsigned char IRAM_ATTR equals (const String &s) const
 
unsigned char IRAM_ATTR equals (const char *cstr) const
 
unsigned char IRAM_ATTR operator== (const String &rhs) const
 
unsigned char IRAM_ATTR operator== (const char *cstr) const
 
unsigned char IRAM_ATTR operator!= (const String &rhs) const
 
unsigned char IRAM_ATTR operator!= (const char *cstr) const
 
unsigned char operator< (const String &rhs) const
 
unsigned char operator> (const String &rhs) const
 
unsigned char operator<= (const String &rhs) const
 
unsigned char operator>= (const String &rhs) const
 
unsigned char equalsIgnoreCase (const String &s) const
 
unsigned char startsWith (const String &prefix) const
 
unsigned char startsWith (const String &prefix, unsigned int offset) const
 
unsigned char endsWith (const String &suffix) const
 
char IRAM_ATTR charAt (unsigned int index) const
 
void IRAM_ATTR setCharAt (unsigned int index, char c)
 
char IRAM_ATTR operator[] (unsigned int index) const
 
char &IRAM_ATTR operator[] (unsigned int index)
 
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
 
const char * c_str () const
 
int IRAM_ATTR indexOf (char ch) const
 
int indexOf (char ch, unsigned int fromIndex) const
 
int IRAM_ATTR indexOf (const String &str) const
 
int indexOf (const String &str, unsigned int fromIndex) const
 
int lastIndexOf (char ch) const
 
int lastIndexOf (char ch, int fromIndex) const
 
int lastIndexOf (const String &str) const
 
int lastIndexOf (const String &str, int fromIndex) const
 
String substring (unsigned int beginIndex) const
 
String substring (unsigned int beginIndex, unsigned int endIndex) const
 
void replace (char find, char replace)
 
void replace (const String &find, const String &replace)
 
void remove (unsigned int index)
 
void remove (unsigned int index, unsigned int count)
 
void toLowerCase (void)
 
void toUpperCase (void)
 
void trim (void)
 
long toInt (void) const
 
float toFloat (void) const
 

Protected Member Functions

unsigned char IRAM_ATTR concat (const char *cstr, unsigned int length)
 
void IRAM_ATTR init (void)
 
void IRAM_ATTR invalidate (void)
 
unsigned char IRAM_ATTR changeBuffer (unsigned int maxStrLen)
 
Stringcopy (const char *cstr, unsigned int length)
 
void move (String &rhs)
 

Protected Attributes

char * buffer
 
uint16_t capacity
 
uint16_t len