Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions
ConvertToLowerCase Class Reference

A character sink for case conversion. More...

List of all members.

Public Types

typedef PRUnichar value_type
typedef PRUnichar value_type
typedef char value_type

Public Member Functions

PRUint32 write (const PRUnichar *aSource, PRUint32 aSourceLength)
 ConvertToLowerCase ()
PRUint32 write (const PRUnichar *aSource, PRUint32 aSourceLength)
PRUint32 write (const char *aSource, PRUint32 aSourceLength)

Detailed Description

A character sink for case conversion.

Definition at line 84 of file txStringUtils.cpp.


Member Typedef Documentation

Definition at line 87 of file txStringUtils.cpp.

Definition at line 96 of file nsUnicharUtils.cpp.

Definition at line 716 of file nsReadableUtils.cpp.


Constructor & Destructor Documentation

Definition at line 98 of file nsUnicharUtils.cpp.

Here is the call graph for this function:


Member Function Documentation

PRUint32 ConvertToLowerCase::write ( const PRUnichar aSource,
PRUint32  aSourceLength 
) [inline]

Definition at line 89 of file txStringUtils.cpp.

  {
    PRUnichar* cp = NS_CONST_CAST(PRUnichar*, aSource);
    const PRUnichar* end = aSource + aSourceLength;
    while (cp != end) {
      PRUnichar ch = *cp;
      if ((ch >= 'A') && (ch <= 'Z'))
        *cp = ch + ('a' - 'A');
      ++cp;
    }
    return aSourceLength;
  }

Here is the caller graph for this function:

PRUint32 ConvertToLowerCase::write ( const PRUnichar aSource,
PRUint32  aSourceLength 
) [inline]

Definition at line 103 of file nsUnicharUtils.cpp.

    {
        if (gCaseConv)
            gCaseConv->ToLower(aSource, NS_CONST_CAST(PRUnichar*,aSource), aSourceLength);
        else
            NS_WARNING("No case converter: no conversion done");

        return aSourceLength;
    }

Here is the call graph for this function:

PRUint32 ConvertToLowerCase::write ( const char *  aSource,
PRUint32  aSourceLength 
) [inline]

Definition at line 719 of file nsReadableUtils.cpp.

        {
          char* cp = NS_CONST_CAST(char*,aSource);
          const char* end = aSource + aSourceLength;
          while (cp != end) {
            char ch = *cp;
            if ((ch >= 'A') && (ch <= 'Z'))
              *cp = ch + ('a' - 'A');
            ++cp;
          }
          return aSourceLength;
        }

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