2023-02-14 11:08:25 -05:00
|
|
|
/*
|
|
|
|
|
* 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 {
|
|
|
|
|
|
2023-02-14 11:31:26 -05:00
|
|
|
Vector<size_t> find_grapheme_segmentation_boundaries(Utf8View const&);
|
2023-02-14 11:08:25 -05:00
|
|
|
Vector<size_t> find_grapheme_segmentation_boundaries(Utf16View const&);
|
2023-02-14 11:31:26 -05:00
|
|
|
Vector<size_t> find_grapheme_segmentation_boundaries(Utf32View const&);
|
2023-02-14 11:08:25 -05:00
|
|
|
|
|
|
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf8View const&);
|
|
|
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf16View const&);
|
2023-02-14 11:31:26 -05:00
|
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf32View const&);
|
2023-02-14 11:08:25 -05:00
|
|
|
|
2023-02-14 11:31:26 -05:00
|
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf8View const&);
|
2023-02-14 11:08:25 -05:00
|
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf16View const&);
|
2023-02-14 11:31:26 -05:00
|
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf32View const&);
|
2023-02-14 11:08:25 -05:00
|
|
|
|
|
|
|
|
}
|