mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix for substrings of mutable strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8043 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d653e380bb
commit
9a1c97fabb
3 changed files with 38 additions and 10 deletions
|
@ -24,6 +24,7 @@ int main()
|
|||
id s = @"This is a test string";
|
||||
id s2, s3;
|
||||
int a;
|
||||
unichar uc[6] = { '1', '2', '.', '3', '4', 0};
|
||||
|
||||
NSMutableString *fo = [NSMutableString stringWithString: @"abcdefg"];
|
||||
NS_DURING
|
||||
|
@ -37,6 +38,8 @@ int main()
|
|||
s2 = NSStringFromPoint(NSMakePoint(1.374, 5.100));
|
||||
print_string(s2);
|
||||
|
||||
printf("%f", [[NSString stringWithCharacters: uc length: 5] floatValue]);
|
||||
|
||||
s2 = [s copy];
|
||||
print_string(s2);
|
||||
s3 = [s2 mutableCopy];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue