packages/Utils/gtest/Gtest_Functions.cc
//---------------------------------------------------------------------------//
// NEMESIS FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Calculate the number of base-10 digits a nonnegative number has
 */
NEMESIS FUNCTIONS
\brief Calculate the number of base-10 digits a nonnegative number has
NEMESIS FUNCTIONS \ brief Calculate the number of base - 10 digits a nonnegative number has
unsigned int calc_num_digits(std::size_t number)
{
    unsigned int num_digits = 0;
    do {
        number /= 10;
        ++num_digits;
    } while (number > 0);
    ENSURE(num_digits > 0);
    return num_digits;
}
unsigned int calc_num_digits ( std :: size_t number ) { unsigned int num_digits = 0 ; do { number /= 10 ; ++ num_digits ; } while ( number > 0 ) ; ENSURE ( num_digits > 0 ) ; return num_digits ; }
NEMESIS FUNCTIONS
 \brief Calculate the number of base-10 digits a nonnegative number has
NEMESIS FUNCTIONS \ brief Calculate the number of base - 10 digits a nonnegative number has