Finding chars in strings
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 5 08:55:20 PDT 2017
On 09/05/2017 05:43 PM, Per Nordlöw wrote:
> If a character literal has type char, always below 128, can we always
> search for it's first byte offset in a string without decoding the
> string to a range of dchars?
Yes. You can search for ASCII characters (< 128) without decoding. The
values in multibyte sequences are always above 127.
More information about the Digitalmars-d-learn
mailing list