digitalmars.D.debugger - strings again
- bobef (1/1) Apr 25 2007 In 0.08 beta the " in strings are prefixed with backslash but if the str...
- Jascha Wetzel (5/6) Apr 25 2007 i kept the replacing minimal. you can parse the string by searching for
- bobef (2/9) Apr 25 2007
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
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
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