www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - valid UTF string

reply beep <beep spam.com> writes:
I read: std.regexp is designed to work only with valid UTF strings as input.

Is it possible for an UTF-string (meaning a string obeying the UTF specs) to be
invalid?
Feb 09 2008
parent Sergey Gromov <snake.scaly gmail.com> writes:
beep <beep spam.com> wrote:
 I read: std.regexp is designed to work only with valid UTF strings as input.
 
 Is it possible for an UTF-string (meaning a string obeying the UTF specs) to
be invalid?
It's possible for an arbitrary char[] to be an invalid UTF string. That's what it means. -- SnakE
Feb 09 2008