94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
CHECK([[s1 upper] isEqual: @"321TSET"])
CHECK([[s1 lower] isEqual: @"321tset"])
/* Also clears all the memory of the returned C strings */
[pool release];
s1 = [OFMutableString stringWithCString: "foobar"
andLength: 3];
CHECK([s1 isEqual: @"foo"])
[s1 appendCString: "foobarqux" + 3
withLength: 3];
CHECK([s1 isEqual: @"foobar"])
/* UTF-8 tests */
|
|
|
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
CHECK([[s1 upper] isEqual: @"321TSET"])
CHECK([[s1 lower] isEqual: @"321tset"])
/* Also clears all the memory of the returned C strings */
[pool release];
s1 = [OFMutableString stringWithCString: "foobar"
length: 3];
CHECK([s1 isEqual: @"foo"])
[s1 appendCString: "foobarqux" + 3
withLength: 3];
CHECK([s1 isEqual: @"foobar"])
/* UTF-8 tests */
|