![]() |
RUI3 (RAK Unified Interface 3) - RAK4631
|
Functions | |
boolean | isAlphaNumeric (int thisChar) __attribute__((always_inline)) |
boolean | isAlpha (int thisChar) __attribute__((always_inline)) |
boolean | isAscii (int thisChar) __attribute__((always_inline)) |
boolean | isWhitespace (int thisChar) __attribute__((always_inline)) |
boolean | isControl (int thisChar) __attribute__((always_inline)) |
boolean | isDigit (int thisChar) __attribute__((always_inline)) |
boolean | isGraph (int thisChar) __attribute__((always_inline)) |
boolean | isLowerCase (int thisChar) __attribute__((always_inline)) |
boolean | isPrintable (int thisChar) __attribute__((always_inline)) |
boolean | isPunct (int thisChar) __attribute__((always_inline)) |
boolean | isSpace (int thisChar) __attribute__((always_inline)) |
boolean | isUpperCase (int thisChar) __attribute__((always_inline)) |
boolean | isHexadecimalDigit (int thisChar) __attribute__((always_inline)) |
boolean isAlphaNumeric | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is alphanumeric |
FALSE | : The character is not alphanumeric |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isAlphaNumeric(myChar)) { // tests if myChar isa letter or a number Serial.println("The character is alphanumeric"); } else { Serial.println("The character is not alphanumeric"); } } void loop() { }
boolean isAlpha | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is a letter |
FALSE | : The character is not a letter |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isAlpha(myChar)) { // tests if myChar is a letter Serial.println("The character is a letter"); } else { Serial.println("The character is not a letter"); } } void loop() { }
boolean isAscii | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is Ascii |
FALSE | : The character is not Ascii |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isAscii(myChar)) { // tests if myChar is an Ascii character Serial.println("The character is Ascii"); } else { Serial.println("The character is not Ascii"); } } void loop() { }
boolean isWhitespace | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is a space or tab |
FALSE | : The character is not a space or tab |
char mychar = 'A'; void setup() { Serial.begin(115200); 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 space or tab"); } } void loop() { }
boolean isControl | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is a control character |
FALSE | : The character is not a control character |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isControl(myChar)) { // tests if myChar is a control character Serial.println("The character is a control character"); } else { Serial.println("The character is not a control character"); } } void loop() { }
boolean isDigit | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is a number |
FALSE | : The character is not a number |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isDigit(myChar)) { // tests if myChar is a digit Serial.println("The character is a number"); } else { Serial.println("The character is not a number"); } } void loop() { }
boolean isGraph | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is printable |
FALSE | : The character is not printable |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isGraph(myChar)) { // tests if myChar is a printable character but not a blank space. Serial.println("The character is printable"); } else { Serial.println("The character is not printable"); } } void loop() { }
boolean isLowerCase | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is lower case |
FALSE | : The character is not lower case |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isLowerCase(myChar)) { // tests if myChar is a lower case letter Serial.println("The character is lower case"); } else { Serial.println("The character is not lower case"); } } void loop() { }
boolean isPrintable | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is printable |
FALSE | : The character is not printable |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isPrintable(myChar)) { // tests if myChar is printable char Serial.println("The character is printable"); } else { Serial.println("The character is not printable"); } } void loop() { }
boolean isPunct | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is a punctuation |
FALSE | : The character is not a punctuation |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isPunct(myChar)) { // tests if myChar is a punctuation character Serial.println("The character is a punctuation"); } else { Serial.println("The character is not a punctuation"); } } void loop() { }
boolean isSpace | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is white-space |
FALSE | : The character is not white-space |
char mychar = 'A'; void setup() { Serial.begin(115200); 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 white-space"); } } void loop() { }
boolean isUpperCase | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is upper case |
FALSE | : The character is not upper case |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isUpperCase(myChar)) { // tests if myChar is an upper case letter Serial.println("The character is upper case"); } else { Serial.println("The character is not upper case"); } } void loop() { }
boolean isHexadecimalDigit | ( | int | thisChar | ) |
thisChar | variable(Type: char) |
TRUE | : The character is an hexadecimal digit |
FALSE | : The character is not an hexadecimal digit |
char mychar = 'A'; void setup() { Serial.begin(115200); if (isHexadecimalDigit(myChar)) { // tests if myChar is an hexadecimal digit Serial.println("The character is an hexadecimal digit"); } else { Serial.println("The character is not an hexadecimal digit"); } } void loop() { }