@@ -162,21 +162,21 @@ * \brief Creates a new OFString from a unicode string. * * \param string The unicode string * \return A new autoreleased OFString */ -+ stringWithUnicodeString: (of_unichar_t*)string; ++ stringWithUnicodeString: (const of_unichar_t*)string; /** * \brief Creates a new OFString from a unicode string, assuming the specified * byte order if no BOM is found. * * \param string The unicode string * \param byteOrder The byte order to assume if there is no BOM * \return A new autoreleased OFString */ -+ stringWithUnicodeString: (of_unichar_t*)string ++ stringWithUnicodeString: (const of_unichar_t*)string byteOrder: (of_endianess_t)byteOrder; /** * \brief Creates a new OFString from a unicode string with the specified * length. @@ -183,11 +183,11 @@ * * \param string The unicode string * \param length The length of the unicode string * \return A new autoreleased OFString */ -+ stringWithUnicodeString: (of_unichar_t*)string ++ stringWithUnicodeString: (const of_unichar_t*)string length: (size_t)length; /** * \brief Creates a new OFString from a unicode string with the specified * length, assuming the specified byte order if no BOM is found. @@ -195,31 +195,31 @@ * \param string The unicode string * \param byteOrder The byte order to assume if there is no BOM * \param length The length of the unicode string * \return A new autoreleased OFString */ -+ stringWithUnicodeString: (of_unichar_t*)string ++ stringWithUnicodeString: (const of_unichar_t*)string byteOrder: (of_endianess_t)byteOrder length: (size_t)length; /** * \brief Creates a new OFString from a UTF-16 encoded string. * * \param string The UTF-16 string * \return A new autoreleased OFString */ -+ stringWithUTF16String: (uint16_t*)string; ++ stringWithUTF16String: (const uint16_t*)string; /** * \brief Creates a new OFString from a UTF-16 encoded string, assuming the * specified byte order if no BOM is found. * * \param string The UTF-16 string * \param byteOrder The byte order to assume if there is no BOM * \return A new autoreleased OFString */ -+ stringWithUTF16String: (uint16_t*)string ++ stringWithUTF16String: (const uint16_t*)string byteOrder: (of_endianess_t)byteOrder; /** * \brief Creates a new OFString from a UTF-16 encoded string with the specified * length. @@ -226,11 +226,11 @@ * * \param string The UTF-16 string * \param length The length of the unicode string * \return A new autoreleased OFString */ -+ stringWithUTF16String: (uint16_t*)string ++ stringWithUTF16String: (const uint16_t*)string length: (size_t)length; /** * \brief Creates a new OFString from a UTF-16 encoded string with the * specified length, assuming the specified byte order if no BOM is @@ -239,11 +239,11 @@ * \param string The UTF-16 string * \param byteOrder The byte order to assume if there is no BOM * \param length The length of the unicode string * \return A new autoreleased OFString */ -+ stringWithUTF16String: (uint16_t*)string ++ stringWithUTF16String: (const uint16_t*)string byteOrder: (of_endianess_t)byteOrder length: (size_t)length; /** * \brief Creates a new OFString from a format string. @@ -365,21 +365,21 @@ * \brief Initializes an already allocated OFString with a unicode string. * * \param string The unicode string * \return An initialized OFString */ -- initWithUnicodeString: (of_unichar_t*)string; +- initWithUnicodeString: (const of_unichar_t*)string; /** * \brief Initializes an already allocated OFString with a unicode string, * assuming the specified byte order if no BOM is found. * * \param string The unicode string * \param byteOrder The byte order to assume if there is no BOM * \return An initialized OFString */ -- initWithUnicodeString: (of_unichar_t*)string +- initWithUnicodeString: (const of_unichar_t*)string byteOrder: (of_endianess_t)byteOrder; /** * \brief Initializes an already allocated OFString with a unicode string with * the specified length. @@ -386,11 +386,11 @@ * * \param string The unicode string * \param length The length of the unicode string * \return An initialized OFString */ -- initWithUnicodeString: (of_unichar_t*)string +- initWithUnicodeString: (const of_unichar_t*)string length: (size_t)length; /** * \brief Initializes an already allocated OFString with a unicode string with * the specified length, assuming the specified byte order if no BOM is @@ -399,31 +399,31 @@ * \param string The unicode string * \param byteOrder The byte order to assume if there is no BOM * \param length The length of the unicode string * \return An initialized OFString */ -- initWithUnicodeString: (of_unichar_t*)string +- initWithUnicodeString: (const of_unichar_t*)string byteOrder: (of_endianess_t)byteOrder length: (size_t)length; /** * \brief Initializes an already allocated OFString with a UTF-16 string. * * \param string The UTF-16 string * \return An initialized OFString */ -- initWithUTF16String: (uint16_t*)string; +- initWithUTF16String: (const uint16_t*)string; /** * \brief Initializes an already allocated OFString with a UTF-16 string, * assuming the specified byte order if no BOM is found. * * \param string The UTF-16 string * \param byteOrder The byte order to assume if there is no BOM * \return An initialized OFString */ -- initWithUTF16String: (uint16_t*)string +- initWithUTF16String: (const uint16_t*)string byteOrder: (of_endianess_t)byteOrder; /** * \brief Initializes an already allocated OFString with a UTF-16 string with * the specified length. @@ -430,11 +430,11 @@ * * \param string The UTF-16 string * \param length The length of the UTF-16 string * \return An initialized OFString */ -- initWithUTF16String: (uint16_t*)string +- initWithUTF16String: (const uint16_t*)string length: (size_t)length; /** * \brief Initializes an already allocated OFString with a UTF-16 string with * the specified length, assuming the specified byte order if no BOM is @@ -443,11 +443,11 @@ * \param string The UTF-16 string * \param byteOrder The byte order to assume if there is no BOM * \param length The length of the UTF-16 string * \return An initialized OFString */ -- initWithUTF16String: (uint16_t*)string +- initWithUTF16String: (const uint16_t*)string byteOrder: (of_endianess_t)byteOrder length: (size_t)length; /** * \brief Initializes an already allocated OFString with a format string.