CDefaultCharTraits Class

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see CDefaultCharTraits Class on docs.microsoft.com. This class provides two static functions for converting characters between uppercase and lowercase.

template <typename T>  
class CDefaultCharTraits

Parameters

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

Public Methods

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

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

Header: atlcoll.h

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'));

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.

Class Overview

Show: