Boost C++ 库

...是世界上备受推崇且设计精湛的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

函数 convert_to_lower - Boost C++ 函数库
PrevUpHomeNext

函数 convert_to_lower

boost::date_time::convert_to_lower — 用于替换 std::transform( , , ,tolower) 构造的函数。

提要

// In header: <boost/date_time/date_parsing.hpp>


std::string convert_to_lower(std::string inp);

描述

此函数仅接受一个字符串,并将该字符串中的所有字符转换为小写(根据默认系统区域设置)。如果编译器不支持区域设置,则使用旧的 C 风格 tolower()。


PrevUpHomeNext