Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
emoji_segmenter.hpp File Reference
#include <cstddef>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::canvas::FontRun

Namespaces

namespace  pulp
namespace  pulp::canvas

Enumerations

enum class  pulp::canvas::FontRunRole : unsigned char { pulp::canvas::Default = 0 , pulp::canvas::Emoji = 1 }
 Which font role a run should resolve against. More...

Functions

std::vector< FontRun > pulp::canvas::segment_emoji_runs (std::string_view utf8_text)
 Segment utf8_text into runs that respect emoji grapheme clusters.
bool pulp::canvas::contains_emoji (std::string_view utf8_text)
 Cheap test: returns true if utf8_text contains at least one codepoint that the segmenter would route to the emoji font (with FE0F/FE0E rules applied).