Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Wimpie Nortje
Thanks, I'll have a look at it. On 2013/01/21 04:07 PM, Honza wrote: > 2013/1/20 Paul Ishenin : >> 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 u

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Honza
2013/1/20 Paul Ishenin : > 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

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Wimpie Nortje
Thanks, I had already written a CharInSet(UnicodeChar; UnicodeString) function, but I hoped there were a language construct equivalent to the ansi char method. On 21 January 2013 10:32, Marco van de Voort wrote: > In our previous episode, Paul Ishenin said: > > > > > > I am using fpc 2.6.0 and

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Marco van de Voort
In our previous episode, Paul Ishenin said: > > > > 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/delphiA

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-20 Thread Paul Ishenin
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 da

[fpc-pascal] Testing set membership for unicode chars

2013-01-20 Thread 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