Back to index

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

#include <TextString.h>

List of all members.

Public Member Functions

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

Private Member Functions

 TCharToLowerCase ()

Private Attributes

TCHARLowerCaseString

Detailed Description

Definition at line 81 of file TextString.h.


Constructor & Destructor Documentation

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

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

Definition at line 90 of file TextString.h.

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

        size_t i = 0;

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

Definition at line 110 of file TextString.h.

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

Member Function Documentation

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

Definition at line 118 of file TextString.h.

    {
      return LowerCaseString;
    }
nux::TCharToLowerCase::operator TCHAR * ( ) const [inline]

Definition at line 123 of file TextString.h.

    {
      return LowerCaseString;
    }

Member Data Documentation

Definition at line 83 of file TextString.h.


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