TO_LOWER
- Macro
- August 22, 2025
Table of Contents
TO_LOWER
TO_LOWER
Description
Converts a character to lowercase.
Parameters
Name | Direction | Description |
---|---|---|
c | in | The character to convert. |
Success
Returns lowercase version if uppercase, otherwise returns unchanged.
Failure
Function cannot fail - always returns a character.
Usage example (Cross-references)
- In
Io.c:664
:
// For 'c' format specifier, preserve the original case
if (force_case) {
StrPushBack(o, is_caps ? TO_UPPER(byte) : TO_LOWER(byte));
} else {
StrPushBack(o, byte);
- In
Io.c:695
:
// For 'c' format specifier, preserve the original case
if (force_case) {
StrPushBack(o, is_caps ? TO_UPPER(*vs) : TO_LOWER(*vs));
} else {
StrPushBack(o, *vs);
- In
Io.c:766
:
// Apply case conversion if needed
if (force_case) {
char_to_store = is_caps ? TO_UPPER(char_to_store) : TO_LOWER(char_to_store);
}
- In
Io.c:1291
:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Io.c:1303
:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Io.c:1325
:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Io.c:1334
:
// Apply case conversion if needed
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}
- In
Str.c:745
:
// Check for special values
if (str->length - pos >= 3) {
char c1 = TO_LOWER(str->data[pos]);
char c2 = TO_LOWER(str->data[pos + 1]);
char c3 = TO_LOWER(str->data[pos + 2]);
- In
Str.c:746
:
if (str->length - pos >= 3) {
char c1 = TO_LOWER(str->data[pos]);
char c2 = TO_LOWER(str->data[pos + 1]);
char c3 = TO_LOWER(str->data[pos + 2]);
- In
Str.c:747
:
char c1 = TO_LOWER(str->data[pos]);
char c2 = TO_LOWER(str->data[pos + 1]);
char c3 = TO_LOWER(str->data[pos + 2]);
if (c1 == 'n' && c2 == 'a' && c3 == 'n') {
- In
Str.c:771
:
// Check for "-inf"
if (str->length - pos >= 3) {
char c1 = TO_LOWER(str->data[pos]);
char c2 = TO_LOWER(str->data[pos + 1]);
char c3 = TO_LOWER(str->data[pos + 2]);
- In
Str.c:772
:
if (str->length - pos >= 3) {
char c1 = TO_LOWER(str->data[pos]);
char c2 = TO_LOWER(str->data[pos + 1]);
char c3 = TO_LOWER(str->data[pos + 2]);
- In
Str.c:773
:
char c1 = TO_LOWER(str->data[pos]);
char c2 = TO_LOWER(str->data[pos + 1]);
char c3 = TO_LOWER(str->data[pos + 2]);
if (c1 == 'i' && c2 == 'n' && c3 == 'f') {