mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
AK: Remove DeprecatedStringCodePointIterator
The functionality in this class is no longer used, we can just use `Utf8View` instead.
This commit is contained in:
committed by
Andreas Kling
parent
dc9179bb1b
commit
d842d04be4
@@ -387,9 +387,9 @@ Vector<size_t> ByteString::find_all(StringView needle) const
|
||||
return StringUtils::find_all(*this, needle);
|
||||
}
|
||||
|
||||
DeprecatedStringCodePointIterator ByteString::code_points() const
|
||||
Utf8CodePointIterator ByteString::code_points() const&
|
||||
{
|
||||
return DeprecatedStringCodePointIterator(*this);
|
||||
return Utf8CodePointIterator { reinterpret_cast<u8 const*>(characters()), length() };
|
||||
}
|
||||
|
||||
ErrorOr<ByteString> ByteString::from_utf8(ReadonlyBytes bytes)
|
||||
|
||||
Reference in New Issue
Block a user