Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PString PString::ToLower (  ) const [inherited]

Create a string consisting of all characters from the source string with all upper case letters converted to lower case. The original string is not changed and a new unique reference to a string is returned.

string with upper case converted to lower case.

Definition at line 2253 of file contain.cxx.

Referenced by PRegisterPage::LoadText(), and PProcess::PProcess().

  PString newStr(theArray);
  for (char *cpos = newStr.theArray; *cpos != '\0'; cpos++) {
    if (isupper(*cpos & 0xff))
      *cpos = (char)tolower(*cpos & 0xff);
  return newStr;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index