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

PString::PString ( const WORD *  ustr  ) 

Create a string from the UCS-2 string array. A new memory block is allocated of a size sufficient to take the length of the string and its terminating '' character.

Parameters:
ustr  UCS-2 null terminated string.

Definition at line 1252 of file contain.cxx.

References SetSize().

{
  if (ustr == NULL)
    SetSize(1);
  else {
    PINDEX len = 0;
    while (ustr[len] != 0)
      len++;
    InternalFromUCS2(ustr, len);
  }
}


Generated by  Doxygen 1.6.0   Back to index