<div dir="ltr">Thanks, I had already written a CharInSet(UnicodeChar; UnicodeString) function, but I hoped there were a language construct equivalent to the ansi char method.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 21 January 2013 10:32, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl" target="_blank">marcov@stack.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">In our previous episode, Paul Ishenin said:<br>
> ><br>
> > I am using fpc 2.6.0 and the '..' operator converts the data to a pascal<br>
> > set, which is limited to 1 byte data.<br>
> ><br>
> > Is there another way?<br>
> Delphi has CharInSet() function for this:<br>
> <a href="http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/SysUtils_CharInSet@AnsiChar@TSysCharSet.html" target="_blank">http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/SysUtils_CharInSet@AnsiChar@TSysCharSet.html</a><br>
><br>
> I don't remember whether we have it in FPC at the moment.<br>
<br>
</div>2.6.0 has it iirc, but before you point to that, it only checks the low<br>
byte. IOW it is a stop gap, not a solution for set of char in the unicode<br>
world.<br>
<br>
Since unicode printable characters are effectively strings, if you want a<br>
pure set you will probably have to treat it as a hash or so.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>