ddnet/src/tools/unicode_confusables.cpp
def faa3cc195d UTF8 nocase compare & use for chat TAB completion
- As suggested by Arseniy Zarche
- Also updated confusables to Unicode 12
2019-01-09 08:31:03 +01:00

14 lines
321 B
C++

#include <base/system.h>
int main(int argc, const char **argv) // ignore_convention
{
dbg_logger_stdout();
if(argc < 1 + 2)
{
dbg_msg("usage", "%s STR1 STR2", argv[0] ? argv[0] : "unicode_confusables");
return -1;
}
dbg_msg("conf", "not_confusable=%d", str_utf8_comp_confusable(argv[1], argv[2]));
return 0;
}