CDefaultCharTraits Class
Visual Studio 2015
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.
template <typename T> class CDefaultCharTraits
Parameters
T
The type of data to be stored in the collection.
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. |
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.
Show: