diff options
Diffstat (limited to 'src/include/fst/compat.h')
-rw-r--r-- | src/include/fst/compat.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/include/fst/compat.h b/src/include/fst/compat.h index 034b57e..3b5275d 100644 --- a/src/include/fst/compat.h +++ b/src/include/fst/compat.h @@ -39,10 +39,7 @@ #include <fst/lock.h> #include <fst/flags.h> #include <fst/log.h> - -#ifdef HAVE_ICU #include <fst/icu.h> -#endif using std::cin; using std::cout; @@ -87,7 +84,7 @@ class CheckSummer { void Reset() { count_ = 0; for (int i = 0; i < kCheckSumLength; ++i) - check_sum_[0] = '\0'; + check_sum_[i] = '\0'; } void Update(void const *data, int size) { @@ -113,24 +110,6 @@ class CheckSummer { DISALLOW_COPY_AND_ASSIGN(CheckSummer); }; -// Define the UTF8 string conversion function to throw an error -// when the ICU Library is missing or disabled. -#ifndef HAVE_ICU - -template <class Label> -bool UTF8StringToLabels(const string&, std::vector<Label>*) { - LOG(ERROR) << "UTF8StringToLabels: ICU Library required for UTF8 handling"; - return false; -} - -template <class Label> -bool LabelsToUTF8String(const std::vector<Label>&, string*) { - LOG(ERROR) << "LabelsToUTF8String: ICU Library required for UTF8 handling"; - return false; -} - -#endif // HAVE_ICU - } // namespace fst |