MCPcopy Create free account
hub / github.com/SmingHub/Sming / CStringArray

Class CStringArray

Sming/Core/Data/CStringArray.h:21–407  ·  view source on GitHub ↗

* @brief Class to manage a double null-terminated list of strings, such as "one\0two\0three\0" */

Source from the content-addressed store, hash-verified

19 * @brief Class to manage a double null-terminated list of strings, such as "one\0two\0three\0"
20 */
21class CStringArray : private String
22{
23public:
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

Callers 6

toStringFunction · 0.85
parseCommandFunction · 0.85
getMethod · 0.85
formatMethod · 0.85
getLocaleDayNameMethod · 0.85
getLocaleMonthNameMethod · 0.85

Calls 2

initFunction · 0.50
StringClass · 0.50

Tested by

no test coverage detected