mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
These algorithms are quite chonky, and more APIs around them are to be added, so let's move them to their own files for a bit of organization.
23 lines
569 B
C++
23 lines
569 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(Utf16View const&);
|
|
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf8View const&);
|
|
Vector<size_t> find_word_segmentation_boundaries(Utf16View const&);
|
|
|
|
Vector<size_t> find_sentence_segmentation_boundaries(Utf16View const&);
|
|
|
|
}
|