Learning boost 3 -- string algorithm 1[27]

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

本文简介:选择自 heroboy2000 的 blog

返回满足pred判断式的字符的查找的finder对象。

pred 是类似于bool pred(char c);这样的函数或仿函数。

compress可以取值为:

token_compress_on :将相邻的满足pred的字符合并作为查找结果。

token_compress_off:不合并相邻的字符。

例如:对于bind2nd(equal_to<char>,’c’)这样的判断式,用token_finder查找”aabbcc”,对于token_compress_on结果是”cc”,对于token_compress_off是分别查找到两个”c”

 

finder range_finder(beg, end);

finder range_finder(iterator_range);

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

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

go top