CDefaultCharTraits Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CDefaultCharTraits Class.

This class provides two static functions for converting characters between uppercase and lowercase.

Syntax

template <typename T>  
class CDefaultCharTraits

Parameters

T
The type of data to be stored in the collection.

Members

Public Methods

Name Description
CDefaultCharTraits::CharToLower (Static) Call this function to convert a character to uppercase.
CDefaultCharTraits::CharToUpper (Static) Call this function to convert a character to lowercase.

Remarks

This class provides functions that are utilized by the class CStringElementTraitsI.

Requirements

Header: atlcoll.h

CDefaultCharTraits::CharToLower

Call this function to convert a character to lowercase.

static wchar_t CharToLower(wchar_t x);  
static char CharToLower(char x);

Parameters

x
The character to convert to lowercase.

Example

   printf_s("%c\n", CDefaultCharTraits<char>::CharToLower('A'));

CDefaultCharTraits::CharToUpper

Call this function to convert a character to uppercase.

static wchar_t CharToUpper(wchar_t x);  
static char CharToUpper(char x);

Parameters

x
The character to convert to uppercase.

See Also

Class Overview