| cached.rs |
|
1410 |
| mod.rs |
|
152 |
| ns_string.rs |
Macro for making a static NSString.
This closely follows what clang does, see:
- Apple: <https://github.com/llvm/llvm-project/blob/release/13.x/clang/lib/CodeGen/CodeGenModule.cpp#L5057-L5249>
- GNUStep 2.0 (not yet supported): <https://github.com/llvm/llvm-project/blob/release/13.x/clang/lib/CodeGen/CGObjCGNU.cpp#L973-L1118>
- Other (not yet supported): <https://github.com/llvm/llvm-project/blob/release/13.x/clang/lib/CodeGen/CGObjCGNU.cpp#L2471-L2507>
Note that this uses the `CFString` static, while `clang` has support for
generating a pure `NSString`. We don't support that yet (since I don't
know the use-case), but we definitely could!
See: <https://github.com/llvm/llvm-project/blob/release/13.x/clang/lib/CodeGen/CGObjCMac.cpp#L2007-L2068>
See also the following crates that implement UTF-16 conversion:
`utf16_lit`, `windows`, `const_utf16`, `wide-literals`, ... |
8680 |