Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
ddmd.root.speller
Compiler implementation of the D programming language
http: //dlang.org
Authors:
Walter Bright, http://www.digitalmars.com
License:
Source: root/speller.d
- bool
combineSpellerResult(ref void*p, ref intcost, void*np, intncost); - combine a new result from the spell checker to find the one with the closest symbol with respect to the
costdefined by the search function Input/Output:pbest found spelling (NULL if none found yet)costcostofp(INT_MAX if none found yet)Input:
npnew found spelling (NULL if none found)ncostcostofnpif non-NULLReturns:trueif thecostis less or equal 0falseotherwise - void*
speller(const(char)*seed, scope dg_speller_tdg, const(char)*charset); - Looks for correct spelling. Currently only looks a 'distance' of one from the
seed[]. This does an exhaustive search, so can potentially be very slow.Input:
seedwrongly spelled worddgsearch delegatecharsetcharacter setReturns:NULL no correct spellings found void* value returned bydg() for first possible correct spelling
Copyright © 1999-2017 by the D Language Foundation | Page generated by
Ddoc on Wed Jul 19 22:16:34 2017