41 #define OPENCC_DEFAULT_CONFIG_SIMP_TO_TRAD "st2.json"
48 #define OPENCC_DEFAULT_CONFIG_TRAD_TO_SIMP "t2s.json"
66 OPENCC_EXPORT opencc_t
opencc_open(
const char* configFileName);
163 std::string Convert(
const std::string& input)
const;
169 std::string Convert(
const char* input)
const;
176 std::string Convert(
const char* input,
size_t length)
const;
185 size_t Convert(
const char* input,
char* output)
const;
195 size_t Convert(
const char* input,
size_t length,
char* output)
const;
198 const void* internalData;
OPENCC_EXPORT int opencc_close(opencc_t opencc)
Destroys an instance of opencc.
Definition: SimpleConverter.cpp:102
A high level converter This interface does not require C++11 to compile.
Definition: opencc.h:149
OPENCC_EXPORT size_t opencc_convert_utf8_to_buffer(opencc_t opencc, const char *input, size_t length, char *output)
Converts UTF-8 string.
Definition: SimpleConverter.cpp:113
OPENCC_EXPORT char * opencc_convert_utf8(opencc_t opencc, const char *input, size_t length)
Converts UTF-8 string This function returns an allocated C-Style string, which stores the converted s...
Definition: SimpleConverter.cpp:126
void * opencc_t
Type of opencc descriptor.
Definition: opencc.h:55
OPENCC_EXPORT opencc_t opencc_open(const char *configFileName)
Makes an instance of opencc.
Definition: SimpleConverter.cpp:89
Definition: BinaryDict.hpp:24
OPENCC_EXPORT const char * opencc_error(void)
Returns the last error message.
Definition: SimpleConverter.cpp:144
OPENCC_EXPORT void opencc_convert_utf8_free(char *str)
Releases allocated buffer by opencc_convert_utf8.
Definition: SimpleConverter.cpp:140