* @brief Class to manage a double null-terminated list of strings, such as "one\0two\0three\0" */
| 19 | * @brief Class to manage a double null-terminated list of strings, such as "one\0two\0three\0" |
| 20 | */ |
| 21 | class CStringArray : private String |
| 22 | { |
| 23 | public: |
| 24 | // Inherit any safe/useful methods |
| 25 | using String::compareTo; |
| 26 | using String::equals; |
| 27 | using String::reserve; |
| 28 | using String::operator StringIfHelperType; |
| 29 | using String::operator==; |
| 30 | using String::operator!=; |
| 31 | using String::operator<; |
| 32 | using String::operator>; |
| 33 | using String::operator<=; |
| 34 | using String::operator>=; |
| 35 | using String::c_str; |
| 36 | using String::endsWith; |
| 37 | using String::equalsIgnoreCase; |
| 38 | using String::getBytes; |
| 39 | using String::length; |
| 40 | using String::startsWith; |
| 41 | using String::toCharArray; |
| 42 | using String::toLowerCase; |
| 43 | using String::toUpperCase; |
| 44 | |
| 45 | /** |
| 46 | * @name Constructors |
| 47 | * @{ |
| 48 | */ |
| 49 | CStringArray(const String& str) : String(str) |
| 50 | { |
| 51 | init(); |
| 52 | } |
| 53 | |
| 54 | CStringArray(const char* cstr = nullptr) : String(cstr) |
| 55 | { |
| 56 | init(); |
| 57 | } |
| 58 | |
| 59 | CStringArray(const char* cstr, unsigned int length) : String(cstr, length) |
| 60 | { |
| 61 | init(); |
| 62 | } |
| 63 | |
| 64 | explicit CStringArray(flash_string_t pstr, int length = -1) : String(pstr, length) |
| 65 | { |
| 66 | init(); |
| 67 | } |
| 68 | |
| 69 | CStringArray(const FlashString& fstr) : String(fstr) |
| 70 | { |
| 71 | init(); |
| 72 | } |
| 73 | |
| 74 | CStringArray(String&& rval) noexcept : String(std::move(rval)) |
| 75 | { |
| 76 | init(); |
| 77 | } |
| 78 |
no test coverage detected