STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cstring_veneer Class Reference
[Container Library (MFCSTL)]

Applies standard string (std::basic_string) interface to the CString class. More...

#include <mfcstl_cstring_veneer.h>

List of all members.

Public Types

typedef TCHAR value_type
 The value type.

typedef LPTSTR iterator
 The mutating iterator type.

typedef LPCTSTR const_iterator
 The non-mutating (const) iterator type.

typedef LPTSTR pointer
 The pointer type.

typedef LPCTSTR const_pointer
 The pointer-to-const type.

typedef TCHAR & reference
 The reference type.

typedef TCHAR const & const_reference
 The reference-to-const type.

typedef ms_size_t size_type
 The size type.


Public Methods

 cstring_veneer ()
 Default constructor.

 cstring_veneer (class_type const &rhs)
 Copy constructor.

 cstring_veneer (CString const &rhs)
 Copy constructor.

 cstring_veneer (LPCSTR s)
 Construct from an ANSI string.

 cstring_veneer (LPCWSTR s)
 Construct from a Unicode string.

 cstring_veneer (unsigned char const *s)
 Construct from an MBCS string.

 cstring_veneer (LPCTSTR from, LPCTSTR to)
 Construct from a range.

 cstring_veneer (LPCTSTR from, size_type length)
 Construct from a range.

class_type const & operator= (class_type const &rhs)
 Copy assignment operator.

class_type const & operator= (CString const &rhs)
 Copy assignment operator.

class_type const & operator= (LPCSTR s)
 Assignment operator.

class_type const & operator= (LPCWSTR s)
 Assignment operator.

class_type const & operator= (unsigned char const *s)
 Assignment operator.

const_iterator begin () const
 Begins the iteration.

const_iterator end () const
 Ends the iteration.

CString & get_base_type ()
 Provides access to the underlying CString type.

CString const & get_base_type () const
 Provides access to the underlying CString type.

size_type length () const
 Returns the number of elements in the sequence.

size_type size () const
 Returns the number of elements in the sequence.

ms_bool_t empty () const
 Indicates whether the sequence is empty.

const_pointer c_str () const
 Returns a pointer to constant data representing the managed string.


Detailed Description

Applies standard string (std::basic_string) interface to the CString class.

This class adapts the


Member Typedef Documentation

typedef LPCTSTR const_iterator
 

The non-mutating (const) iterator type.

typedef LPCTSTR const_pointer
 

The pointer-to-const type.

typedef TCHAR const& const_reference
 

The reference-to-const type.

typedef LPTSTR iterator
 

The mutating iterator type.

typedef LPTSTR pointer
 

The pointer type.

typedef TCHAR& reference
 

The reference type.

typedef ms_size_t size_type
 

The size type.

typedef TCHAR value_type
 

The value type.


The documentation for this class was generated from the following file:

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004