Differences From Artifact [80d783f695]:
- File
src/OFINISection.m
— part of check-in
[0fead8a915]
at
2024-08-24 10:14:30
on branch trunk
— Rename OFINICategory to OFINISection
OFINICategory is provided as a deprecated subclass of OFINISection to
maintain API and ABI compatibility. (user: js, size: 11285) [annotate] [blame] [check-ins using]
To Artifact [8aabd85aa9]:
- File src/OFINISection.m — part of check-in [dab4c26020] at 2024-08-24 10:25:56 on branch trunk — OFINISection: Allow values in global section (user: js, size: 11220) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
155 156 157 158 159 160 161 | - (void)of_parseLine: (OFString *)line { if (![line hasPrefix: @";"]) { OFINISectionPair *pair; OFString *key, *value; size_t pos; | < < < | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | - (void)of_parseLine: (OFString *)line { if (![line hasPrefix: @";"]) { OFINISectionPair *pair; OFString *key, *value; size_t pos; pair = [[[OFINISectionPair alloc] init] autorelease]; if ((pos = [line rangeOfString: @"="].location) == OFNotFound) @throw [OFInvalidFormatException exception]; key = unescapeString([line substringToIndex: pos] .stringByDeletingEnclosingWhitespaces); |
︙ | ︙ | |||
479 480 481 482 483 484 485 | - (bool)of_writeToStream: (OFStream *)stream encoding: (OFStringEncoding)encoding first: (bool)first { if (_lines.count == 0) return false; | | | 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 | - (bool)of_writeToStream: (OFStream *)stream encoding: (OFStringEncoding)encoding first: (bool)first { if (_lines.count == 0) return false; if (_name.length > 0) { if (first) [stream writeFormat: @"[%@]\r\n", _name]; else [stream writeFormat: @"\r\n[%@]\r\n", _name]; } for (id line in _lines) { |
︙ | ︙ |