MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getString

Function getString

launcher/minecraft/auth/Parsers.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18bool getString(QJsonValue value, QString & out) {
19 if(!value.isString()) {
20 return false;
21 }
22 out = value.toString();
23 return true;
24}
25
26bool getNumber(QJsonValue value, double & out) {
27 if(!value.isDouble()) {

Callers 7

fromJSONMethod · 0.85
parseXTokenResponseFunction · 0.85
parseMinecraftProfileFunction · 0.85
parseRolloutResponseFunction · 0.85
parseMojangResponseFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected