Back to index

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

A character sink for in-place case conversion. More...

List of all members.

Public Types

typedef PRUnichar value_type
typedef char value_type

Public Member Functions

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

Detailed Description

A character sink for in-place case conversion.

Definition at line 183 of file nsUnicharUtils.cpp.


Member Typedef Documentation

Definition at line 186 of file nsUnicharUtils.cpp.

Definition at line 626 of file nsReadableUtils.cpp.


Constructor & Destructor Documentation

Definition at line 188 of file nsUnicharUtils.cpp.

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 193 of file nsUnicharUtils.cpp.

    {
        if (gCaseConv)
            gCaseConv->ToUpper(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:

Here is the caller graph for this function:

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

Definition at line 629 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: