Decoding of Strings as Ranges of dchar
Automatic decoding of strings
Being character arrays by definition, strings can also be used as ranges just by importing
wchar strings cannot be used as RandomAccessRange.
std.array provides a special functionality with all types of strings. Iterating over strings becomes iterating over Unicode code points, not over UTF code units. As a result, strings appear as ranges of Unicode characters.
The following strings contain
é, which cannot be represented by a single
𝔸 (mathematical double-struck capital A), which cannot be represented by a single