MCPcopy Create free account
hub / github.com/bumptop/BumpTop / fetchtrInlinedCpp

Function fetchtrInlinedCpp

trunk/win/Source/LUpdateString/cpp.cpp:1126–1144  ·  view source on GitHub ↗

Fetches tr() calls in C++ code in UI files (inside " " tag). This mechanism is obsolete. */

Source from the content-addressed store, hash-verified

1124 tag). This mechanism is obsolete.
1125*/
1126void fetchtrInlinedCpp(const QString &in, Translator &translator, const QString &context)
1127{
1128 yyInStr = in;
1129 yyInPos = 0;
1130 yyFileName = QString();
1131 yyCodecIsUtf8 = (translator.codecName() == "UTF-8");
1132 yyForceUtf8 = true;
1133 yySourceIsUnicode = true;
1134 yySavedBraceDepth.clear();
1135 yySavedParenDepth.clear();
1136 yyBraceDepth = 0;
1137 yyParenDepth = 0;
1138 yyCurLineNo = 1;
1139 yyBraceLineNo = 1;
1140 yyParenLineNo = 1;
1141 yyCh = getChar();
1142
1143 parse(&translator, context, QString());
1144}
1145
1146
1147bool loadCPP(Translator &translator, QIODevice &dev, ConversionData &cd)

Callers

nothing calls this directly

Calls 4

getCharFunction · 0.70
parseFunction · 0.70
QStringFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected