Boost C++ 库

...世界上最受尊敬、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

函数模板 ireplace_all - Boost C++ 函数库
PrevUpHomeNext

函数模板 ireplace_all

boost::ireplace_all — 替换所有算法 ( 忽略大小写 )

提要

// In header: <boost/algorithm/string/replace.hpp>


template<typename SequenceT, typename Range1T, typename Range2T> 
  void ireplace_all(SequenceT & Input, const Range1T & Search, 
                    const Range2T & Format, 
                    const std::locale & Loc = std::locale());

描述

将输入中的所有搜索字符串替换为格式字符串。输入序列被就地修改。搜索忽略大小写。

参数

输入

一个输入字符串

搜索

要搜索的子字符串

Format

替换字符串

位置

用于不区分大小写比较的区域设置


PrevUpHomeNext