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

Function recordMessage

trunk/win/Source/LUpdateString/cpp.cpp:723–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723static void recordMessage(
724 Translator *tor, int line, const QString &context, const QString &text, const QString &comment,
725 const QString &extracomment, bool utf8, bool plural)
726{
727 TranslatorMessage msg(
728 transcode(context, utf8), transcode(text, utf8), transcode(comment, utf8), QString(),
729 yyFileName, line, QStringList(),
730 TranslatorMessage::Unfinished, plural);
731 msg.setExtraComment(transcode(extracomment.simplified(), utf8));
732 if ((utf8 || yyForceUtf8) && !yyCodecIsUtf8 && msg.needs8Bit())
733 msg.setUtf8(true);
734 tor->extend(msg);
735}
736
737static QString remainingFileString; //used for getting source lines
738static int lastLineNumber;

Callers 1

parseFunction · 0.85

Calls 4

transcodeFunction · 0.85
QStringFunction · 0.50
QStringListClass · 0.50
extendMethod · 0.45

Tested by

no test coverage detected