TO_UPPER

Table of Contents

TO_UPPER

Description

Converts a character to uppercase.

Parameters

NameDirectionDescription
cinThe character to convert.

Success

Returns uppercase version if lowercase, otherwise returns unchanged.

Failure

Function cannot fail - always returns a character.

Usage example (Cross-references)

    // 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);
    // 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);
    // Apply case conversion if needed
    if (force_case) {
    char_to_store = is_caps ? TO_UPPER(char_to_store) : TO_LOWER(char_to_store);
    }
    // Apply case conversion if needed
    if (force_case) {
    c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
    }
    // Apply case conversion if needed
    if (force_case) {
    c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
    }
    // Apply case conversion if needed
    if (force_case) {
    c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
    }
    // Apply case conversion if needed
    if (force_case) {
    c = is_caps ? TO_UPPER(c) : TO_LOWER(c);
    }

Share :

Related Posts

TO_LOWER

TO_LOWER Description Converts a character to lowercase.

Read More

IS_SPACE

IS_SPACE Description Checks if the given character c is a whitespace character.

Read More

IS_DIGIT

IS_DIGIT Description Checks if the given character c is an ASCII digit.

Read More