[cfe-dev] Clang's string type?

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Fri Aug 24 10:42:06 PDT 2018


On 8/23/2018 7:39 PM, Marcus Johnson wrote:
> > You can read individual characters from that array using 
> StringLiteral::getCodeUnit()
>
> By "characters" do you mean a complete Unicode codepoint? because a 
> codepoint is just a byte for UTF-8, or just a short for UTF-16.

Oh, no, sorry, like the name suggests, it returns a code unit.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180824/2047fd2d/attachment.html>


More information about the cfe-dev mailing list