Differences From Artifact [ce5de11866]:
- File src/OFString.h — part of check-in [246cfe0807] at 2014-02-18 18:50:30 on branch trunk — Documentation: Show correct imports (user: js, size: 34991) [annotate] [blame] [check-ins using] [more...]
To Artifact [096e5cd183]:
- File
src/OFString.h
— part of check-in
[c8a562d8d7]
at
2014-08-23 01:01:14
on branch trunk
— Make ObjFW.framework a module
This makes it possible to import ObjFW from Swift. (user: js, size: 35481) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1108 1109 1110 1111 1112 1113 1114 | #import "OFString+JSONValue.h" #import "OFString+Serialization.h" #import "OFString+URLEncoding.h" #import "OFString+XMLEscaping.h" #import "OFString+XMLUnescaping.h" #ifndef NSINTEGER_DEFINED | > | > > > | > > > > > > > > | 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 | #import "OFString+JSONValue.h" #import "OFString+Serialization.h" #import "OFString+URLEncoding.h" #import "OFString+XMLEscaping.h" #import "OFString+XMLUnescaping.h" #ifndef NSINTEGER_DEFINED /* * Very *ugly* hack required for string boxing literals to work. * * This hack is needed in order to work with `@class NSString` from Apple's * objc/NSString.h - which is included when using modules - as * @compatibility_alias does not work if @class has been used before. * For some reason, this makes Clang refer to OFString for string box literals * and not to NSString (which would result in a linker error, but would be the * correct behavior). * * TODO: Submit a patch for Clang that makes the boxing classes configurable! */ @interface NSString: OFString @end #endif #ifdef __cplusplus extern "C" { #endif extern size_t of_string_utf8_encode(of_unichar_t, char*); extern size_t of_string_utf8_decode(const char*, size_t, of_unichar_t*); extern size_t of_string_utf16_length(const of_char16_t*); extern size_t of_string_utf32_length(const of_char32_t*); #ifdef __cplusplus } #endif |