ObjFW  Diff

Differences From Artifact [b71605a981]:

To 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]


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
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 and %C for of_unichar_t.
 * specifier for objects and %k for 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 and %C for of_unichar_t.
 * specifier for objects and %k for 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;