@@ -124,9 +124,9 @@ String::~String() {
124
124
invalidate ();
125
125
}
126
126
127
- // / *********************************************/
128
- // / * Memory Management */
129
- // / *********************************************/
127
+ /* ********************************************/
128
+ /* Memory Management */
129
+ /* ********************************************/
130
130
131
131
inline void String::init (void ) {
132
132
setSSO (true );
@@ -199,9 +199,9 @@ unsigned char String::changeBuffer(unsigned int maxStrLen) {
199
199
return 0 ;
200
200
}
201
201
202
- // / *********************************************/
203
- // / * Copy and Move */
204
- // / *********************************************/
202
+ /* ********************************************/
203
+ /* Copy and Move */
204
+ /* ********************************************/
205
205
206
206
String & String::copy (const char *cstr, unsigned int length) {
207
207
if (!reserve (length)) {
@@ -297,9 +297,9 @@ String & String::operator = (const __FlashStringHelper *pstr)
297
297
return *this ;
298
298
}
299
299
300
- // / *********************************************/
301
- // / * concat */
302
- // / *********************************************/
300
+ /* ********************************************/
301
+ /* concat */
302
+ /* ********************************************/
303
303
304
304
unsigned char String::concat (const String &s) {
305
305
// Special case if we're concatting ourself (s += s;) since we may end up
@@ -483,9 +483,9 @@ StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHel
483
483
return a;
484
484
}
485
485
486
- // / *********************************************/
487
- // / * Comparison */
488
- // / *********************************************/
486
+ /* ********************************************/
487
+ /* Comparison */
488
+ /* ********************************************/
489
489
490
490
int String::compareTo (const String &s) const {
491
491
if (!buffer () || !s.buffer ()) {
@@ -587,9 +587,9 @@ unsigned char String::endsWith(const String &s2) const {
587
587
return strcmp (&buffer ()[len () - s2.len ()], s2.buffer ()) == 0 ;
588
588
}
589
589
590
- // / *********************************************/
591
- // / * Character Access */
592
- // / *********************************************/
590
+ /* ********************************************/
591
+ /* Character Access */
592
+ /* ********************************************/
593
593
594
594
char String::charAt (unsigned int loc) const {
595
595
return operator [](loc);
@@ -629,9 +629,9 @@ void String::getBytes(unsigned char *buf, unsigned int bufsize, unsigned int ind
629
629
buf[n] = 0 ;
630
630
}
631
631
632
- // / *********************************************/
633
- // / * Search */
634
- // / *********************************************/
632
+ /* ********************************************/
633
+ /* Search */
634
+ /* ********************************************/
635
635
636
636
int String::indexOf (char c) const {
637
637
return indexOf (c, 0 );
@@ -713,9 +713,9 @@ String String::substring(unsigned int left, unsigned int right) const {
713
713
return out;
714
714
}
715
715
716
- // / *********************************************/
717
- // / * Modification */
718
- // / *********************************************/
716
+ /* ********************************************/
717
+ /* Modification */
718
+ /* ********************************************/
719
719
720
720
void String::replace (char find, char replace) {
721
721
if (!buffer ())
@@ -828,9 +828,9 @@ void String::trim(void) {
828
828
wbuffer ()[newlen] = 0 ;
829
829
}
830
830
831
- // / *********************************************/
832
- // / * Parsing / Conversion */
833
- // / *********************************************/
831
+ /* ********************************************/
832
+ /* Parsing / Conversion */
833
+ /* ********************************************/
834
834
835
835
long String::toInt (void ) const {
836
836
if (buffer ())
0 commit comments