<div dir="ltr"><div>Hi,</div><div><br></div><div>Is there a way to get a <code class="gmail-inline">char32_t</code> value from a variable of type <code class="gmail-inline">llvm::APSInt</code>? <br></div><div><br></div><div>I tried something like -
<pre><code class="gmail-scrollbarGhostHairline-1mSOM1 gmail-scrollbar-3dvm_9 gmail-hljs">const char32_t Ch = Val.getZExtValue();</code></pre>
(where <code class="gmail-inline">Val</code> is of type <code class="gmail-inline">llvm::APSInt</code>)
but this implicit casting doesn't seem to work as it stores the same value as of type <code class="gmail-inline">char</code>. <br></div><div><br></div><div>
I tried playing around with <a class="gmail-anchor-3Z-8Bb gmail-anchorUnderlineOnHover-2ESHQB" title="https://llvm.org/doxygen/ConvertUTF_8h_source.html" href="https://llvm.org/doxygen/ConvertUTF_8h_source.html" rel="noreferrer noopener" target="_blank" tabindex="0">https://llvm.org/doxygen/ConvertUTF_8h_source.html</a> but couldn't find a way to make this work.</div><div><br></div><div>Thanks,<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Pratyush Das<br></div></div></div></div></div></div></div>