Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
SpellCheckEngine.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5namespace Stroika::Frameworks::Led {
6
7 /*
8 ********************************************************************************
9 ***************************** SpellCheckEngine ***************************
10 ********************************************************************************
11 */
12 /*
13 @METHOD: SpellCheckEngine::LookupWord
14 @DESCRIPTION: <p>Lookup the given word and see if its found in the system (dictionaries). Return true
15 if found and set (optional - can be nullptr) OUT argument 'matchedWordResult'
16 to indicate the original word in the dictionary matched
17 (due to case mapping, this may not be the same as the 'checkWord').</p>
18 <p>Also note that just because a word doesn't appear in the dictionary, (i.e. isn't returned
19 from LookupWord) - doesn't mean it will be found as a missing (misspelled) word. Some words
20 are ignored like possibly all upper case words, punctuation, numbers, and others algorithmicly checked
21 words.</p>
22 */
23 inline bool SpellCheckEngine::LookupWord (const Led_tString& checkWord, Led_tString* matchedWordResult)
24 {
25 return LookupWord_ (checkWord, matchedWordResult);
26 }
27 inline void SpellCheckEngine::Invariant () const
28 {
29#if qStroika_Foundation_Debug_AssertionsChecked
30 Invariant_ ();
31#endif
32 }
33
34#if qStroika_Foundation_Debug_AssertionsChecked
35 /*
36 @METHOD: SpellCheckEngine::Invariant_
37 @DESCRIPTION: <p>Default implementaiton for calls to @'SpellCheckEngine::Invariant'. Overridden in subclasses
38 to check validity of SpellCheck engine.</p>
39 */
40 inline void SpellCheckEngine::Invariant_ () const
41 {
42 }
43#endif
44
45}