www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - strings again

reply bobef <asd asd.asd> writes:
In 0.08 beta the " in strings are prefixed with backslash but if the string
contains backslash it left as is. In other words there is no telling if the
backslash is for " or it is real backslash. I also think it will be a good idea
to replace the \n and \r characters too, i.e. multiline strings to be displayed
on single line.
Apr 25 2007
parent reply Jascha Wetzel <"[firstname]" mainia.de> writes:
i kept the replacing minimal. you can parse the string by searching for
the first quote that isn't escaped and treating all other chars as WYSIWYG.
WYSIWYG strings might be more readable, therefore i will add the full
escaping as an optional configuration in one of the next releases.

bobef wrote:
 In 0.08 beta the " in strings are prefixed with backslash but if the string
contains backslash it left as is. In other words there is no telling if the
backslash is for " or it is real backslash. I also think it will be a good idea
to replace the \n and \r characters too, i.e. multiline strings to be displayed
on single line.

Apr 25 2007
parent bobef <asd asd.asd> writes:
Yeah, you may be right about readability. Anyway the \ needs to be escaped for
sure, and currently it isn't...


Jascha Wetzel <[firstname] mainia.de> Wrote:

 i kept the replacing minimal. you can parse the string by searching for
 the first quote that isn't escaped and treating all other chars as WYSIWYG.
 WYSIWYG strings might be more readable, therefore i will add the full
 escaping as an optional configuration in one of the next releases.
 
 bobef wrote:
 In 0.08 beta the " in strings are prefixed with backslash but if the string
contains backslash it left as is. In other words there is no telling if the
backslash is for " or it is real backslash. I also think it will be a good idea
to replace the \n and \r characters too, i.e. multiline strings to be displayed
on single line.


Apr 25 2007