本文整理汇总了C++中WideString::end方法的典型用法代码示例。如果您正苦于以下问题:C++ WideString::end方法的具体用法?C++ WideString::end怎么用?C++ WideString::end使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WideString
的用法示例。
在下文中一共展示了WideString::end方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: append_candidate
bool
SKKCandList::append_candidate (const WideString &cand,
const WideString &annot,
const WideString &cand_orig,
const AttributeList &attrs)
{
if (cand.length() == 0)
return false;
if (m_candvec.size() < candvec_size) {
m_candvec.push_back(CandEnt(cand, annot, cand_orig));
return true;
} else {
m_annot_buf->m_index.push_back(m_annot_buf->m_buffer.size());
if (!annot.empty())
m_annot_buf->m_buffer.insert(m_annot_buf->m_buffer.end(),
annot.begin(), annot.end());
m_cand_orig_buf->m_index.push_back(m_cand_orig_buf->m_buffer.size());
if (!cand_orig.empty())
m_cand_orig_buf->m_buffer.insert(m_cand_orig_buf->m_buffer.end(),
cand_orig.begin(),
cand_orig.end());
return CommonLookupTable::append_candidate(cand, attrs);
}
}
示例2: equalsIgnoreCase
//--------------------------------
bool StringUtils::equalsIgnoreCase ( const WideString& s1, const WideString& s2 )
{
if ( s1.length() != s2.length() )
return false;
WideString::const_iterator it1=s1.begin();
WideString::const_iterator it2=s2.begin();
// has the end of at least one of the strings been reached?
while ( (it1!=s1.end()) && (it2!=s2.end()) )
{
if(::toupper(*it1) != ::toupper(*it2)) //letters differ?
return false;
// proceed to the next character in each string
++it1;
++it2;
}
return true;
}
示例3: AddCurrentLine
void Font::AddCurrentLine(const WideString & text, const int32 pos, SeparatorPositions & separatorPosition, Vector<WideString> & resultVector) const
{
WideString currentLine = text.substr(separatorPosition.currentLineStart, pos - separatorPosition.currentLineStart);
//Trim whitespace at begin/end line
while(currentLine.size() > 1 && IsSpace(currentLine[0]))
{
currentLine.erase(currentLine.begin());
}
while(currentLine.size() > 1 && IsSpace(currentLine[currentLine.size() - 1]))
{
currentLine.erase(currentLine.end() - 1);
}
resultVector.push_back(currentLine);
separatorPosition.Reset();
}