Re: [fpc-pascal] Text matching for configuration files etc.

2012-04-12 Thread Mark Morgan Lloyd
Mark Morgan Lloyd wrote: I know that there are algorithms which given a text fragment will find the best fit from a number of candidates, based on how many substrings have to be deleted or changed. Is there anything like this in the standard FPC library, and if not does anybody have one or a

[fpc-pascal] Text matching for configuration files etc.

2012-04-11 Thread Mark Morgan Lloyd
I know that there are algorithms which given a text fragment will find the best fit from a number of candidates, based on how many substrings have to be deleted or changed. Is there anything like this in the standard FPC library, and if not does anybody have one or a URL? Application is a

Re: [fpc-pascal] Text matching for configuration files etc.

2012-04-11 Thread Juha Manninen
On Wed, Apr 11, 2012 at 9:19 PM, Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: I know that there are algorithms which given a text fragment will find the best fit from a number of candidates, based on how many substrings have to be deleted or changed. Is there anything like

Re: [fpc-pascal] Text matching for configuration files etc.

2012-04-11 Thread Noa Shiruba
Hi, I think this sounds more like edit distance, but I am not sure why it would be needed for a config file. Thank you, Noah silva On 2012/04/12, at 4:12, Juha Manninen juha.mannine...@gmail.com wrote: On Wed, Apr 11, 2012 at 9:19 PM, Mark Morgan Lloyd