Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

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

函数模板 ireplace_all

boost::algorithm::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