| 43 | |
| 44 | template <class T> |
| 45 | bool RangeOk(T c) noexcept { |
| 46 | static_assert(std::is_integral<T>::value, "Integral type character expected"); |
| 47 | |
| 48 | if (sizeof(T) == 1) { |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | return c >= static_cast<T>(0) && c <= static_cast<T>(127); |
| 53 | } |
| 54 | |
| 55 | #ifndef TSTRING_IS_STD_STRING |
| 56 | template <class String> |
no outgoing calls
no test coverage detected