| 29 | // Converts arithmetic value |val| to its default string representation. |
| 30 | template <class T> |
| 31 | std::string ToString(T val) { |
| 32 | static_assert( |
| 33 | std::is_arithmetic<T>::value, |
| 34 | "spvtools::utils::ToString is restricted to only arithmetic values"); |
| 35 | std::stringstream os; |
| 36 | os << val; |
| 37 | return os.str(); |
| 38 | } |
| 39 | |
| 40 | // Converts cardinal number to ordinal number string. |
| 41 | std::string CardinalToOrdinal(size_t cardinal); |
no test coverage detected