1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:17:35 +00:00

AK: Rename Utf8CodepointIterator => Utf8CodePointIterator

This commit is contained in:
Andreas Kling 2021-06-01 09:45:52 +02:00
parent 628c7f094f
commit 407d6cd9e4
8 changed files with 37 additions and 37 deletions

View file

@ -20,14 +20,14 @@ public:
explicit StringIterator(Object& prototype, String string);
virtual ~StringIterator() override;
Utf8CodepointIterator& iterator() { return m_iterator; }
Utf8CodePointIterator& iterator() { return m_iterator; }
bool done() const { return m_done; }
private:
friend class StringIteratorPrototype;
String m_string;
Utf8CodepointIterator m_iterator;
Utf8CodePointIterator m_iterator;
bool m_done { false };
};

View file

@ -99,7 +99,7 @@ private:
String m_decoded_input;
Utf8View m_utf8_view;
AK::Utf8CodepointIterator m_utf8_iterator;
AK::Utf8CodepointIterator m_prev_utf8_iterator;
AK::Utf8CodePointIterator m_utf8_iterator;
AK::Utf8CodePointIterator m_prev_utf8_iterator;
};
}

View file

@ -2675,7 +2675,7 @@ bool HTMLTokenizer::consumed_as_part_of_an_attribute() const
return m_return_state == State::AttributeValueUnquoted || m_return_state == State::AttributeValueSingleQuoted || m_return_state == State::AttributeValueDoubleQuoted;
}
void HTMLTokenizer::restore_to(const Utf8CodepointIterator& new_iterator)
void HTMLTokenizer::restore_to(const Utf8CodePointIterator& new_iterator)
{
if (new_iterator != m_prev_utf8_iterator) {
auto diff = m_prev_utf8_iterator - new_iterator;

View file

@ -146,7 +146,7 @@ private:
bool consumed_as_part_of_an_attribute() const;
void restore_to(const Utf8CodepointIterator& new_iterator);
void restore_to(const Utf8CodePointIterator& new_iterator);
auto& nth_last_position(size_t n = 0) { return m_source_positions.at(m_source_positions.size() - 1 - n); }
State m_state { State::Data };
@ -159,8 +159,8 @@ private:
StringView m_input;
Utf8View m_utf8_view;
Utf8CodepointIterator m_utf8_iterator;
Utf8CodepointIterator m_prev_utf8_iterator;
Utf8CodePointIterator m_utf8_iterator;
Utf8CodePointIterator m_prev_utf8_iterator;
HTMLToken m_current_token;