Thanks, I'll have a look at it. On 2013/01/21 04:07 PM, Honza wrote: > 2013/1/20 Paul Ishenin <paul.ishe...@gmail.com>: >> 20.01.13, 23:21, Wimpie Nortje пишет: >>> Hi list >>> >>> I want to test membership of a unicode char in a set / array of unicode >>> chars. Something like >>> >>> var ucCh: unicodechar; >>> >>> if ucCh in [ UnicodeChar('0')..UnicodeChar('9')] then >>> dosomething; >>> >>> I am using fpc 2.6.0 and the '..' operator converts the data to a pascal >>> set, which is limited to 1 byte data. >>> >>> Is there another way? >> Delphi has CharInSet() function for this: >> http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/SysUtils_CharInSet@ansic...@tsyscharset.html >> >> I don't remember whether we have it in FPC at the moment. > Don't know if it can be helpful for the OP, but some years ago, I sent > 'Unicode category membership checking functions' here: > http://bugs.freepascal.org/view.php?id=16400 > > Please feel free to use that code for whatever you want w/o restrictions. > > -j > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal