Audacity 3.2.0
Functions
anonymous_namespace{NumericConverterFormatter.cpp} Namespace Reference

Functions

size_t CalculateDigits (size_t rangeEnd)
 

Function Documentation

◆ CalculateDigits()

size_t anonymous_namespace{NumericConverterFormatter.cpp}::CalculateDigits ( size_t  rangeEnd)

Definition at line 17 of file NumericConverterFormatter.cpp.

18{
19 if (rangeEnd == 0)
20 return 0;
21
22 --rangeEnd;
23
24 size_t digitsCount = 0;
25
26 while (rangeEnd > 0)
27 {
28 rangeEnd /= 10;
29 ++digitsCount;
30 }
31
32 return digitsCount;
33}

Referenced by NumericField::ForRange().

Here is the caller graph for this function: