@@ -18,10 +18,12 @@ #include #include #import "OFObject.h" #import "OFSerialization.h" + +@class OFConstantString; typedef uint32_t of_unichar_t; /** * \brief The encoding of a string. @@ -207,11 +209,11 @@ * See printf for the format syntax. * * \param format A string used as format to initialize the OFString * \return A new autoreleased OFString */ -+ stringWithFormat: (OFString*)format, ...; ++ stringWithFormat: (OFConstantString*)format, ...; /** * Creates a new OFString containing the constructed specified path. * * \param firstComponent The first component of the path @@ -405,21 +407,21 @@ * See printf for the format syntax. * * \param format A string used as format to initialize the OFString * \return An initialized OFString */ -- initWithFormat: (OFString*)format, ...; +- initWithFormat: (OFConstantString*)format, ...; /** * 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 * \param arguments The arguments used in the format string * \return An initialized OFString */ -- initWithFormat: (OFString*)format +- initWithFormat: (OFConstantString*)format arguments: (va_list)arguments; /** * Initializes an already allocated OFString with the constructed specified * path.