MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
字符转换

字符大小写转换函数 更多...

函数

template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 CharT to_lowercase (const CharT c) noexcept
 将字符转换为小写
template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 CharT to_uppercase (const CharT c) noexcept
 将字符转换为大写

详细描述

字符大小写转换函数

函数说明

◆ to_lowercase()

template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 CharT to_lowercase ( const CharT c)
noexcept

将字符转换为小写

模板参数
CharT字符类型
参数
c要转换的字符
返回
转换后的小写字符,如果无法转换则返回原字符

将A-Z转换为a-z,其他字符保持不变。

在文件 memory.hpp328 行定义.

被这些函数引用 string_compare_ignore_case(), string_compare_ignore_case() , 以及 string_find_pattern_ignored_case().

◆ to_uppercase()

template<typename CharT>
MSTL_CONST_FUNCTION MSTL_CONSTEXPR14 CharT to_uppercase ( const CharT c)
noexcept

将字符转换为大写

模板参数
CharT字符类型
参数
c要转换的字符
返回
转换后的大写字符,如果无法转换则返回原字符

将a-z转换为A-Z,其他字符保持不变。

在文件 memory.hpp347 行定义.