mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Similar to commit 6d710eeb43
. Rather than
pick-and-chosing what to support, let's just support all encodings now,
as it is trivial. For example, LibGUI will want the UTF-32 overloads.
28 lines
923 B
C++
28 lines
923 B
C++
/*
|
|
* Copyright (c) 2022, Idan Horowitz <idan.horowitz@serenityos.org>
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Forward.h>
|
|
#include <AK/Types.h>
|
|
#include <AK/Vector.h>
|
|
|
|
namespace Unicode {
|
|
|
|
Vector<size_t> find_grapheme_segmentation_boundaries(Utf8View const&);
|
|
Vector<size_t> find_grapheme_segmentation_boundaries(Utf16View const&);
|
|
Vector<size_t> find_grapheme_segmentation_boundaries(Utf32View const&);
|
|
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf8View const&);
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf16View const&);
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf32View const&);
|
|
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf8View const&);
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf16View const&);
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf32View const&);
|
|
|
|
}
|