Differences From Artifact [8ef9ff62cf]:
- File
src/OFMutableString.h
— part of check-in
[5eada9f7b0]
at
2013-11-23 03:24:43
on branch trunk
— of_asprintf: Change %C to %k.
In Cocoa, %C means unichar, which is unsigned short and thus compilers
expect %C to be unichar when the language is set to ObjC. It would be
hard to let compilers detect whether %C should be unichar or
of_unichar_t, especially when mixing ObjFW and Cocoa code, thus the
change to %k. (user: js, size: 5768) [annotate] [blame] [check-ins using]
To Artifact [7cc5398316]:
- File
src/OFMutableString.h
— part of check-in
[945ff1043d]
at
2013-11-23 17:48:21
on branch trunk
— of_asprintf: Add %K format specifier.
%K is for const of_unichar_t*. (user: js, size: 5824) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
83 84 85 86 87 88 89 | encoding: (of_string_encoding_t)encoding length: (size_t)cStringLength; /*! * @brief Appends a formatted string to the OFMutableString. * * See printf for the format syntax. As an addition, %@ is available as format | | | | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | encoding: (of_string_encoding_t)encoding length: (size_t)cStringLength; /*! * @brief Appends a formatted string to the OFMutableString. * * See printf for the format syntax. As an addition, %@ is available as format * specifier for objects, %k for of_unichar_t and %K for const of_unichar_t*. * * @param format A format string which generates the string to append */ - (void)appendFormat: (OFConstantString*)format, ...; /*! * @brief Appends a formatted string to the OFMutableString. * * See printf for the format syntax. As an addition, %@ is available as format * specifier for objects, %k for of_unichar_t and %K for const of_unichar_t*. * * @param format A format string which generates the string to append * @param arguments The arguments used in the format string */ - (void)appendFormat: (OFConstantString*)format arguments: (va_list)arguments; |
︙ | ︙ |