1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Fixup weird combination of oneline/multi line comments (#7566)

Although GCC seems to be able to grok it, it looks weird
in my editor. this is the only place in the code base where
this combination is used, so I hope its okay to remove it.
This commit is contained in:
Dirk Mueller 2020-09-02 17:55:44 +02:00 committed by GitHub
parent df01d19d29
commit 8b7126d9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,9 +124,9 @@ String::~String() {
invalidate(); invalidate();
} }
// /*********************************************/ /*********************************************/
// /* Memory Management */ /* Memory Management */
// /*********************************************/ /*********************************************/
inline void String::init(void) { inline void String::init(void) {
setSSO(true); setSSO(true);
@ -199,9 +199,9 @@ unsigned char String::changeBuffer(unsigned int maxStrLen) {
return 0; return 0;
} }
// /*********************************************/ /*********************************************/
// /* Copy and Move */ /* Copy and Move */
// /*********************************************/ /*********************************************/
String & String::copy(const char *cstr, unsigned int length) { String & String::copy(const char *cstr, unsigned int length) {
if (!reserve(length)) { if (!reserve(length)) {
@ -297,9 +297,9 @@ String & String::operator = (const __FlashStringHelper *pstr)
return *this; return *this;
} }
// /*********************************************/ /*********************************************/
// /* concat */ /* concat */
// /*********************************************/ /*********************************************/
unsigned char String::concat(const String &s) { unsigned char String::concat(const String &s) {
// Special case if we're concatting ourself (s += s;) since we may end up // 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
return a; return a;
} }
// /*********************************************/ /*********************************************/
// /* Comparison */ /* Comparison */
// /*********************************************/ /*********************************************/
int String::compareTo(const String &s) const { int String::compareTo(const String &s) const {
if(!buffer() || !s.buffer()) { if(!buffer() || !s.buffer()) {
@ -587,9 +587,9 @@ unsigned char String::endsWith(const String &s2) const {
return strcmp(&buffer()[len() - s2.len()], s2.buffer()) == 0; return strcmp(&buffer()[len() - s2.len()], s2.buffer()) == 0;
} }
// /*********************************************/ /*********************************************/
// /* Character Access */ /* Character Access */
// /*********************************************/ /*********************************************/
char String::charAt(unsigned int loc) const { char String::charAt(unsigned int loc) const {
return operator[](loc); return operator[](loc);
@ -629,9 +629,9 @@ void String::getBytes(unsigned char *buf, unsigned int bufsize, unsigned int ind
buf[n] = 0; buf[n] = 0;
} }
// /*********************************************/ /*********************************************/
// /* Search */ /* Search */
// /*********************************************/ /*********************************************/
int String::indexOf(char c) const { int String::indexOf(char c) const {
return indexOf(c, 0); return indexOf(c, 0);
@ -713,9 +713,9 @@ String String::substring(unsigned int left, unsigned int right) const {
return out; return out;
} }
// /*********************************************/ /*********************************************/
// /* Modification */ /* Modification */
// /*********************************************/ /*********************************************/
void String::replace(char find, char replace) { void String::replace(char find, char replace) {
if (!buffer()) if (!buffer())
@ -828,9 +828,9 @@ void String::trim(void) {
wbuffer()[newlen] = 0; wbuffer()[newlen] = 0;
} }
// /*********************************************/ /*********************************************/
// /* Parsing / Conversion */ /* Parsing / Conversion */
// /*********************************************/ /*********************************************/
long String::toInt(void) const { long String::toInt(void) const {
if (buffer()) if (buffer())