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
cost
defined by the search function Input/Output:p
best found spelling (NULL if none found yet)cost
cost
ofp
(INT_MAX if none found yet)Input:
np
new found spelling (NULL if none found)ncost
cost
ofnp
if non-NULLReturns:true
if thecost
is less or equal 0false
otherwise - 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:
seed
wrongly spelled worddg
search delegatecharset
character 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