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