반응형
boost to_upper_copy
// boost::algorithm::to_upper_copy — Convert to upper case. //
Synopsis
// // In header: <boost/algorithm/string/case_conv.hpp> //
template<typename OutputIteratorT, typename RangeT> OutputIteratorT to_upper_copy(OutputIteratorT Output, const RangeT & Input, const std::locale & Loc = std::locale()); template<typename SequenceT> SequenceT to_upper_copy(const SequenceT & Input, const std::locale & Loc = std::locale());
1.소스
// #include <iostream> #include <boost/algorithm/string/case_conv.hpp> int main( int argc , char ** argv ) { char const * s = "Test String.\n"; std::string str(s); std::cout << boost::to_upper_copy(str).c_str() << std::endl; return 0; } //
결과
hacker@ubuntu:~/cpp$ hacker@ubuntu:~/cpp$ hacker@ubuntu:~/cpp$ c++ -I /home/hacker/boost_1_61_0 -o boost_to_upper_copy1 boost_to_upper_copy1.cpp hacker@ubuntu:~/cpp$ hacker@ubuntu:~/cpp$ ./boost_to_upper_copy1 TEST STRING. hacker@ubuntu:~/cpp$
반응형
'C++ > 0x02-boost' 카테고리의 다른 글
boost 라이브러리 사용하기 ][ reactor pattern 사용하기 (0) | 2019.02.27 |
---|---|
boost 설치 (0) | 2018.03.06 |
boost iterator_range (0) | 2016.08.01 |
boost c++ 라이브러리 사용하기 ][ find iterator (0) | 2016.08.01 |
boost replace (0) | 2016.08.01 |