本文整理汇总了C++中ostringstream::tellp方法的典型用法代码示例。如果您正苦于以下问题:C++ ostringstream::tellp方法的具体用法?C++ ostringstream::tellp怎么用?C++ ostringstream::tellp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ostringstream
的用法示例。
在下文中一共展示了ostringstream::tellp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: build_wx_wildcard_from_io_factory_aux
void build_wx_wildcard_from_io_factory_aux(const std::string& family, const std::string& group, const vector<factory_key>& id, ostringstream& wildcard)
{
ostringstream oss1;
ostringstream oss2;
bool first = true;
for(vector<factory_key>::const_iterator it = id.begin(); it!=id.end(); ++it)
{
if(family!="" && it->family != family) continue;
if(group !="" && it->group != group ) continue;
if(!first)
{
oss1 << " ";
oss2 << ";";
}
string current_ext = it->extension;
oss1 << current_ext;
oss2 << "*." << current_ext << ";";
to_upper(current_ext);
oss2 << "*." << current_ext;
first = false;
}
if(!first)
{
if(wildcard.tellp()>0) wildcard << "|";
wildcard << (family==""?(group==""?"Supported":group):family) << " files (" << oss1.str() << ")|" << oss2.str();
}
}