<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-size:0.75em;">Unfortunately I dont know a good way to provide a minimal working example so I describe my problem.</span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If I run a clang::ast_matchers::MatchFinder::MatchCallback on StringLiterals the matching StringLiteral somehow looses leading \x00 but only if there are non-null chars within that string.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">E.g.:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">"\x00\x00\x00" will be correctly iterated with 3 times null (the getByteLength() also correctly gives the length of 3)</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">"\x001\x00" will iterated as "1\x00" (also the getByteLength is 2)</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">How can I iterate over the leading \x00 as well?</p>
</body>
</html>