Alexander Benikowski via llvm-dev
2017-Sep-08 08:48 UTC
[llvm-dev] Is LLVM's C-Api Unicode aware?
Hi,>From what i can tell by looking at the C-Api and its use of CharPointers.It seems LLVM C-Api(and by that LLVM itself i think) is not Unicode aware? So only plain Ascii-Characters? Currently translating the headers, and just wanted to be sure, since "char" is usually 1 Byte IIRC. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170908/28d406dc/attachment.html>
Friedman, Eli via llvm-dev
2017-Sep-08 18:52 UTC
[llvm-dev] Is LLVM's C-Api Unicode aware?
On 9/8/2017 1:48 AM, Alexander Benikowski via llvm-dev wrote:> Hi, > From what i can tell by looking at the C-Api and its use of > CharPointers. It seems LLVM C-Api(and by that LLVM itself i think) is > not Unicode aware? So only plain Ascii-Characters? > > Currently translating the headers, and just wanted to be sure, since > "char" is usually 1 Byte IIRC.A lot of the APIs actually just take null-terminated byte arrays. For example, symbol names are allowed to be an arbitrary sequence of bytes. -Eli -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project