@@ -120,10 +120,20 @@ * \param string The unicode string * \return A new autoreleased OFString */ + stringWithUnicodeString: (of_unichar_t*)string; +/** + * Creates a new OFString from a unicode string with the specified length. + * + * \param string The unicode string + * \param length The length of the unicode string + * \return A new autoreleased OFString + */ ++ stringWithUnicodeString: (of_unichar_t*)string + length: (size_t)length; + /** * Creates a new OFString from a format string. * See printf for the format syntax. * * \param format A string used as format to initialize the OFString @@ -240,10 +250,21 @@ * \param string The unicode string * \return An initialized OFString */ - initWithUnicodeString: (of_unichar_t*)string; +/** + * Initializes an already allocated OFString with a unicode string with the + * specified length. + * + * \param string The unicode string + * \param length The length of the unicode string + * \return An initialized OFString + */ +- initWithUnicodeString: (of_unichar_t*)string + length: (size_t)length; + /** * Initializes an already allocated OFString with a format string. * See printf for the format syntax. * * \param format A string used as format to initialize the OFString