MCPcopy Create free account
hub / github.com/audacity/audacity / digitToInt

Function digitToInt

libraries/lib-string-utils/FromChars.cpp:21–24  ·  view source on GitHub ↗

Converting c to unsigned here helps to eliminate one check

Source from the content-addressed store, hash-verified

19{
20// Converting c to unsigned here helps to eliminate one check
21unsigned digitToInt(char c) noexcept
22{
23 return static_cast<unsigned>(c) - '0';
24}
25
26template <typename T>
27bool safeMul10Add(T& result, T a, T b)

Callers 1

FastStringToIntFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected