Menu

#18 The ability to compare two arbitrary Strings

closed
nobody
None
5
2021-02-10
2009-11-04
No

Currently, I can compare 2 files etc. etc. What would be really cool for me, however, is to be able to compare any two arbitrary Strings (doesn't matter if they came from a file or elsewhere).

With the API as is now, I'm forced to save my in memory Strings to a temp file.

Perhaps the API could provide a method that took two Reader objects as arguments. That way, it could be either a file based or String based, either which would be fine.

Discussion

  • Kees Kuip

    Kees Kuip - 2021-02-10
    • status: open --> closed
    • Group: --> Next Release (example)
     
  • Kees Kuip

    Kees Kuip - 2021-02-10

    I already diff 2 strings in the application.
    In the FolderDiff 2 the 2 directory names are presented with letters in bold that are different.
    The code is in DiffLabel.java (new JMDiff().diff(textList, otherTextList, Ignore.NULL_IGNORE);

     

Log in to post a comment.