Re: Searching strings with indexOf vs countUntil
Kagamin via Digitalmars-d-learn Thu, 25 May 2017 05:01:54 -0700
I would guess indexOf returns a value suitable for indexing,
therefore it counts code units, while countUntil counts range
elements - code points in case of a string. Also number of code
points is not suitable for indexing an utf8 string, it can be
used to allocate a dstring, but not so much for anything else.
What do you use the resulting value for?
- Searching strings with indexOf vs... Anonymouse via Digitalmars-d-learn
- Re: Searching strings with i... Kagamin via Digitalmars-d-learn
- Re: Searching strings wi... Basile B. via Digitalmars-d-learn
- Re: Searching strings wi... Anonymouse via Digitalmars-d-learn
- Re: Searching string... Stanislav Blinov via Digitalmars-d-learn