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)
Usage examples (Cross-references)
- In
Io.c:1178:
// 'c' leaves it clear so source bytes pass through untouched.
if (force_case) {
if (!StrPushBackR(o, is_caps ? TO_UPPER(byte) : TO_LOWER(byte))) {
return false;
}- In
Io.c:1215:
// See `write_int_as_chars` for the force_case / 'c' split.
if (force_case) {
if (!StrPushBackR(o, is_caps ? TO_UPPER(*vs) : TO_LOWER(*vs))) {
return false;
}- In
Io.c:1607:
if (force_case) {
char_to_store = is_caps ? TO_UPPER(char_to_store) : TO_LOWER(char_to_store);
}- In
Io.c:2274:
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}- In
Io.c:2287:
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}- In
Io.c:2310:
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}- In
Io.c:2319:
if (force_case) {
c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
}- In
Str.c:1032:
// things like "nan_garbage" while still accepting "nan ".
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:1033:
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:1034:
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:1058:
// already consumed.
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:1059:
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:1060:
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') {
Last updated on