/* * Copyright 2025 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // This file is a part of a POC for more automated generation of binding code. // It can be edited manually (for now). #include "modules/skunicode/include/SkUnicode.h" #include using namespace emscripten; EMSCRIPTEN_BINDINGS(CodeUnitsGen) { enum_("CodeUnitFlags") .value("NoCodeUnitFlag", SkUnicode::CodeUnitFlags::kNoCodeUnitFlag) .value("Whitespace", SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak) .value("Space", SkUnicode::CodeUnitFlags::kPartOfIntraWordBreak) .value("Control", SkUnicode::CodeUnitFlags::kControl) .value("Ideographic", SkUnicode::CodeUnitFlags::kIdeographic); }