rawtypes.interpreted_types.string_types module¶

- class rawtypes.interpreted_types.string_types.StrType(name: str, is_const: bool = False)¶
- ベースクラス: - rawtypes.interpreted_types.basetype.BaseType- property pyi_types: Tuple[str, ...]¶
- rename python type for avoid language-server error - ex: ctypes.c_int32 => int 
 
- class rawtypes.interpreted_types.string_types.CppStringType¶
- ベースクラス: - rawtypes.interpreted_types.string_types.StrType- http://docs.cython.org/en/latest/src/tutorial/strings.html#c-strings - cpp_to_py(value: str)¶
- c/c++ の値から PyObject* を作る 
 
- class rawtypes.interpreted_types.string_types.CStringType¶
- ベースクラス: - rawtypes.interpreted_types.string_types.StrType- property ctypes_type: str¶
- python type for ctypes.Structure fields 
 - property py_result: str¶
 - cpp_from_py(indent: str, i: int, default_value: str) str¶
- PyObject* から c/c++ の値を取り出す 
 - cpp_to_py(value: str) str¶
- c/c++ の値から PyObject* を作る 
 
- class rawtypes.interpreted_types.string_types.CharPointerType(is_const: bool = False)¶
- ベースクラス: - rawtypes.interpreted_types.basetype.BaseType- str, bytes を const char* ではなく、 c_void_p を const char * として受け取りたい。 - 例 const char *text = "abcd"; auto end = text + strlen(text); - some_func(text, end); // pointer for text range. - property ctypes_type: str¶
- python type for ctypes.Structure fields 
 - py_param(name: str, default_value: str, pyi: bool) str¶
- python type with name for a pyi function param - use pyi_types. 
 - cpp_from_py(indent: str, i: int, default_value: str) str¶
- PyObject* から c/c++ の値を取り出す 
 - cpp_to_py(value: str) str¶
- c/c++ の値から PyObject* を作る