Can I convert the Range returned by asUpperCase to ubyte[]?

ag0aep6g anonymous at example.com
Wed May 2 00:57:22 UTC 2018


On 05/01/2018 10:13 PM, Dr.No wrote:
> I'm trying to do an optimization here: a hash function which expect a 
> ubye[] array as argument, would just work if I cast string to ubyte[] 
> but I need to convert it to upper case, so I'd like to do that lazily, 
> so that the byte is converted to its upper case version soon as it's 
> requested. I'm not sure if this possible because I think the function 
> should also work with Range and not ubyte[] to work.

Yup. Not possible. There's no such thing as a lazy ubyte[].


More information about the Digitalmars-d-learn mailing list