MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / PrintVariationSelectorWarningOnce

Function PrintVariationSelectorWarningOnce

src/tools/CommandLineMain.cpp:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void PrintVariationSelectorWarningOnce() {
259 if (variationSelectorWarningShown) {
260 return;
261 }
262 variationSelectorWarningShown = true;
263 fprintf(stderr,
264 "warning: input contains Unicode variation selectors (possible IVS); "
265 "conversion results may be inaccurate.\n");
266}
267
268void WarnIfTextContainsVariationSelector(const char* input, size_t length) {
269 if (variationSelectorWarningShown) {

Calls

no outgoing calls

Tested by

no test coverage detected