Open Chinese Convert
0.4.3
A project for conversion between Traditional and Simplified Chinese
|
Node.js language binding. More...
Data Structures | |
class | OpenCC |
OpenCC Node.js API. More... | |
Functions | |
void | OpenCC::convert (string input, function callback) |
Converts input text. More... | |
string | OpenCC::convertSync (string input) |
Converts input text. More... | |
void | OpenCC::setConversionMode (int conversionMode) |
Sets conversion mode. More... | |
Variables | |
OpenCC | CONVERSION_FAST = 0 |
Default conversion mode. | |
OpenCC | CONVERSION_SEGMENT_ONLY = 1 |
Only converts text into segments. | |
OpenCC | CONVERSION_LIST_CANDIDATES = 2 |
List all candidates of every segment. | |
Node.js language binding.
void convert | ( | string | input, |
function | callback | ||
) |
Converts input text.
input | Input text. |
callback | Callback function(err, convertedText). |
string convertSync | ( | string | input | ) |
Converts input text.
input | Input text. |
void setConversionMode | ( | int | conversionMode | ) |
Sets conversion mode.
conversionMode | Conversion mode. |