On Sun, 2005-07-03 at 13:31 +0200, Martin Fuchs wrote:
> I thought it would be enough just to use "--ptr" to go back one
> character in UCS-16 strings. Only MBCS or UTF-8 encoded strings would
> need such helper functions like CharPrevW()?

IIRC there are these 'surrogate pairs' in which case just --ptr
will not work correctly:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/indexsrv/html/wbrscenario_01df.asp

-- 
Dimi Paun <[EMAIL PROTECTED]>
Lattica, Inc.


Reply via email to