MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / readInt

Method readInt

source/ui/data/configFile.cpp:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int ConfigFile::readInt(BString name, int defaultValue) {
59 BString value;
60 if (this->values.get(name, value)) {
61 if (value.length()==0) {
62 return 0;
63 }
64 return atoi(value.c_str());
65 }
66 return defaultValue;
67}
68
69void ConfigFile::writeString(BString name, BString value) {
70 this->values.set(name, value);

Callers 2

initMethod · 0.80
loadMethod · 0.80

Calls 3

getMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected