COSA
An Object-Oriented Platform for Arduino Programming
|
#include <String.hh>
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) | |
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) |
unsigned char | concat (str_P str) |
String & | operator+= (const String &rhs) |
String & | operator+= (const char *cstr) |
String & | operator+= (char c) |
String & | operator+= (unsigned char num) |
String & | operator+= (int num) |
String & | operator+= (unsigned int num) |
String & | operator+= (long num) |
String & | operator+= (unsigned long num) |
String & | operator+= (float num) |
String & | operator+= (double num) |
String & | operator+= (str_P str) |
operator StringIfHelperType () const | |
int | compareTo (const String &s) const |
unsigned char | equals (const String &s) const |
unsigned char | equals (const char *cstr) const |
unsigned char | operator== (const String &rhs) const |
unsigned char | operator== (const char *cstr) const |
unsigned char | operator!= (const String &rhs) const |
unsigned char | 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 | charAt (unsigned int index) const |
void | setCharAt (unsigned int index, char c) |
char | operator[] (unsigned int index) const |
char & | 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 | 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 |
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 |
String | substring (unsigned int beginIndex, unsigned int endIndex) const |
String | substring (unsigned int beginIndex) 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 | concat (const char *cstr, unsigned int length) |
void | init (void) |
void | invalidate (void) |
unsigned char | changeBuffer (unsigned int maxStrLen) |
String & | copy (const char *cstr, unsigned int length) |
String & | copy (str_P pstr, unsigned int length) |
void | move (String &rhs) |
Protected Attributes | |
char * | m_buffer |
the actual char array More... | |
unsigned int | m_capacity |
the array length minus one (for the '\0') More... | |
unsigned int | m_length |
the String length (not counting the '\0') More... | |
An inherited String class for holding the result of a concatenation. These result objects are assumed to be writable by subsequent concatenations.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedinherited |
Definition at line 153 of file String.cpp.
|
inherited |
Character acccess.
Definition at line 535 of file String.cpp.
|
inherited |
Definition at line 443 of file String.cpp.
|
inherited |
Concatenate value. Returns true on success, false on failure (in which case, the string is left unchanged). If the argument is null or invalid, the concatenation is considered unsucessful.
Definition at line 252 of file String.cpp.
|
inherited |
Definition at line 270 of file String.cpp.
|
inherited |
Definition at line 277 of file String.cpp.
|
inherited |
Definition at line 286 of file String.cpp.
|
inherited |
Definition at line 294 of file String.cpp.
|
inherited |
Definition at line 302 of file String.cpp.
|
inherited |
Definition at line 310 of file String.cpp.
|
inherited |
Definition at line 318 of file String.cpp.
|
inherited |
Definition at line 326 of file String.cpp.
|
inherited |
Definition at line 334 of file String.cpp.
|
inherited |
Definition at line 342 of file String.cpp.
|
protectedinherited |
Definition at line 258 of file String.cpp.
|
protectedinherited |
Copy and move.
Definition at line 163 of file String.cpp.
Definition at line 176 of file String.cpp.
|
inherited |
Definition at line 526 of file String.cpp.
|
inherited |
Definition at line 456 of file String.cpp.
|
inherited |
Definition at line 462 of file String.cpp.
|
inherited |
Definition at line 496 of file String.cpp.
|
inherited |
Definition at line 565 of file String.cpp.
|
inherited |
Search.
Definition at line 579 of file String.cpp.
|
inherited |
Definition at line 585 of file String.cpp.
|
inherited |
Definition at line 594 of file String.cpp.
|
inherited |
Definition at line 600 of file String.cpp.
|
inlineprotectedinherited |
Definition at line 127 of file String.cpp.
|
protectedinherited |
Definition at line 135 of file String.cpp.
|
inherited |
Definition at line 609 of file String.cpp.
|
inherited |
Definition at line 615 of file String.cpp.
|
inherited |
Definition at line 627 of file String.cpp.
|
inherited |
Definition at line 633 of file String.cpp.
|
inlineinherited |
|
protectedinherited |
Definition at line 188 of file String.cpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 472 of file String.cpp.
|
inherited |
Definition at line 484 of file String.cpp.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 478 of file String.cpp.
|
inherited |
Definition at line 490 of file String.cpp.
|
inherited |
Definition at line 558 of file String.cpp.
|
inherited |
Definition at line 547 of file String.cpp.
|
inherited |
Definition at line 720 of file String.cpp.
|
inherited |
Definition at line 727 of file String.cpp.
|
inherited |
Modification.
Definition at line 667 of file String.cpp.
Definition at line 676 of file String.cpp.
|
inherited |
Memory Management: Return true on success, false on failure (in which case, the string is left unchanged). reserve(0), if successful, will validate an invalid string (i.e., "if (s)" will be true afterwards)
Definition at line 144 of file String.cpp.
|
inherited |
Definition at line 541 of file String.cpp.
|
inherited |
Definition at line 510 of file String.cpp.
|
inherited |
Definition at line 517 of file String.cpp.
|
inherited |
Sub-string.
Definition at line 649 of file String.cpp.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 777 of file String.cpp.
|
inherited |
Parsing/Conversion.
Definition at line 770 of file String.cpp.
|
inherited |
Definition at line 739 of file String.cpp.
|
inherited |
Definition at line 748 of file String.cpp.
|
inherited |
Definition at line 757 of file String.cpp.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |