diff options
Diffstat (limited to 'Userland/Libraries/LibTextCodec/Decoder.h')
-rw-r--r-- | Userland/Libraries/LibTextCodec/Decoder.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Userland/Libraries/LibTextCodec/Decoder.h b/Userland/Libraries/LibTextCodec/Decoder.h index 6bbd515cb3..b1d0e2f429 100644 --- a/Userland/Libraries/LibTextCodec/Decoder.h +++ b/Userland/Libraries/LibTextCodec/Decoder.h @@ -13,8 +13,8 @@ namespace TextCodec { class Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) = 0; - virtual String to_utf8(StringView const&); + virtual void process(StringView, Function<void(u32)> on_code_point) = 0; + virtual String to_utf8(StringView); protected: virtual ~Decoder() = default; @@ -22,44 +22,44 @@ protected: class UTF8Decoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; - virtual String to_utf8(StringView const&) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; + virtual String to_utf8(StringView) override; }; class UTF16BEDecoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; - virtual String to_utf8(StringView const&) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; + virtual String to_utf8(StringView) override; }; class Latin1Decoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; }; class Latin2Decoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; }; class HebrewDecoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; }; class CyrillicDecoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; }; class Latin9Decoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; }; class TurkishDecoder final : public Decoder { public: - virtual void process(StringView const&, Function<void(u32)> on_code_point) override; + virtual void process(StringView, Function<void(u32)> on_code_point) override; }; Decoder* decoder_for(String const& encoding); |