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

Function matchEncoding

trunk/win/Source/LUpdateString/cpp.cpp:502–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502static bool matchEncoding(bool *utf8)
503{
504 STRING(QApplication);
505 STRING(QCoreApplication);
506 STRING(UnicodeUTF8);
507 STRING(DefaultCodec);
508 STRING(CodecForTr);
509
510 if (yyTok != Tok_Ident)
511 return false;
512 if (yyIdent == strQApplication || yyIdent == strQCoreApplication) {
513 yyTok = getToken();
514 if (yyTok == Tok_ColonColon)
515 yyTok = getToken();
516 }
517 if (yyIdent == strUnicodeUTF8) {
518 *utf8 = true;
519 yyTok = getToken();
520 return true;
521 }
522 if (yyIdent == strDefaultCodec || yyIdent == strCodecForTr) {
523 *utf8 = false;
524 yyTok = getToken();
525 return true;
526 }
527 return false;
528}
529
530static bool matchInteger(qlonglong *number)
531{

Callers 1

parseFunction · 0.85

Calls 1

getTokenFunction · 0.85

Tested by

no test coverage detected