forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_string.pxd
More file actions
25 lines (23 loc) · 858 Bytes
/
cef_string.pxd
File metadata and controls
25 lines (23 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
from libcpp cimport bool as cpp_bool
from libc.stddef cimport wchar_t
from libcpp.string cimport string as cpp_string
from wstring cimport wstring as cpp_wstring
cdef extern from "include/internal/cef_string.h":
ctypedef struct cef_string_t:
pass
cdef cppclass CefString:
CefString()
CefString(cef_string_t*)
void Attach(cef_string_t* str, cpp_bool owner)
cpp_bool empty()
cpp_bool FromASCII(char*)
# noinspection PyUnresolvedReferences
cpp_bool FromString(wchar_t*, size_t, cpp_bool)
cpp_bool FromString(cpp_string& str)
cpp_string ToString()
cpp_wstring ToWString()
char* c_str()
size_t length()