arduino-emulator
Loading...
Searching...
No Matches
String Class Reference
Inheritance diagram for String:
arduino::StringSumHelper

Public Member Functions

 String (char c)
 String (const __FlashStringHelper *str)
 String (const char *cstr, unsigned int length)
 String (const char *cstr="")
 String (const String &str)
 String (const uint8_t *cstr, unsigned int length)
 String (double, unsigned char decimalPlaces=2)
 String (float, unsigned char decimalPlaces=2)
 String (int, unsigned char base=10)
 String (long, unsigned char base=10)
 String (String &&rval)
 String (unsigned char, unsigned char base=10)
 String (unsigned int, unsigned char base=10)
 String (unsigned long, unsigned char base=10)
char * begin ()
const char * begin () const
const char * c_str () const
char charAt (unsigned int index) const
int compareTo (const char *cstr) const
int compareTo (const String &s) const
bool concat (char c)
bool concat (const __FlashStringHelper *str)
bool concat (const char *cstr)
bool concat (const char *cstr, unsigned int length)
bool concat (const String &str)
bool concat (const uint8_t *cstr, unsigned int length)
bool concat (double num)
bool concat (float num)
bool concat (int num)
bool concat (long num)
bool concat (unsigned char num)
bool concat (unsigned int num)
bool concat (unsigned long num)
char * end ()
const char * end () const
bool endsWith (const String &suffix) const
bool equals (const char *cstr) const
bool equals (const String &s) const
bool equalsIgnoreCase (const String &s) const
void getBytes (unsigned char *buf, unsigned int bufsize, unsigned int index=0) const
int indexOf (char ch) const
int indexOf (char ch, unsigned int fromIndex) const
int indexOf (const String &str) const
int indexOf (const String &str, unsigned int fromIndex) const
bool isEmpty (void) const
int lastIndexOf (char ch) const
int lastIndexOf (char ch, unsigned int fromIndex) const
int lastIndexOf (const String &str) const
int lastIndexOf (const String &str, unsigned int fromIndex) const
unsigned int length (void) const
 operator StringIfHelperType () const
String & operator+= (char c)
String & operator+= (const __FlashStringHelper *str)
String & operator+= (const char *cstr)
String & operator+= (const String &rhs)
String & operator+= (double num)
String & operator+= (float num)
String & operator+= (int num)
String & operator+= (long num)
String & operator+= (unsigned char num)
String & operator+= (unsigned int num)
String & operator+= (unsigned long num)
String & operator= (const __FlashStringHelper *str)
String & operator= (const char *cstr)
String & operator= (const String &rhs)
String & operator= (String &&rval)
char & operator[] (unsigned int index)
char operator[] (unsigned int index) const
void remove (unsigned int index)
void remove (unsigned int index, unsigned int count)
void replace (char find, char replace)
void replace (const String &find, const String &replace)
bool reserve (unsigned int size)
void setCharAt (unsigned int index, char c)
bool startsWith (const String &prefix) const
bool startsWith (const String &prefix, unsigned int offset) const
String substring (unsigned int beginIndex) const
String substring (unsigned int beginIndex, unsigned int endIndex) const
void toCharArray (char *buf, unsigned int bufsize, unsigned int index=0) const
double toDouble (void) const
float toFloat (void) const
long toInt (void) const
void toLowerCase (void)
void toUpperCase (void)
void trim (void)

Protected Member Functions

bool changeBuffer (unsigned int maxStrLen)
String & copy (const __FlashStringHelper *pstr, unsigned int length)
String & copy (const char *cstr, unsigned int length)
void init (void)
void invalidate (void)
void move (String &rhs)

Protected Attributes

char * buffer
unsigned int capacity
unsigned int len

Friends

bool operator!= (const char *a, const String &b)
bool operator!= (const String &a, const char *b)
bool operator!= (const String &a, const String &b)
StringSumHelper & operator+ (const StringSumHelper &lhs, char c)
StringSumHelper & operator+ (const StringSumHelper &lhs, const __FlashStringHelper *rhs)
StringSumHelper & operator+ (const StringSumHelper &lhs, const char *cstr)
StringSumHelper & operator+ (const StringSumHelper &lhs, const String &rhs)
StringSumHelper & operator+ (const StringSumHelper &lhs, double num)
StringSumHelper & operator+ (const StringSumHelper &lhs, float num)
StringSumHelper & operator+ (const StringSumHelper &lhs, int num)
StringSumHelper & operator+ (const StringSumHelper &lhs, long num)
StringSumHelper & operator+ (const StringSumHelper &lhs, unsigned char num)
StringSumHelper & operator+ (const StringSumHelper &lhs, unsigned int num)
StringSumHelper & operator+ (const StringSumHelper &lhs, unsigned long num)
bool operator< (const char *a, const String &b)
bool operator< (const String &a, const char *b)
bool operator< (const String &a, const String &b)
bool operator<= (const char *a, const String &b)
bool operator<= (const String &a, const char *b)
bool operator<= (const String &a, const String &b)
bool operator== (const char *a, const String &b)
bool operator== (const String &a, const char *b)
bool operator== (const String &a, const String &b)
bool operator> (const char *a, const String &b)
bool operator> (const String &a, const char *b)
bool operator> (const String &a, const String &b)
bool operator>= (const char *a, const String &b)
bool operator>= (const String &a, const char *b)
bool operator>= (const String &a, const String &b)
class StringSumHelper

The documentation for this class was generated from the following files: