7#ifndef BOOST_LOCALE_UTIL_STRING_HPP
8#define BOOST_LOCALE_UTIL_STRING_HPP
10#include <boost/locale/config.hpp>
13namespace boost {
namespace locale {
namespace util {
15 template<
typename Char>
23 inline constexpr bool is_upper_ascii(
const char c)
25 return 'A' <= c && c <=
'Z';
28 inline constexpr bool is_lower_ascii(
const char c)
30 return 'a' <= c && c <=
'z';
33 inline constexpr bool is_numeric_ascii(
const char c)
35 return '0' <= c && c <=
'9';
41 return static_cast<char>((c - (std::numeric_limits<char>::min)()) + (std::numeric_limits<char>::min)());
Char * str_end(Char *str)
Return the end of a C-string, i.e. the pointer to the trailing NULL byte.
Definition: string.hpp:16
constexpr char to_char(unsigned char c)
Cast an unsigned char to a (possibly signed) char avoiding implementation defined behavior.
Definition: string.hpp:39