Differences From Artifact [49a22d9861]:
- File src/OFString+Serialization.m — part of check-in [c7f0229795] at 2020-01-02 01:51:34 on branch trunk — Update copyright (user: js, size: 1941) [annotate] [blame] [check-ins using] [more...]
To Artifact [0b468db6b6]:
- File
src/OFString+Serialization.m
— part of check-in
[b6ee372b98]
at
2020-08-11 19:45:36
on branch trunk
— OFString: Rework number parsing API
This solves the old signed vs. unsigned problem and allows for more
bases than just 8, 10 and 16, as well as auto-detection of the base (if
base is 0). (user: js, size: 1950) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
48 49 50 51 52 53 54 | @throw [OFInvalidArgumentException exception]; } version = [root attributeForName: @"version"].stringValue; if (version == nil) @throw [OFInvalidArgumentException exception]; | | | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | @throw [OFInvalidArgumentException exception]; } version = [root attributeForName: @"version"].stringValue; if (version == nil) @throw [OFInvalidArgumentException exception]; if (version.unsignedLongLongValue != 1) @throw [OFUnsupportedVersionException exceptionWithVersion: version]; elements = [root elementsForNamespace: OF_SERIALIZATION_NS]; if (elements.count != 1) @throw [OFInvalidArgumentException exception]; |
︙ | ︙ |