Announcement

Collapse
No announcement yet.

Enhancement request: select unimportant columns in text comparisons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enhancement request: select unimportant columns in text comparisons

    I have recently needed to have text comparisons ignore certain columns of text as unimportant. In my specific case, these are columns that contain addresses in symbol dumps or map file for executable binaries. Essentially, I didn't care if a symbol was located at a different address, I was interested in finding new or removed symbols.

    I have been able to perform this work with the current BC feature set by doing one of the following:

    - use a regex to indicate a column is unimportant. This works when the column(s) I want to ignore are at the beginning of the line or if the information in the column I want to ignore can be uniquely identified by a regex.
    - use a text editor to remove the column, and compare those modified files

    However, I'd prefer to be able to simply tell BC something like: ignore columns 1-8 and 24-31

    I imagine this could possibly be implemented by mechanically converting the column specification to a regex, though I honestly don't know what that transform would be.

  • #2
    Hello,

    You can create a new Text format in the Tools menu -> File Formats dialog, and then create new grammar items, as you've found with a RegEx (Basic Type). We also have a Columns type. This can be defined as Columns 1-8, 24-31, and/or 9-23. Grammars can then be Important or Unimportant, so you would define a grammar to be Unimportant (and everything else Important) or the reverse: The grammar could be Important and everything else as Unimportant in the Session Settings of the Text Compare (which can apply for a current view or update the global defaults).

    http://www.scootersoftware.com/suppo..._unimportantv3
    Aaron P Scooter Software

    Comment

    Working...
    X