Logo Search packages:      
Sourcecode: pwlib version File versions

PString PString::ToUpper (  )  const [inherited]

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

Returns:
string with lower case converted to upper case.

Definition at line 2264 of file contain.cxx.

Referenced by PVideoDevice::SetColourFormat().

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


Generated by  Doxygen 1.6.0   Back to index