michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "public/compact_lang_det.h" michael@0: michael@0: extern "C" { michael@0: michael@0: using namespace CLD2; michael@0: michael@0: bool g_is_reliable; michael@0: michael@0: const char* detectLangCode(const char* src) { michael@0: return LanguageCode(DetectLanguage(src, strlen(src), michael@0: true /* is_plain_text */, michael@0: &g_is_reliable)); michael@0: } michael@0: michael@0: bool lastResultReliable(void) { michael@0: return g_is_reliable; michael@0: } michael@0: michael@0: }