Learning boost 3 -- string algorithm 1[6]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 heroboy2000 的 blog

void trim_left  (sequence&, std::local&=std::local());

void trim_right (sequence&, std::local&=std::local());

 

sequence trim_copy        (const sequence&, std::local&=std::local());

sequence trim_left_copy  (const sequence&, std::local&=std::local());

sequence trim_right_copy (const sequence&, std::local&=std::local());

上述算法删除字符串中左右(或是其中之一)的空格。

 

void trim_if      (sequence&, predicate);

void trim_left_if (sequence&, predicate);

void trim_right_if(sequence&, predicate);

 

sequence trim_copy_if      (const sequence&, predicate);

sequence trim_left_copy_if (const sequence&, predicate);

sequence trim_right_copy_if(const sequence&, predicate);

 

outputiterator trim_copy_if      (outputiterator, const collection&, predicate);

outputiterator trim_left_copy_if (outputiterator, const collection&, predicate);

outputiterator trim_right_copy_if(outputiterator, const collection&, predicate);

本文关键:Learning boost 3 -- string algorithm 1
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top