string: add to_upper
overload for char arrays
This commit is contained in:
parent
2778c073a7
commit
d5ba7e016f
@ -63,6 +63,14 @@ namespace cruft {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template <std::size_t N>
|
||||||
|
inline std::string
|
||||||
|
to_upper (char const (&val)[N])
|
||||||
|
{
|
||||||
|
return to_upper (std::string_view (val));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Convert the provided string to all upper case
|
/// Convert the provided string to all upper case
|
||||||
inline std::string
|
inline std::string
|
||||||
to_upper (std::string &&val)
|
to_upper (std::string &&val)
|
||||||
|
Loading…
Reference in New Issue
Block a user