MCPcopy Create free account
hub / github.com/Sigil-Ebook/Sigil / GetNameOfCurrentCodepointInPython

Method GetNameOfCurrentCodepointInPython

src/EmbedPython/PythonRoutines.cpp:561–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561QString PythonRoutines::GetNameOfCurrentCodepointInPython(int cp)
562{
563 int rv = 0;
564 QString traceback;
565 QString charname = "";
566 QString module = "getcodepointname";
567 QList<QVariant> args;
568 args.append(QVariant(cp));
569 EmbeddedPython* epp = EmbeddedPython::instance();
570 QVariant res = epp->runInPython(module, QString("getname"), args, &rv, traceback, true);
571 if (rv) {
572 fprintf(stderr, "getcodepointname error %d traceback %s\n",rv, traceback.toStdString().c_str());
573 return charname;
574 }
575 charname = res.toString();
576 return charname;
577}

Callers 2

GetNameMethod · 0.80
SetNameCacheMethod · 0.80

Calls 3

appendMethod · 0.80
runInPythonMethod · 0.80
QStringClass · 0.70

Tested by

no test coverage detected