Overview
Comment: | API change. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c7f702cc69ffce15e80e18d3bbf88427 |
User & Date: | js on 2008-09-15 11:02:02 |
Other Links: | manifest | tags |
Context
2008-10-05
| ||
19:20 | Reworked String API. check-in: cf85bee74f user: js tags: trunk | |
2008-09-15
| ||
11:02 | API change. check-in: c7f702cc69 user: js tags: trunk | |
10:23 | Add compare: for strings. check-in: 24ce530f56 user: js tags: trunk | |
Changes
Modified src/OFString.h from [669d4151c7] to [236184ed79].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | + - + - - + + | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import <stddef.h> #import "OFObject.h" #import "OFConstString.h" @interface OFString: OFObject { char *string; size_t length; } + new: (const char*)str; - init; - init: (const char*)str; - (char*)cString; - (size_t)length; |
Modified src/OFString.m from [b274f069db] to [68b2726756].
︙ | |||
46 47 48 49 50 51 52 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 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 108 109 110 111 | - + - + - + - + - + - + - + - + - + | } - (size_t)length { return length; } |
Modified src/OFWideString.h from [ca4e9f67ee] to [fa40106b5c].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | + + - + - - + + | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import <stddef.h> #import <wchar.h> #import "OFObject.h" #import "OFConstWideString.h" @interface OFWideString: OFObject { wchar_t *wstring; size_t length; } + new: (const wchar_t*)wstr; - init; - init: (const wchar_t*)wstr; - (wchar_t*)wcString; - (size_t)length; |
Modified src/OFWideString.m from [1b2ac19bc0] to [ffeec9ddfb].
︙ | |||
31 32 33 34 35 36 37 | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 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 108 109 110 111 112 | - + - + - + - + - + - + - + - + - + - + | if ((self = [super init])) { if (wstr == NULL) { length = 0; wstring = NULL; } else { length = wcslen(wstr); wstring = [self getMem: (length + 1) * sizeof(wchar_t)]; |
Modified tests/OFString/OFString.m from [1fdb086bd4] to [d5b6a278de].
︙ | |||
20 21 22 23 24 25 26 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | - + - + - + - + - + | main() { OFString *s1 = [OFString new: "test"]; OFString *s2 = [[OFString alloc] init: ""]; OFString *s3; OFString *s4 = [OFString new]; |
︙ |
Modified tests/OFWideString/OFWideString.m from [c00b389041] to [890eff7e87].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - + - + - + - + - + | main() { OFWideString *s1 = [OFWideString new: L"test"]; OFWideString *s2 = [[OFWideString alloc] init: L""]; OFWideString *s3; OFWideString *s4 = [OFWideString new]; |
︙ |