diff --git a/Language/Functions/Characters/isSpace.adoc b/Language/Functions/Characters/isSpace.adoc index fa6c8ab6b..2023af0e3 100644 --- a/Language/Functions/Characters/isSpace.adoc +++ b/Language/Functions/Characters/isSpace.adoc @@ -17,7 +17,7 @@ subCategories: [ "Characters" ] [float] === Description -Analyse if a char is the space character. Returns true if thisChar contains the space character. +Analyse if a char is a white-space character. Returns true if the argument is a space, form feed (`'\f'`), newline (`'\n'`), carriage return (`'\r'`), horizontal tab (`'\t'`), or vertical tab (`'\v'`). [%hardbreaks] @@ -34,7 +34,7 @@ isSpace(thisChar) [float] === Returns -`true`: if thisChar is a space. +`true`: if thisChar is a white-space character. -- // OVERVIEW SECTION ENDS @@ -50,11 +50,11 @@ isSpace(thisChar) [source,arduino] ---- -if (isSpace(myChar)) { // tests if myChar is the space character - Serial.println("The character is a space"); +if (isSpace(myChar)) { // tests if myChar is a white-space character + Serial.println("The character is white-space"); } else { - Serial.println("The character is not a space"); + Serial.println("The character is not white-space"); } ---- diff --git a/Language/Functions/Characters/isWhitespace.adoc b/Language/Functions/Characters/isWhitespace.adoc index c8b31ac4f..4583a4027 100644 --- a/Language/Functions/Characters/isWhitespace.adoc +++ b/Language/Functions/Characters/isWhitespace.adoc @@ -17,8 +17,7 @@ subCategories: [ "Characters" ] [float] === Description -Analyse if a char is a white space, that is space, formfeed ('\f'), newline ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v')). -Returns true if thisChar contains a white space. +Analyse if a char is a space character. Returns true if the argument is a space or horizontal tab (`'\t'`). [%hardbreaks] @@ -34,7 +33,7 @@ isWhitespace(thisChar) [float] === Returns -`true`: if thisChar is a white space. +`true`: if thisChar is a space character. -- // OVERVIEW SECTION ENDS @@ -50,11 +49,11 @@ isWhitespace(thisChar) [source,arduino] ---- -if (isWhitespace(myChar)) { // tests if myChar is a white space - Serial.println("The character is a white space"); +if (isWhitespace(myChar)) { // tests if myChar is a space character + Serial.println("The character is a space or tab"); } else { - Serial.println("The character is not a white space"); + Serial.println("The character is not a space or tab"); } ----