diff options
Diffstat (limited to 'src/FbTk/ITypeAheadable.hh')
-rw-r--r-- | src/FbTk/ITypeAheadable.hh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/FbTk/ITypeAheadable.hh b/src/FbTk/ITypeAheadable.hh index 9c8e819..f3d432f 100644 --- a/src/FbTk/ITypeAheadable.hh +++ b/src/FbTk/ITypeAheadable.hh | |||
@@ -24,12 +24,6 @@ | |||
24 | 24 | ||
25 | #include "FbString.hh" | 25 | #include "FbString.hh" |
26 | 26 | ||
27 | #ifdef HAVE_CCTYPE | ||
28 | #include <cctype> | ||
29 | #else | ||
30 | #include <ctype.h> | ||
31 | #endif // HAVE_CCTYPE | ||
32 | |||
33 | namespace FbTk { | 27 | namespace FbTk { |
34 | 28 | ||
35 | // abstract base class providing access and validation | 29 | // abstract base class providing access and validation |
@@ -39,15 +33,6 @@ public: | |||
39 | 33 | ||
40 | virtual const std::string &iTypeString() const = 0; | 34 | virtual const std::string &iTypeString() const = 0; |
41 | virtual bool isEnabled() const { return true; } | 35 | virtual bool isEnabled() const { return true; } |
42 | char iTypeChar(size_t i) const { return iTypeString()[i]; } | ||
43 | bool iTypeCheckStringSize(size_t sz) const { | ||
44 | return (iTypeString().size() > sz); | ||
45 | } | ||
46 | bool iTypeCompareChar(char ch, size_t sz) const { | ||
47 | return (bool)iTypeCheckStringSize(sz) && | ||
48 | tolower(iTypeChar(sz)) == tolower(ch); | ||
49 | } | ||
50 | |||
51 | }; | 36 | }; |
52 | 37 | ||
53 | } // end namespace FbTk | 38 | } // end namespace FbTk |