Implement a lot of position moving functions

This commit is contained in:
Krzosa Karol
2024-08-03 12:58:53 +02:00
parent 22899c2523
commit 7655ece178
7 changed files with 228 additions and 98 deletions

View File

@@ -18,6 +18,16 @@ bool IsSymbol(wchar_t w) {
return result;
}
bool IsNonWord(wchar_t w) {
bool result = IsSymbol(w) || IsWhitespace(w);
return result;
}
bool IsWord(wchar_t w) {
bool result = IsSymbol(w) || IsWhitespace(w);
return !result;
}
bool IsAlphabetic(wchar_t a) {
bool result = (a >= 'a' && a <= 'z') || (a >= 'A' && a <= 'Z');
return result;