22#if defined(_MSC_VER) && (_MSC_VER >= 1020)
23#pragma warning(disable : 4251 4266 4350 4503 4512 4514 4710 4820)
32#include "Optional.hpp"
33#include "opencc_config.h"
53typedef std::shared_ptr<Conversion> ConversionPtr;
54typedef std::shared_ptr<ConversionChain> ConversionChainPtr;
55typedef std::shared_ptr<Converter> ConverterPtr;
56typedef std::shared_ptr<Dict> DictPtr;
57typedef std::shared_ptr<DictGroup> DictGroupPtr;
58typedef std::shared_ptr<Lexicon> LexiconPtr;
59typedef std::shared_ptr<MarisaDict> MarisaDictPtr;
60typedef std::shared_ptr<Segmentation> SegmentationPtr;
61typedef std::shared_ptr<Segments> SegmentsPtr;
62typedef std::shared_ptr<SerializableDict> SerializableDictPtr;
63typedef std::shared_ptr<TextDict> TextDictPtr;
65#ifdef OPENCC_ENABLE_DARTS
68typedef std::shared_ptr<BinaryDict> BinaryDictPtr;
69typedef std::shared_ptr<DartsDict> DartsDictPtr;
75const std::string PACKAGE_DATA_DIRECTORY =
"";
77const std::string PACKAGE_DATA_DIRECTORY = PKGDATADIR
"/";
80#ifndef OPENCC_SEGMENTATION_PLUGIN_DIR
81const std::string PACKAGE_SEGMENTATION_PLUGIN_DIRECTORY =
"";
83const std::string PACKAGE_SEGMENTATION_PLUGIN_DIRECTORY =
84 OPENCC_SEGMENTATION_PLUGIN_DIR
"/";
88#define OPENCC_VERSION "1.3.*"
Binary dictionary for faster deserialization.
Definition BinaryDict.hpp:29
Configuration loader.
Definition Config.hpp:36
An ordered sequence of Conversion objects applied to pre-segmented text.
Definition ConversionChain.hpp:41
Single-dictionary phrase conversion.
Definition Conversion.hpp:43
Abstract base for full-text converters.
Definition Converter.hpp:44
Darts dictionary.
Definition DartsDict.hpp:29
Key-values pair entry.
Definition DictEntry.hpp:32
Group of dictionaries.
Definition DictGroup.hpp:44
Abstract class of dictionary.
Definition Dict.hpp:63
Storage of all entries.
Definition Lexicon.hpp:29
Darts dictionary.
Definition MarisaDict.hpp:36
Definition DictEntry.hpp:123
Definition DictEntry.hpp:62
Abstract base for text segmentation.
Definition Segmentation.hpp:38
Segmented text.
Definition Segments.hpp:32
Serializable dictionary interface.
Definition SerializableDict.hpp:32
Definition DictEntry.hpp:85
Text dictionary.
Definition TextDict.hpp:29