腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
4
回答
boost
::tokenizer vs
boost
::
split
、
我一直使用
boost
::
split
方法,但我现在正在编写性能关键型代码,我想知道哪一个能提供更好的性能。例如:vector<string> tokens;与<em
浏览 4
提问于2011-10-28
得票数 32
回答已采纳
1
回答
有
split
_copy或某种快捷方式吗?
、
有谁知道
boost
::
split
的捷径。那 std::vector<std::string> args;
boost
::
split
(args, argsString,
boost
::is_any_of("\t "),
boost
::token_compress_on); 变成了 auto const args =
boost
::
split
(args, argsString,
boost
::is_any_
浏览 12
提问于2019-02-05
得票数 1
回答已采纳
2
回答
将
boost
::unordered_set作为结果映射传递给
boost
::
split
、
、
、
、
有人知道将
boost
::unordered_set作为第一个参数传递给
boost
::
split
是否合适吗?在libboost1.42-dev下,这似乎会导致问题。下面是一个导致问题的小示例程序,将其命名为test-
split
.cc:#include <
boost
boost
::is_any_of(std::string
浏览 3
提问于2010-10-21
得票数 5
回答已采纳
1
回答
boost
::
split
(result,input,
boost
::is_any_of("(,)"))无法拆分空格
、
、
代码为: vector<string> result;
boost
::
split
(result, input,
boost
浏览 38
提问于2020-06-19
得票数 1
2
回答
boost
拆分编译问题
、
string exbytes = "0x2430,2430";
split
(res1 , exbyte, is_any_of(",") );} 我得到以下编译错误:"/bb/source/
boost
/
boost
_1_39_0/
boost
/algori
浏览 3
提问于2009-11-21
得票数 1
回答已采纳
1
回答
使用
boost
::algorithm:string:
split
和std::string时出现g++无效初始化错误
、
、
= "this,is,the,string,to,
split
"; str_to_
split
.substr(1, str_to_
split
.size()-2),
boost
::algorithm::is_any_of(","),::algorithm::
split</e
浏览 1
提问于2016-03-16
得票数 2
2
回答
boost
split
不能拆分中文句子
、
、
、
std::string src = "使用
boost
split
失败了,不知道什么原因。有人可以告诉我吗?谢谢!"; 拆分结果为: ["使用
boost
split
失败了", "", "", "不知道�", "么原因", &q
浏览 1
提问于2017-04-05
得票数 1
1
回答
缺少类模板的
boost
::
split
_iterator参数
、
、
我见过几个演示如何使用
split
_iterator的示例,但Visual Studio2012显示了这个错误:Error: argument for class template "
boost
::algorithm::
split
_iterator" is missing...#include "
boost
/algorithm/string/iter_find.hpp" #include "
boost
/
浏览 1
提问于2016-01-16
得票数 0
2
回答
使用C++/
boost
的简单代理::asio/libcurl-不能下载图像
、
、
、
; std::vector<std::string>
split
2;
浏览 2
提问于2011-10-06
得票数 1
回答已采纳
1
回答
为什么调用
boost
::
split
()会给出这么多警告?
、
、
我需要一个用于在dleimiter上拆分字符串的函数,并且我正在使用
boost
库来做其他事情,所以我尝试使用
boost
::
split
。它是有效的,但它给了我一堆警告,我想知道为什么。/algorithm/string.hpp> {
boost
::
split
(
split</em
浏览 3
提问于2012-03-11
得票数 1
回答已采纳
1
回答
boost
的不同之处::拆分与
boost
::iter_
split
、
boost
::
split
和
boost
::iter_
split
函数有什么区别?
浏览 3
提问于2013-12-26
得票数 6
回答已采纳
1
回答
当输入字符串不是常量时,
boost
::
split
会改变输入字符串?
、
、
boost
::
split
函数的参数不是常量。当字符串不是常量时,
boost
::
split
会改变输入字符串还是将其移动到另一个内存地址? 问题的背景:我的服务是用C++编写的,它总是核心转储。我的代码使用
boost
::
split
函数,并将字符串的非常数引用传递给
boost
::
split
。代码将以多线程方式运行,因此我认为它不是线程安全的,并且会导致核心转储。
浏览 2
提问于2019-06-25
得票数 0
2
回答
根据字符组合/ at‘\n’拆分字符串
、
、
、
、
";vector<string> myVector = { " Yeah." 我使用的是库,但现在我想在不使用像
boost
#include <
boost
&
浏览 1
提问于2018-05-15
得票数 1
回答已采纳
1
回答
boost
::
split
return sep字符
、
、
、
、
我现在正在使用
boost
::
split
(lines, str,
boost
::is_any_of(delims));,我想知道在每个拆分中发现了哪个delim字符。我会把这个字符放在拆分行的末尾。我已经搜索过了,但在
boost
::
split
中没有找到任何这样的功能,我需要使用其他函数吗?
浏览 1
提问于2012-08-31
得票数 0
4
回答
使用
boost
库将句子中每个单词的第一个字母大写
、
、
我正在寻找一种使用
boost
将句子中每个单词的第一个字母大写的方法。为了使代码一致,即,如果输入句子中存在最终输出,则不会有任何空格或制表符。为了获得单个单词,我使用了
boost
::alogrithm::
split
并将它们组合回
boost
::algorithm::join。但是如何让每个第一个字母都大写呢?/algorithm/string/
split
.hpp> #include <<e
浏览 0
提问于2012-05-11
得票数 1
回答已采纳
2
回答
boost
::
split
是如何工作的?
、
boost
split
函数在拆分前是否需要复制源字符串?例如:std::vector<std::string> v;
boost
::
split
(v, c,
boost
::is_any_of(" "))
浏览 0
提问于2010-12-22
得票数 1
3
回答
C++/
Boost
在多个字符上拆分字符串
、
、
、
、
一旦我看到一个例子,这可能真的很简单,但是我如何概括
boost
::tokenizer或
boost
::
split
来处理由多个字符组成的分隔符?例如,对于"____",这些标准的拆分解决方案似乎都不起作用: tk(myString,
boost
::escaped_list_separator<string>
浏览 6
提问于2013-04-03
得票数 6
回答已采纳
1
回答
如何使用C++11 lambda作为
boost
谓词?
、
、
、
#include <
boost
/algorithm/string/
split
.hpp>#include <string> constexpr char
boost
::algorithm::
split
( result, text, [](wchar_t ch) -> bool { return ch == (wchar_t) separator; });/splittest/ma
浏览 1
提问于2014-02-21
得票数 1
1
回答
使用
boost
::
split
会引发大量奇怪的错误
、
#include <string>#include <
boost
\algorithm\string.hpp> using namespace
boost
::gregorian; vector<string> strs;
boo
浏览 3
提问于2014-12-15
得票数 0
回答已采纳
2
回答
无法获取
boost
标头以进行编译
、
我的代码包含#include "
boost
/algorithm/string/
split
.hpp";和#include "
boost
/algorithm/string/classification.hpp";,我的项目的include目录包含C:\Data\Libraries\
Boost
_1.56.0,它本身包含根
boost
目录和
Boost
的头文件。
split
(strin
浏览 0
提问于2015-08-11
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
ICP备案
即时通信 IM
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券