Re: Iterate over a string to get unicode codes

2013-09-01 Thread Flamaros
On Sunday, 1 September 2013 at 14:11:54 UTC, Adam D. Ruppe wrote: On Sunday, 1 September 2013 at 14:07:00 UTC, Flamaros wrote: Is there a simple way to extract from a string all Unicode codes as uint values? string foo = "whatever"; foreach(dchar ch; foo) { // ch is the code point as a 32

Re: Iterate over a string to get unicode codes

2013-09-01 Thread Jos van Uden
On 1-9-2013 16:11, Adam D. Ruppe wrote: On Sunday, 1 September 2013 at 14:07:00 UTC, Flamaros wrote: Is there a simple way to extract from a string all Unicode codes as uint values? string foo = "whatever"; foreach(dchar ch; foo) { // ch is the code point as a 32 bit number // use it

Re: Iterate over a string to get unicode codes

2013-09-01 Thread Adam D. Ruppe
On Sunday, 1 September 2013 at 14:07:00 UTC, Flamaros wrote: Is there a simple way to extract from a string all Unicode codes as uint values? string foo = "whatever"; foreach(dchar ch; foo) { // ch is the code point as a 32 bit number // use it directly or cast to uint here }

Iterate over a string to get unicode codes

2013-09-01 Thread Flamaros
Is there a simple way to extract from a string all Unicode codes as uint values?