11#ifndef PythonMonkey_StrType_
12#define PythonMonkey_StrType_
37 static PyObject *
getPyObject(JSContext *cx, JS::HandleValue str);
39 static const char *
getValue(JSContext *cx, JS::HandleValue str);
41 static PyObject *
proxifyString(JSContext *cx, JS::HandleValue str);
This struct represents the 'string' type in Python, which is represented as a 'char*' in C++.
Definition StrType.hh:21
static const char * getValue(JSContext *cx, JS::HandleValue str)
Definition StrType.cc:196
static PyObject * proxifyString(JSContext *cx, JS::HandleValue str)
Definition StrType.cc:98
static PyObject * getPyObject(JSContext *cx, JS::HandleValue str)
Construct a new unicode PyObject from a JSString. Automatically handles encoding conversion for latin...
Definition StrType.cc:177