MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / GetIntValue

Method GetIntValue

src/config/Block.cxx:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21int
22BlockParam::GetIntValue() const
23{
24 const char *const s = value.c_str();
25 char *endptr;
26 long value2 = strtol(s, &endptr, 0);
27 if (endptr == s || *endptr != 0)
28 throw FmtRuntimeError("Not a valid number in line {}", line);
29
30 return value2;
31}
32
33unsigned
34BlockParam::GetUnsignedValue() const

Callers 1

GetBlockValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected