Differences From Artifact [534d095364]:
- File
src/OFString+JSONValue.m
— part of check-in
[f59977a0aa]
at
2013-01-28 21:12:57
on branch trunk
— JSON5: Update to new version of the spec.
This adds support for Infinity and leading + signs. (user: js, size: 13019) [annotate] [blame] [check-ins using]
To Artifact [16be464aa0]:
- File src/OFString+JSONValue.m — part of check-in [9c24db3c6d] at 2013-02-23 18:00:44 on branch trunk — Disallow \u0000 in JSON and fix ObjFW.h. (user: js, size: 13052) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
ret |= c + 10 - 'a';
else if (c >= 'A' && c <= 'F')
ret |= c + 10 - 'A';
else
return 0xFFFF;
}
return ret;
}
static inline OFString*
parseString(const char *restrict *pointer, const char *stop,
size_t *restrict line)
{
| > > > | 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
ret |= c + 10 - 'a';
else if (c >= 'A' && c <= 'F')
ret |= c + 10 - 'A';
else
return 0xFFFF;
}
if (ret == 0)
return 0xFFFF;
return ret;
}
static inline OFString*
parseString(const char *restrict *pointer, const char *stop,
size_t *restrict line)
{
|
| ︙ | ︙ |