summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/text/SegmentedString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/text/SegmentedString.cpp')
-rw-r--r--WebCore/platform/text/SegmentedString.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/WebCore/platform/text/SegmentedString.cpp b/WebCore/platform/text/SegmentedString.cpp
index 9f5eb26..0b3c7e9 100644
--- a/WebCore/platform/text/SegmentedString.cpp
+++ b/WebCore/platform/text/SegmentedString.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
+ Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
@@ -59,10 +59,10 @@ unsigned SegmentedString::length() const
++length;
}
if (m_composite) {
- Deque<SegmentedSubstring>::const_iterator it = m_substrings.begin();
- Deque<SegmentedSubstring>::const_iterator e = m_substrings.end();
- for (; it != e; ++it)
- length += it->m_length;
+ DeprecatedValueListConstIterator<SegmentedSubstring> i = m_substrings.begin();
+ DeprecatedValueListConstIterator<SegmentedSubstring> e = m_substrings.end();
+ for (; i != e; ++i)
+ length += (*i).m_length;
}
return length;
}
@@ -70,10 +70,10 @@ unsigned SegmentedString::length() const
void SegmentedString::setExcludeLineNumbers()
{
if (m_composite) {
- Deque<SegmentedSubstring>::iterator it = m_substrings.begin();
- Deque<SegmentedSubstring>::iterator e = m_substrings.end();
- for (; it != e; ++it)
- it->setExcludeLineNumbers();
+ DeprecatedValueListIterator<SegmentedSubstring> i = m_substrings.begin();
+ DeprecatedValueListIterator<SegmentedSubstring> e = m_substrings.end();
+ for (; i != e; ++i)
+ (*i).setExcludeLineNumbers();
} else
m_currentString.setExcludeLineNumbers();
}
@@ -120,10 +120,10 @@ void SegmentedString::append(const SegmentedString &s)
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);
+ 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;
}
@@ -133,10 +133,10 @@ void SegmentedString::prepend(const SegmentedString &s)
ASSERT(!escaped());
ASSERT(!s.escaped());
if (s.m_composite) {
- 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);
+ 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;
@@ -146,7 +146,7 @@ void SegmentedString::advanceSubstring()
{
if (m_composite) {
m_currentString = m_substrings.first();
- m_substrings.removeFirst();
+ m_substrings.remove(m_substrings.begin());
if (m_substrings.isEmpty())
m_composite = false;
} else {
@@ -164,10 +164,10 @@ String SegmentedString::toString() const
}
m_currentString.appendTo(result);
if (m_composite) {
- Deque<SegmentedSubstring>::const_iterator it = m_substrings.begin();
- Deque<SegmentedSubstring>::const_iterator e = m_substrings.end();
- for (; it != e; ++it)
- it->appendTo(result);
+ DeprecatedValueListConstIterator<SegmentedSubstring> i = m_substrings.begin();
+ DeprecatedValueListConstIterator<SegmentedSubstring> e = m_substrings.end();
+ for (; i != e; ++i)
+ (*i).appendTo(result);
}
return result;
}