arduino-emulator
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
arduino::String Class Reference
Inheritance diagram for arduino::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)
 
charbegin ()
 
const charbegin () const
 
const charc_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)
 
charend ()
 
const charend () 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
 
Stringoperator+= (char c)
 
Stringoperator+= (const __FlashStringHelper *str)
 
Stringoperator+= (const char *cstr)
 
Stringoperator+= (const String &rhs)
 
Stringoperator+= (double num)
 
Stringoperator+= (float num)
 
Stringoperator+= (int num)
 
Stringoperator+= (long num)
 
Stringoperator+= (unsigned char num)
 
Stringoperator+= (unsigned int num)
 
Stringoperator+= (unsigned long num)
 
Stringoperator= (const __FlashStringHelper *str)
 
Stringoperator= (const char *cstr)
 
Stringoperator= (const String &rhs)
 
Stringoperator= (String &&rval)
 
charoperator[] (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)
 
Stringcopy (const __FlashStringHelper *pstr, unsigned int length)
 
Stringcopy (const char *cstr, unsigned int length)
 
void init (void)
 
void invalidate (void)
 
void move (String &rhs)
 

Protected Attributes

charbuffer
 
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)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, char c)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, const __FlashStringHelper *rhs)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, const char *cstr)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, const String &rhs)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, double num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, float num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, int num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, long num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, unsigned char num)
 
StringSumHelperoperator+ (const StringSumHelper &lhs, unsigned int num)
 
StringSumHelperoperator+ (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: