#include "Python.h"
#include "structmember.h"
|
void | init_speedups (void) |
|
| PyDoc_STRVAR (pydoc_scanstring,"scanstring(basestring, end, encoding, strict=True) -> (str, end)\n""\n""Scan the string s for a JSON string. End is the index of the\n""character in s after the quote that started the JSON string.\n""Unescapes all valid JSON string escape sequences and raises ValueError\n""on attempt to decode an invalid string. If strict is False then literal\n""control characters are allowed in the string.\n""\n""Returns a tuple of the decoded string and the index of the character in s\n""after the end quote.") |
|
| PyDoc_STRVAR (pydoc_encode_basestring_ascii,"encode_basestring_ascii(basestring) -> str\n""\n""Return an ASCII-only JSON representation of a Python string") |
|
| PyDoc_STRVAR (scanner_doc,"JSON scanner object") |
|
| PyDoc_STRVAR (encoder_doc,"_iterencode(obj, _current_indent_level) -> iterable") |
|
| PyDoc_STRVAR (module_doc,"simplejson speedups\n") |
|
Value:if (chunk != NULL) { \
if (chunks == NULL) { \
chunks = PyList_New(0); \
if (chunks == NULL) { \
goto bail; \
} \
} \
if (PyList_Append(chunks, chunk)) { \
goto bail; \
} \
Py_CLEAR(chunk); \
}
#define Decimal_Check |
( |
|
op | ) |
(PyObject_TypeCheck(op, DecimalTypePtr)) |
#define DEFAULT_ENCODING "utf-8" |
#define IS_WHITESPACE |
( |
|
c | ) |
(((c) == ' ') || ((c) == '\t') || ((c) == '\n') || ((c) == '\r')) |
#define Py_IS_FINITE |
( |
|
X | ) |
(!Py_IS_INFINITY(X) && !Py_IS_NAN(X)) |
#define PY_SSIZE_T_MAX INT_MAX |
#define PY_SSIZE_T_MIN INT_MIN |
#define Py_TYPE |
( |
|
ob | ) |
(((PyObject*)(ob))->ob_type) |
#define PyEncoder_Check |
( |
|
op | ) |
PyObject_TypeCheck(op, &PyEncoderType) |
#define PyEncoder_CheckExact |
( |
|
op | ) |
(Py_TYPE(op) == &PyEncoderType) |
#define PyInt_AsSsize_t PyInt_AsLong |
#define PyInt_FromSsize_t PyInt_FromLong |
#define PyOS_string_to_double json_PyOS_string_to_double |
#define PyScanner_Check |
( |
|
op | ) |
PyObject_TypeCheck(op, &PyScannerType) |
#define PyScanner_CheckExact |
( |
|
op | ) |
(Py_TYPE(op) == &PyScannerType) |
#define S_CHAR |
( |
|
c | ) |
(c >= ' ' && c <= '~' && c != '\\' && c != '"') |
void init_speedups |
( |
void |
| ) |
|
PyDoc_STRVAR |
( |
pydoc_scanstring |
, |
|
|
"scanstring(basestring, end, encoding, strict=True) -> (str, end)\n""\n""Scan the string s for a JSON string. End is the index of the\n""character in s after the quote that started the JSON string.\n""Unescapes all valid JSON string escape sequences and raises ValueError\n""on attempt to decode an invalid string. If strict is False then literal\n""control characters are allowed in the string.\n""\n""Returns a tuple of the decoded string and the index of the character in s\n""after the end quote." |
|
|
) |
| |
PyDoc_STRVAR |
( |
pydoc_encode_basestring_ascii |
, |
|
|
"encode_basestring_ascii(basestring) -> str\n""\n""Return an ASCII-only JSON representation of a Python string" |
|
|
) |
| |
PyDoc_STRVAR |
( |
scanner_doc |
, |
|
|
"JSON scanner object" |
|
|
) |
| |
PyDoc_STRVAR |
( |
encoder_doc |
, |
|
|
"_iterencode(obj, _current_indent_level) -> iterable" |
|
|
) |
| |
PyDoc_STRVAR |
( |
module_doc |
, |
|
|
"simplejson speedups\n" |
|
|
) |
| |