Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 2.08 KB

File metadata and controls

76 lines (60 loc) · 2.08 KB
title CDefaultCharTraits Class | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
CDefaultCharTraits
ATLCOLL/ATL::CDefaultCharTraits
ATLCOLL/ATL::CDefaultCharTraits::CharToLower
ATLCOLL/ATL::CDefaultCharTraits::CharToUpper
dev_langs
C++
helpviewer_keywords
CDefaultCharTraits class
ms.assetid f94a3934-597f-401d-8513-ed6924ae069a
caps.latest.revision 19
author mikeblome
ms.author mblome
manager ghogen

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

[!code-cppNVC_ATL_Utilities#132]

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