Re: How to check i

2014-10-17 Thread Uranuz via Digitalmars-d-learn
This is

Re: How to check i

2014-10-16 Thread Ali Çehreli via Digitalmars-d-learn
On 10/16/2014 12:43 PM, spir via Digitalmars-d-learn wrote: denis spir is back! :) On 10/16/2014 11:46 AM, Uranuz wrote: > I have some string *str* of unicode characters. The question is how to > check if I have valid unicode code point starting at code unit *index*? It is easy if I underst

Re: How to check i

2014-10-16 Thread spir via Digitalmars-d-learn
On 16/10/14 20:46, Uranuz via Digitalmars-d-learn wrote: I have some string *str* of unicode characters. The question is how to check if I have valid unicode code point starting at code unit *index*? [...] You cannot do that without decoding. Cheking whether utf-x is valid and decoding are the

How to check i

2014-10-16 Thread Uranuz via Digitalmars-d-learn
I have some string *str* of unicode characters. The question is how to check if I have valid unicode code point starting at code unit *index*? I need it because I try to write parser that operates on string by *code unit*. If more precisely I trying to write function *matchWord* that should e