summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-01 09:45:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-01 09:45:52 +0200
commit407d6cd9e488ca1cd8bb47b0e493afc7d28a2edc (patch)
tree973bffcd30a05ef64503386982c2028387f7d799 /Userland
parent628c7f094f78d06d28c9fe0f14968e00e82e5be3 (diff)
downloadserenity-407d6cd9e488ca1cd8bb47b0e493afc7d28a2edc.zip
AK: Rename Utf8CodepointIterator => Utf8CodePointIterator
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Runtime/StringIterator.h4
-rw-r--r--Userland/Libraries/LibWeb/CSS/Parser/Tokenizer.h4
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp2
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.h6
4 files changed, 8 insertions, 8 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/StringIterator.h b/Userland/Libraries/LibJS/Runtime/StringIterator.h
index b72be9b4f4..0321930266 100644
--- a/Userland/Libraries/LibJS/Runtime/StringIterator.h
+++ b/Userland/Libraries/LibJS/Runtime/StringIterator.h
@@ -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 };
};
diff --git a/Userland/Libraries/LibWeb/CSS/Parser/Tokenizer.h b/Userland/Libraries/LibWeb/CSS/Parser/Tokenizer.h
index 2f25beef66..3548242bc3 100644
--- a/Userland/Libraries/LibWeb/CSS/Parser/Tokenizer.h
+++ b/Userland/Libraries/LibWeb/CSS/Parser/Tokenizer.h
@@ -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;
};
}
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
index 4d5ec0ebe7..7d716a8532 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
@@ -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;
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.h b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.h
index da9945ed78..0024bcb08f 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.h
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.h
@@ -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;