Emoji.h 605 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2022-2024, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Forward.h>
  8. #include <AK/Optional.h>
  9. #include <AK/StringView.h>
  10. #include <AK/Types.h>
  11. namespace Unicode {
  12. Optional<StringView> emoji_image_for_code_points(ReadonlySpan<u32> code_points);
  13. enum class SequenceType {
  14. Any,
  15. EmojiPresentation,
  16. };
  17. bool could_be_start_of_emoji_sequence(Utf8CodePointIterator const&, SequenceType = SequenceType::Any);
  18. bool could_be_start_of_emoji_sequence(Utf32CodePointIterator const&, SequenceType = SequenceType::Any);
  19. }