Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

ctype<char>


inherits from ctype_base ctype<char> inherits fromlocale::facet

Summary

A specialization of the ctype facet.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <locale>
class ctype<char>; 

Description

This specialization of the ctype<charT> template includes inline versions of ctype's member functions. The facet has the same public interface and uses the same set of masks as the ctype template.

Interface

Types

char_type

Constructors

explicit ctype(const mask* tbl = 0, bool del = false,
               size_t refs = 0) 

Destructors

~ctype();  // virtual and protected

Public Member Functions

The public members of the ctype<char> facet specialization do not all serve the same purpose as the functions in the template. In many cases these functions implement functionality, rather than just forwarding a call to a protected implementation function.

static const mask* 
classic_table() throw();
bool
is(mask m, char c) const; 
const char* 
is(const char* low, 
   const char* high, mask* vec) const; 
char         
narrow(char c, char dfault) const; 
const char* 
narrow(const char* low, const char*, char dfault,
       char* to) const; 
const char* 
scan_is(mask m, const char*, const char* high) const; 
const char* 
scan_not(mask m, const char* low, const char* high) const; 
const mask* 
table() const throw();
char        
tolower(char c) const;
const char* 
tolower(char* low, const char* high) const; 
char        
toupper(char) const;
const char* 
toupper(char* low, const char* high) const; 
char        
widen(char c) const; 
const char*  
widen(const char* low, const char* high, char* to) const; 

Facet ID

static locale::id id;

Protected Member Functions

virtual char        
do_tolower(char) const; 
virtual const char* 
do_tolower(char* low, const char* high) const; 
virtual char        
do_toupper(char c) const; 
virtual const char* 
do_toupper(char* low, const char* high) const; 

See Also

locale, facets, collate, ctype<char>, ctype_byname



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998