31
31
#include < ctype.h>
32
32
33
33
34
- // an abstract class used as a means to proide a unique pointer type
35
- // but really has no body
36
- class __FlashStringHelper ;
37
- #define FPSTR (pstr_pointer ) (reinterpret_cast <const __FlashStringHelper *>(pstr_pointer))
38
- #define F (string_literal ) (FPSTR(PSTR(string_literal)))
34
+ #define FPSTR (pstr_pointer ) (pstr_pointer)
35
+ #define F (string_literal ) (string_literal)
39
36
40
37
// An inherited class for holding the result of a concatenation. These
41
38
// result objects are assumed to be writable by subsequent concatenations.
@@ -62,7 +59,6 @@ class String {
62
59
String (const uint8_t *cstr, unsigned int length) : String((const char *)cstr, length) {}
63
60
#endif
64
61
String (const String &str);
65
- String (const __FlashStringHelper *str);
66
62
#ifdef __GXX_EXPERIMENTAL_CXX0X__
67
63
String (String &&rval);
68
64
String (StringSumHelper &&rval);
@@ -103,7 +99,6 @@ class String {
103
99
// marked as invalid ("if (s)" will be false).
104
100
String & operator =(const String &rhs);
105
101
String & operator =(const char *cstr);
106
- String & operator = (const __FlashStringHelper *str);
107
102
#ifdef __GXX_EXPERIMENTAL_CXX0X__
108
103
String & operator =(String &&rval);
109
104
String & operator =(StringSumHelper &&rval);
@@ -128,7 +123,6 @@ class String {
128
123
bool concat (double num);
129
124
bool concat (long long num);
130
125
bool concat (unsigned long long num);
131
- bool concat (const __FlashStringHelper * str);
132
126
133
127
// if there's not enough memory for the concatenated value, the string
134
128
// will be left unchanged (but this isn't signalled in any way)
@@ -180,10 +174,6 @@ class String {
180
174
concat (num);
181
175
return (*this );
182
176
}
183
- String & operator += (const __FlashStringHelper *str){
184
- concat (str);
185
- return (*this );
186
- }
187
177
188
178
friend StringSumHelper & operator +(const StringSumHelper &lhs, const String &rhs);
189
179
friend StringSumHelper & operator +(const StringSumHelper &lhs, const char *cstr);
@@ -195,7 +185,6 @@ class String {
195
185
friend StringSumHelper & operator +(const StringSumHelper &lhs, unsigned long num);
196
186
friend StringSumHelper & operator +(const StringSumHelper &lhs, float num);
197
187
friend StringSumHelper & operator +(const StringSumHelper &lhs, double num);
198
- friend StringSumHelper & operator +(const StringSumHelper &lhs, const __FlashStringHelper *rhs);
199
188
friend StringSumHelper & operator +(const StringSumHelper &lhs, long long num);
200
189
friend StringSumHelper & operator +(const StringSumHelper &lhs, unsigned long long num);
201
190
@@ -228,17 +217,11 @@ class String {
228
217
bool startsWith (const char *prefix) const {
229
218
return this ->startsWith (String (prefix));
230
219
}
231
- bool startsWith (const __FlashStringHelper *prefix) const {
232
- return this ->startsWith (String (prefix));
233
- }
234
220
bool startsWith (const String &prefix, unsigned int offset) const ;
235
221
bool endsWith (const String &suffix) const ;
236
222
bool endsWith (const char *suffix) const {
237
223
return this ->endsWith (String (suffix));
238
224
}
239
- bool endsWith (const __FlashStringHelper * suffix) const {
240
- return this ->endsWith (String (suffix));
241
- }
242
225
243
226
// character access
244
227
char charAt (unsigned int index) const ;
@@ -275,18 +258,9 @@ class String {
275
258
void replace (const char *find, const String &replace) {
276
259
this ->replace (String (find), replace);
277
260
}
278
- void replace (const __FlashStringHelper *find, const String &replace) {
279
- this ->replace (String (find), replace);
280
- }
281
261
void replace (const char *find, const char *replace) {
282
262
this ->replace (String (find), String (replace));
283
263
}
284
- void replace (const __FlashStringHelper *find, const char *replace) {
285
- this ->replace (String (find), String (replace));
286
- }
287
- void replace (const __FlashStringHelper *find, const __FlashStringHelper *replace) {
288
- this ->replace (String (find), String (replace));
289
- }
290
264
void remove (unsigned int index);
291
265
void remove (unsigned int index, unsigned int count);
292
266
void toLowerCase (void );
@@ -350,7 +324,6 @@ class String {
350
324
351
325
// copy and move
352
326
String & copy (const char *cstr, unsigned int length);
353
- String & copy (const __FlashStringHelper *pstr, unsigned int length);
354
327
#ifdef __GXX_EXPERIMENTAL_CXX0X__
355
328
void move (String &rhs);
356
329
#endif
0 commit comments