本文整理汇总了C++中SegmentedString::escaped方法的典型用法代码示例。如果您正苦于以下问题:C++ SegmentedString::escaped方法的具体用法?C++ SegmentedString::escaped怎么用?C++ SegmentedString::escaped使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SegmentedString
的用法示例。
在下文中一共展示了SegmentedString::escaped方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: append
void SegmentedString::append(const SegmentedString &s)
{
ASSERT(!s.escaped());
append(s.m_currentString);
if (s.m_composite) {
DeprecatedValueListConstIterator<SegmentedSubstring> i = s.m_substrings.begin();
DeprecatedValueListConstIterator<SegmentedSubstring> e = s.m_substrings.end();
for (; i != e; ++i)
append(*i);
}
m_currentChar = m_pushedChar1 ? &m_pushedChar1 : m_currentString.m_current;
}
示例2: prepend
void SegmentedString::prepend(const SegmentedString& s)
{
ASSERT(!escaped());
ASSERT(!s.escaped());
if (s.isComposite()) {
Deque<SegmentedSubstring>::const_reverse_iterator it = s.m_substrings.rbegin();
Deque<SegmentedSubstring>::const_reverse_iterator e = s.m_substrings.rend();
for (; it != e; ++it)
prepend(*it);
}
prepend(s.m_currentString);
m_currentChar = m_pushedChar1 ? m_pushedChar1 : (m_currentString.m_length ? m_currentString.getCurrentChar() : 0);
}
示例3: prepend
void SegmentedString::prepend(const SegmentedString &s)
{
ASSERT(!escaped());
ASSERT(!s.escaped());
if (s.m_composite) {
DeprecatedValueListConstIterator<SegmentedSubstring> i = s.m_substrings.fromLast();
DeprecatedValueListConstIterator<SegmentedSubstring> e = s.m_substrings.end();
for (; i != e; --i)
prepend(*i);
}
prepend(s.m_currentString);
m_currentChar = m_pushedChar1 ? &m_pushedChar1 : m_currentString.m_current;
}
示例4: append
void SegmentedString::append(const SegmentedString &s)
{
ASSERT(!m_closed);
ASSERT(!s.escaped());
append(s.m_currentString);
if (s.m_composite) {
Deque<SegmentedSubstring>::const_iterator it = s.m_substrings.begin();
Deque<SegmentedSubstring>::const_iterator e = s.m_substrings.end();
for (; it != e; ++it)
append(*it);
}
m_currentChar = m_pushedChar1 ? &m_pushedChar1 : m_currentString.m_current;
}