Recent

Author Topic: String comparison (LCS based) unit ported  (Read 4262 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8310
  • Programming + Glam Metal + Tae Kwon Do = Me
String comparison (LCS based) unit ported
« on: December 26, 2012, 02:55:25 pm »
I just ported a nice unit for string comparison, which could serve as a basis for file difference application like Beyond Compare or WinMerge. The original article and code could be found here:
http://www.codeproject.com/Articles/508682/StringpluscomparisonplusinplusDelphi

The license uses The Code Project Open License (CPOL), which AFA I understand it's nearly public domain (with the exception of ownership claim). Could anyone clarify?

Attached is the porting result and a test application.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: String comparison (LCS based) unit ported
« Reply #1 on: December 27, 2012, 09:12:52 am »
Hi Leledumbo,

Thanks for that.

I vaguely remember that some kind of diff viewer is included in Lazarus already - don't know if that actually does a diff or only outputs stuff generated by other tools.

Can't check the codeproject license as the site seems down; however if you have to include some claims/text that it's not your own code etc it's AFAIR incompatible with (L)GPL so unfortunately can't be part of the FCL/LCL.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8310
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: String comparison (LCS based) unit ported
« Reply #2 on: December 27, 2012, 10:22:35 am »
Quote
I vaguely remember that some kind of diff viewer is included in Lazarus already - don't know if that actually does a diff or only outputs stuff generated by other tools.
Oh yeah, I remember that too. AFAIR it does the diff by itself, but I never check the code.
Quote
Can't check the codeproject license as the site seems down; however if you have to include some claims/text that it's not your own code etc it's AFAIR incompatible with (L)GPL so unfortunately can't be part of the FCL/LCL.
I'm not sure either, better wait till the site up again.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: String comparison (LCS based) unit ported
« Reply #3 on: December 27, 2012, 06:46:28 pm »
Ok, seems it is up again. Things like this:
Quote
You agree not to use the Work for illegal, immoral or improper purposes, or on pages containing illegal, immoral or improper material.
make me think it is incompatible with (L)GPL - who decides what's "improper" or "immoral"...
Very weird license which I'll steer away from.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8310
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: String comparison (LCS based) unit ported
« Reply #4 on: December 27, 2012, 07:27:13 pm »
Quote
make me think it is incompatible with (L)GPL - who decides what's "improper" or "immoral"...
Very weird license which I'll steer away from.
Err... yes, that part sounds really weird... :o

 

TinyPortal © 2005-2018