[cfe-dev] Constant CF/NSString and Unicode

Chris Lattner clattner at apple.com
Wed Jul 9 22:56:40 PDT 2008

On Jul 9, 2008, at 4:10 PM, Jean-Daniel Dupas wrote:
> I just wonder if there is some kind of unicode support in
> __builtin___CFStringMakeConstantString.

In GCC or clang?  Clang doesn't have any unicode support yet.

> In the current GCC version, when you compile an objc file, constant
> strings that contains non-ascii chars are converted into utf-16
> strings and a flag is set into the generated CFString.

Ok.  Fariborz implemented that fwiw.

> The fact that it works only for objc file look more like a design
> decision than a technical limit, and this feature can easily be
> extended to c files. In fact, I managed to implement this feature in
> cc1 and it look like it works. (if I'm wrong, feel free to correct  
> me).
> And what about clang and unicode CFString ?

I'm not sure what you mean, can you explain a bit more?


More information about the cfe-dev mailing list