-
Notifications
You must be signed in to change notification settings - Fork 2
IS_LOWERCASE macro
Douglas Lyman edited this page Nov 28, 2022
·
3 revisions
Checks if a character is a lowercase character.
#define IS_LOWERCASE(c) IN_RANGE(c, 'a', 'z')
BOOL IS_LOWERCASE(char | wchar_t c);
c
A char
or wchar_t
character.
A BOOL that determines whether the character is lowercase or not.
This macro only compares single characters and not entire strings. Passing a pointer to a string will not work.
#include "Definitions.h"
int main() {
IS_LOWERCASE('a'); // Resolves to true.
IS_LOWERCASE(L'a'); // Resolves to true.
IS_LOWERCASE('A'); // Resolves to false.
IS_LOWERCASE('2'); // Non letter, always resolves to false.
IS_LOWERCASE("abc"); // Error: Cannot compare entire string.
}
Header | Definitions.h |
---|---|
Assembly | None |
The Project Artemis components: Artemis - Artemis-Loader - Artemis-Installer - Artemis-Extension-Framework
The team behind Project Artemis: Sigma - Monke - Tavreth
Contact us at artemis.singularity@gmail.com or join our Discord server!