On 4/18/2015 11:29 AM, H. S. Teoh via Digitalmars-d wrote:
On Sat, Apr 18, 2015 at 10:53:04AM -0700, Walter Bright via Digitalmars-d wrote:
On 4/18/2015 6:27 AM, H. S. Teoh via Digitalmars-d wrote:
One possible solution would be to modify std.uni.graphemeStride to
not allocate, since it shouldn't need to do so just to compute the
length of the next grapheme.

That should be done. There should be a fixed maximum codepoint count
to graphemeStride.

Why? Scanning a string for a grapheme of arbitrary length does not need
allocation since you're just reading data. Unless there is some required
intermediate representation that I'm not aware of?

If there's no need for allocation at all, why does it allocate? This should be fixed.

Reply via email to