• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2025 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 // This file is a part of a POC for more automated generation of binding code.
8 // It can be edited manually (for now).
9 
10 #include "modules/skunicode/include/SkUnicode.h"
11 
12 #include <emscripten/bind.h>
13 
14 using namespace emscripten;
15 
EMSCRIPTEN_BINDINGS(CodeUnitsGen)16 EMSCRIPTEN_BINDINGS(CodeUnitsGen) {
17     enum_<SkUnicode::CodeUnitFlags>("CodeUnitFlags")
18             .value("NoCodeUnitFlag", SkUnicode::CodeUnitFlags::kNoCodeUnitFlag)
19             .value("Whitespace", SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak)
20             .value("Space", SkUnicode::CodeUnitFlags::kPartOfIntraWordBreak)
21             .value("Control", SkUnicode::CodeUnitFlags::kControl)
22             .value("Ideographic", SkUnicode::CodeUnitFlags::kIdeographic);
23 }
24