W3cubDocs

/D

dmd.root.speller

Compiler implementation of the D programming language http://dlang.org

Authors:
Walter Bright, http://www.digitalmars.com
License:
Boost License 1.0
Source
root/speller.d
Documentation
https://dlang.org/phobos/dmd_root_speller.html
Coverage
https://codecov.io/gh/dlang/dmd/src/master/src/dmd/root/speller.d
auto speller(alias dg)(const(char)[] seed)
Constraints: if (isSearchFunction!dg);

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.

Parameters:
const(char)[] seed wrongly spelled word
dg search delegate
Returns:
null = no correct spellings found, otherwise the value returned by dg() for first possible correct spelling

© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_root_speller.html