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

PINLINE PString::PString ( char  ch  ) 

Create a string from the single character. This is most commonly used as a type conversion constructor when a literal character, eg 'A' is used in a string expression. A new memory block is allocated of two characters to take the char and its terminating '' character.

If UCS-2 is used then the char is mapped to a single UCS-2 character.

Parameters:
ch  Single character to initialise string.

Definition at line 243 of file contain.inl.

  : PCharArray(2) { SetAt(0, c); }


Generated by  Doxygen 1.6.0   Back to index