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

PINLINE BOOL PString::MakeMinimumSize (  )  [inherited]

Set the actual memory block array size to the minimum required to hold the current string contents.

Note that this function will break the current instance from multiple references to the string. A new string buffer is allocated and the data from the old string buffer copied to it.

TRUE if new memory block successfully allocated.

Definition at line 258 of file contain.inl.

References PString::GetLength(), and PString::SetSize().

Referenced by PIPSocket::Address::AsString(), PString::Delete(), PIPSocket::GetInterfaceTable(), PDynaLink::GetName(), PString::operator=(), PString::PString(), PString::ReadFrom(), PTextFile::ReadLine(), and PString::vsprintf().

  { return SetSize(GetLength()+1); }

Generated by  Doxygen 1.6.0   Back to index