[cfe-dev] StringLiteral API clarification?

Marcus Johnson via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 11 05:07:57 PDT 2020


Hi guys,

I'm working on extending format string validation, and I was going through the FormatStringLiteral -> StringLiteral -> StringRef 

and I'm just wondering what the following functions mean?

strLen()

getLengthInBytes()

getLength()

size()

What do these functions return?

How do I get the size of a string in CodeUnits or CodePoints?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200311/0dec6211/attachment.html>


More information about the cfe-dev mailing list