FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
skia-python/src/skia/Unicode.cpp at main · skia-python/skia-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
skia-python
/
skia-python
Public
Notifications
You must be signed in to change notification settings
Fork
52
Star
322
Code
Issues
44
Pull requests
6
Discussions
Actions
Projects
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
skia-python
/
src
/
skia
/
Unicode.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 640 Bytes
Breadcrumbs
skia-python
/
src
/
skia
/
Unicode.cpp
Copy path
File metadata and controls
21 lines (17 loc) · 640 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
include
"
common.h
"
#
include
"
modules/skunicode/include/SkUnicode_icu.h
"
void
initUnicode
(py::
module
&m) {
py::class_<SkUnicode, sk_sp<SkUnicode>, SkRefCnt>
unicode
(m,
"
Unicode
"
);
unicode
.
def
(
py::init
(
[] (
void
) {
return
SkUnicodes::ICU::Make
();
}))
.
def_static
(
"
ICU_Make
"
, &SkUnicodes::
ICU
::Make)
;
//
SkUnicodes::ICU is a namespace
py::object SimpleNamespace =
py::module_::import
(
"
types
"
).
attr
(
"
SimpleNamespace
"
);
m.
attr
(
"
Unicodes
"
) =
SimpleNamespace
();
m.
attr
(
"
Unicodes
"
).
attr
(
"
ICU
"
) =
SimpleNamespace
();
m.
attr
(
"
Unicodes
"
).
attr
(
"
ICU
"
).
attr
(
"
Make
"
) = m.
attr
(
"
Unicode
"
).
attr
(
"
ICU_Make
"
);
}
Back
|
FazBrowse Home
|
New Git URL