Back to index

nux  3.0.0
Public Member Functions | Private Member Functions | Private Attributes
nux::TCharToUpperCase Class Reference

#include <TextString.h>

List of all members.

Public Member Functions

 TCharToUpperCase (const TCHAR *Source)
 Converts the data by using the Convert() method on the base class.
 ~TCharToUpperCase ()
 operator const TCHAR * () const
 operator TCHAR * () const

Private Member Functions

 TCharToUpperCase ()

Private Attributes

TCHARUpperCaseString

Detailed Description

Definition at line 33 of file TextString.h.


Constructor & Destructor Documentation

nux::TCharToUpperCase::TCharToUpperCase ( const TCHAR Source) [inline, explicit]

Converts the data by using the Convert() method on the base class.

Definition at line 42 of file TextString.h.

    {
      if (Source != NULL)
      {
        UpperCaseString = _tcsdup (Source); // Duplicate string. Allocated with malloc.

        size_t i = 0;

        while (UpperCaseString[i])
        {
          UpperCaseString[i] = _totupper (UpperCaseString[i]); // Conversion is done in place.
          ++i;
        }
      }
      else
      {
        UpperCaseString = NULL;
      }
    }

Definition at line 62 of file TextString.h.

    {
      if (UpperCaseString != NULL)
      {
        std::free (UpperCaseString);
      }
    }

Member Function Documentation

nux::TCharToUpperCase::operator const TCHAR * ( ) const [inline]

Definition at line 70 of file TextString.h.

    {
      return UpperCaseString;
    }
nux::TCharToUpperCase::operator TCHAR * ( ) const [inline]

Definition at line 75 of file TextString.h.

    {
      return UpperCaseString;
    }

Member Data Documentation

Definition at line 35 of file TextString.h.


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