MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / splitStringKey

Function splitStringKey

src/jsplugin/JSPlugin.cpp:70–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static void splitStringKey(QString key, QString& name, int& lcid)
71{
72 int index = key.lastIndexOf("_");
73 if (index != -1) {
74 QString testName = key.left(index);
75 QString lcidStr = key.mid(index + 1);
76 int testLcid = lcidStr.toInt();
77 if (WizIntToStr(testLcid) == lcidStr) { //is a number
78 name = testName;
79 lcid = testLcid;
80 return;
81 }
82 }
83 //
84 name = key;
85 lcid = 0;
86 return;
87}
88
89
90void JSPlugin::initStrings()

Callers 1

initStringsMethod · 0.85

Calls 1

WizIntToStrFunction · 0.85

Tested by

no test coverage detected