in reply to Re: Does String::LCSS work?
in thread Does String::LCSS work?
String::LCSS_XS has issues too.
It has an undocumented limitation: It only works on strings of bytes.
It has a bug: It only works when the input strings are stored in the UTF8=0 format.
(Going from memory, but a quick check seems to confirm the above.)
If you're ok with the limitation, the workaround for the bug is to call utf8::downgrade the inputs before calling the function.
An alternative is Algorithm::Diff. It's LCS functions also find the longuest common subsequence. I don't know much about the module. [That's something different.]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Does String::LCSS work?
by ikegami (Patriarch) on Feb 08, 2010 at 19:25 UTC | |
|
Re^3: Does String::LCSS work?
by lima1 (Curate) on Jan 28, 2010 at 16:16 UTC | |
by ikegami (Patriarch) on Jan 28, 2010 at 19:06 UTC |