Re: Replacing hex values in a string (v1.0)

2011-08-12 Thread jicman
torhu Wrote: > On 12.08.2011 18:19, jicman wrote: > > > > Greetings and salutations. > > > > Hi. I am reading a file into a string, > > > > char[] text = cast(string) f0.read(); > > > > and I want to replace every non-breaking space in the string. I know that > > the hex value for that is A0, b

Re: Replacing hex values in a string (v1.0)

2011-08-12 Thread torhu
On 12.08.2011 18:19, jicman wrote: Greetings and salutations. Hi. I am reading a file into a string, char[] text = cast(string) f0.read(); and I want to replace every non-breaking space in the string. I know that the hex value for that is A0, but when I do this call, text = std.string.rep

Replacing hex values in a string (v1.0)

2011-08-12 Thread jicman
Greetings and salutations. Hi. I am reading a file into a string, char[] text = cast(string) f0.read(); and I want to replace every non-breaking space in the string. I know that the hex value for that is A0, but when I do this call, text = std.string.replace(text,x"A0"," "); It does takes