Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
SpellCheckEngine_Basic.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5namespace Stroika::Frameworks::Led {
6
7 /*
8 ********************************************************************************
9 ***************************** Implementation Details ***************************
10 ********************************************************************************
11 */
12
13 // class SpellCheckEngine_Basic
14 inline bool SpellCheckEngine_Basic::OtherStringToIgnore_Sentinels (const Led_tString& checkWord)
15 {
16 return checkWord.length () == 1 and checkWord[0] == '\0';
17 }
18 /*
19 @METHOD: SpellCheckEngine_Basic::GetTextBreaker
20 @DESCRIPTION: <p>Returns a @'Led_RefCntPtr<T>' wrapper on the @'TextBreaks' subclass associated
21 with this SpellCheckEngine.
22 </p>
23 <p>If none is associated with the TextStore right now - and default one is built and returned.</p>
24 <p>See also See @'SpellCheckEngine_Basic::SetTextBreaker'.</p>
25 */
26 inline shared_ptr<TextBreaks> SpellCheckEngine_Basic::GetTextBreaker () const
27 {
28 if (fTextBreaker == nullptr) {
29 fTextBreaker = make_shared<TextBreaks_SpellChecker> ();
30 }
31 return fTextBreaker;
32 }
33 /*
34 @METHOD: SpellCheckEngine_Basic::SetTextBreaker
35 @DESCRIPTION: <p>See @'SpellCheckEngine_Basic::GetTextBreaker'.</p>
36 */
37 inline void SpellCheckEngine_Basic::SetTextBreaker (const shared_ptr<TextBreaks>& textBreaker)
38 {
39 fTextBreaker = textBreaker;
40 }
41
42 // class SpellCheckEngine_Basic
43 inline SpellCheckEngine_Basic::Dictionary::Dictionary ()
44 {
45 }
46 inline SpellCheckEngine_Basic::Dictionary::~Dictionary ()
47 {
48 }
49
50}