strings/strmisc.bi

Summary
strings/strmisc.bi
LicenseCopyright © 2007-2011, FreeBASIC Extended Library Development Group
ext.strings
Functions
LevenshteinDistanceComputes the Levenshtein Distance between two strings.
Pos

License

Copyright © 2007-2011, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com/p/fb-extended-lib/wiki/License

ext.strings

Summary
Functions
LevenshteinDistanceComputes the Levenshtein Distance between two strings.
Pos

Functions

LevenshteinDistance

declare function LevenshteinDistance(byref subject as const string,
byref t as const string) as integer

Computes the Levenshtein Distance between two strings.

Parameters

subjectthe string to compute the distance on.
tthe string to find the distance to.

Returns

The levenshtein distance of the strings.

See Also

http://en.wikipedia.org/wiki/Levenshtein_distance

Pos

declare function Pos (byref haystack as const string,
byref needle as const string,
byval offset as integer) as integer

Parameters

haystackthe string to search in.
needlethe string to find.
offsetthe character offset to start searching.

Returns

Character position of needle.

declare function LevenshteinDistance(byref subject as const string,
byref t as const string) as integer
Computes the Levenshtein Distance between two strings.
declare function Pos (byref haystack as const string,
byref needle as const string,
byval offset as integer) as integer