本文整理汇总了C++中CLine::to_uint方法的典型用法代码示例。如果您正苦于以下问题:C++ CLine::to_uint方法的具体用法?C++ CLine::to_uint怎么用?C++ CLine::to_uint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLine
的用法示例。
在下文中一共展示了CLine::to_uint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: parseContent
Text_sPtr TextParser::parseContent(const char* data, const unsigned int& len)
{
DBG() << "\n---------------Text---------------------------" << ENDL;
CColumn column = char2Bin<C_COLUMN_BYTES * BIT_PER_BYTE>( data );
unsigned int offset = C_LINE_BYTES;
CLine line = char2Bin<C_LINE_BYTES * BIT_PER_BYTE>( &data[offset] );
offset += C_COLUMN_BYTES;
unsigned int textLength = len - offset;
Text_sPtr text( new ContentProcess<std::string> );
text->pos.x = column.to_uint();
text->pos.y = line.to_uint();
text->content.insert(0, &data[offset], textLength);
text->pos.len_x = text->content.size();
text->size = C_LINE_BYTES + C_COLUMN_BYTES + text->pos.len_x;
INFO() << "line: " << text->pos.y << ENDL;
INFO() << "column: " << text->pos.x << ENDL;
INFO() << "text: " << text->content << ENDL;
return text;
}