Overview
Comment: | OFINIFile: Add property containing all categories |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
deebe3c0340aebe33b9416396860340a |
User & Date: | js on 2021-03-17 23:14:54 |
Other Links: | manifest | tags |
Context
2021-03-17
| ||
23:22 | OFINI*: Add -[description] check-in: 75d2dfa322 user: js tags: trunk | |
23:14 | OFINIFile: Add property containing all categories check-in: deebe3c034 user: js tags: trunk | |
00:14 | Work around crash on start with new MSYS2 check-in: dba770bccc user: js tags: trunk | |
Changes
Modified src/OFINIFile.h from [4e2773d0f5] to [bd06a8855c].
︙ | ︙ | |||
28 29 30 31 32 33 34 35 36 37 38 39 40 41 | */ OF_SUBCLASSING_RESTRICTED @interface OFINIFile: OFObject { OFMutableArray OF_GENERIC(OFINICategory *) *_categories; } /** * @brief Creates a new OFINIFile with the contents of the specified file. * * @param path The path to the file whose contents the OFINIFile should contain * * @return A new, autoreleased OFINIFile with the contents of the specified file */ | > > > > > | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | */ OF_SUBCLASSING_RESTRICTED @interface OFINIFile: OFObject { OFMutableArray OF_GENERIC(OFINICategory *) *_categories; } /** * @brief All categories in the INI file. */ @property (readonly, nonatomic) OFArray OF_GENERIC(OFINICategory *) *categories; /** * @brief Creates a new OFINIFile with the contents of the specified file. * * @param path The path to the file whose contents the OFINIFile should contain * * @return A new, autoreleased OFINIFile with the contents of the specified file */ |
︙ | ︙ |
Modified src/OFINIFile.m from [78baed50c0] to [3bf40de159].
︙ | ︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | if (!of_ascii_isspace(cString[i])) return false; return true; } @implementation OFINIFile + (instancetype)fileWithPath: (OFString *)path { return [[[self alloc] initWithPath: path] autorelease]; } + (instancetype)fileWithPath: (OFString *)path encoding: (of_string_encoding_t)encoding | > > | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | if (!of_ascii_isspace(cString[i])) return false; return true; } @implementation OFINIFile @synthesize categories = _categories; + (instancetype)fileWithPath: (OFString *)path { return [[[self alloc] initWithPath: path] autorelease]; } + (instancetype)fileWithPath: (OFString *)path encoding: (of_string_encoding_t)encoding |
︙ | ︙ |