Differences From Artifact [b9239d2145]:
- File src/OFEmbeddedURIHandler.m — part of check-in [7d0456fdd6] at 2022-10-03 19:51:42 on branch trunk — Rename objfw-embedded: scheme to of-embedded: (user: js, size: 2873) [annotate] [blame] [check-ins using]
To Artifact [bac2da914b]:
- File
src/OFEmbeddedURIHandler.m
— part of check-in
[9b3cae6cba]
at
2022-10-09 16:33:24
on branch trunk
— Drop of- prefix from URI schemes
It's generally uncommon to prefix those.
Additionally, it might be worthwhile to try to get those actually
registered, which requires usage. (user: js, size: 2870) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
72 73 74 75 76 77 78 | } @implementation OFEmbeddedURIHandler - (OFStream *)openItemAtURI: (OFURI *)URI mode: (OFString *)mode { const char *path; | | | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | } @implementation OFEmbeddedURIHandler - (OFStream *)openItemAtURI: (OFURI *)URI mode: (OFString *)mode { const char *path; if (![URI.scheme isEqual: @"embedded"] || URI.host.length > 0 || URI.port != nil || URI.user != nil || URI.password != nil || URI.query != nil || URI.fragment != nil) @throw [OFInvalidArgumentException exception]; if (![mode isEqual: @"r"]) @throw [OFOpenItemFailedException exceptionWithURI: URI mode: mode |
︙ | ︙ |