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

Public Member Functions

IRAM_ATTR String (const char *cstr="")
 
IRAM_ATTR String (const char *cstr, unsigned int length)
 
IRAM_ATTR String (const String &str)
 
IRAM_ATTR String (String &&rval)
 
IRAM_ATTR String (StringSumHelper &&rval)
 
 String (char c)
 
 String (unsigned char, unsigned char base=10)
 
 String (int, unsigned char base=10)
 
 String (unsigned int, unsigned char base=10)
 
 String (long, unsigned char base=10)
 
 String (unsigned long, unsigned char base=10)
 
 String (float, unsigned char decimalPlaces=2)
 
 String (double, unsigned char decimalPlaces=2)
 
void setString (const char *cstr, int length=-1)
 
unsigned char reserve (unsigned int size)
 
unsigned int length (void) const
 
String &IRAM_ATTR operator= (const String &rhs)
 
String &IRAM_ATTR operator= (const char *cstr)
 
Stringoperator= (String &&rval)
 
Stringoperator= (StringSumHelper &&rval)
 
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

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

Protected Attributes

char * buffer
 
uint16_t capacity
 
uint16_t len
 

Friends

StringSumHelperoperator+ (const StringSumHelper &lhs, const String &rhs)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, const char *cstr)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, char c)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, unsigned char num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, int num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, unsigned int num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, long num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, unsigned long num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, float num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, double num)
 
int splitString (String &what, int delim, Vector< long > &splits)
 
int splitString (String &what, int delim, Vector< int > &splits)
 
int splitString (String &what, int delim, Vector< String > &splits)