String Prefix Predicate

Justin Whear via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 14 10:33:41 PDT 2014


On Thu, 14 Aug 2014 17:17:11 +0000, Nordlöw wrote:

> What's the preferrred way to check if a string starts with another
> string if the string is a
> 
> 1. string (utf-8) BiDir 2. wstring (utf-16) BiDir 3. dstring (utf-32)
> Random

std.algorithm.startsWith?  Should auto-decode, so it'll do a utf-32 
comparison behind the scenes.


More information about the Digitalmars-d-learn mailing list