Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get index, via java API: diff_main(String text1, String text2) #4

Closed
GoogleCodeExporter opened this issue Mar 13, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. use java API: diff_main(String text1, String text2).
    text1 = "this is a test";
    text2 = "this is a test A";   
2. LinkedList<Diff> diff = diff_main(String text1, String text2);
3. in "LinkedList<Diff> diff", I can't get "index" of in Diff Class.

What is the expected output? What do you see instead?
expected output: index = 16
but index always equal -1

What version of the product are you using? On what operating system?
version:20071106, java 
OS: windows XP

Please provide any additional information below.


Original issue reported on code.google.com by jiangbo...@gmail.com on 29 Dec 2007 at 2:55

@GoogleCodeExporter
Copy link
Author

sorry, this is not issue. if I use diff_addIndex(LinkedList<Diff> diffs), I can 
get
the index info.

Original comment by jiangbo...@gmail.com on 29 Dec 2007 at 3:02

@GoogleCodeExporter
Copy link
Author

Correct, the field is there, but it's not computed by default since most 
applications
don't need it.

Original comment by neil.fra...@gmail.com on 12 Jan 2008 at 12:58

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant