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:
richard 2000-11-06 14:15:27 +00:00
parent d653e380bb
commit 9a1c97fabb
3 changed files with 38 additions and 10 deletions

View file

@ -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];