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

PString::PString ( const WORD *  ustr,
PINDEX  len 
)

Create a string from the UCS-2 array. A new memory block is allocated of a size equal to len# plus one which is sufficient to take the string and a terminating '' character.

Note that this function will allow a string with embedded '' characters to be created, but most of the functions here will be unable to access characters beyond the first ''. Furthermore, if the MakeMinimumSize()# function is called, all data beyond that first #''# character will be lost.

Parameters:
ustr  Pointer to a string of UCS-2 characters.
len  Length of the string in bytes.

Definition at line 1273 of file contain.cxx.

  : PCharArray(len+1)
{
  InternalFromUCS2(ustr, len);
}


Generated by  Doxygen 1.6.0   Back to index