MantisBT - KWStyle
View Issue Details
0011010KWStylepublic2010-07-19 08:292010-07-19 08:29
Brad Davis 
 
normalfeatureN/A
newopen 
0011010: Translate strings and comments to blank characters before checks
There are many instances where a buffer search either:
1) does not check to see if the find was in a quoted string (but should)
or
2) does check with a large overhead (order # quoted strings squared)

This leads to bugs and inefficient code.

Currently comments are removed from the buffer before processing, a similar strategy should apply to strings.

However, instead of removing comments and strings, comment and string characters should be replaced with something like SPACE or '_' or something like that.

That way we can simplify by not having to contend with mapping buffer position between Buffer and BufferNoComments.

No tags attached.
related to 0011003new  KWStyle gets confused when braces are in char literals 
Issue History
2010-07-19 08:29Brad DavisNew Issue
2010-07-19 08:30Brad DavisRelationship addedrelated to 0011003

There are no notes attached to this issue.