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.

string with lower case converted to upper case.

Definition at line 2259 of file contain.cxx.

Referenced by PConfig::GetBoolean().

  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