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

PString::PString ( ConversionType  type,
long  value,
unsigned  base = 10 
)

Parameters:
type  Type of data source for conversion.
value  Integer value to convert.
base  Number base to use for the integer conversion.

Definition at line 1463 of file contain.cxx.

References MakeMinimumSize().

  : PCharArray(sizeof(long)*3+1)
{
  PAssert(base >= 2 && base <= 36, PInvalidParameter);
  switch (type) {
    case Signed :
      p_signed2string<long>(value, base, theArray);
      break;

    case Unsigned :
      p_unsigned2string<unsigned long>(value, base, theArray);
      break;

    default :
      PAssertAlways(PInvalidParameter);
  }
  MakeMinimumSize();
}


Generated by  Doxygen 1.6.0   Back to index