/external/python/cpython2/Doc/includes/sqlite3/ |
text_factory.py | 14 con.text_factory = str 22 # we can also implement a custom text_factory ... 25 con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 31 # sqlite3 offers a built-in optimized text_factory that will return bytestring 33 con.text_factory = sqlite3.OptimizedUnicode
|
/external/python/cpython3/Doc/includes/sqlite3/ |
text_factory.py | 14 con.text_factory = bytes 22 # we can also implement a custom text_factory ... 24 con.text_factory = lambda x: x.decode("utf-8") + "foo"
|
/prebuilts/gdb/darwin-x86/lib/python2.7/sqlite3/test/ |
factory.py | 167 self.con.text_factory = str 174 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 181 self.con.text_factory = sqlite.OptimizedUnicode 199 # text_factory defaults to unicode 206 self.con.text_factory = lambda x: x 213 self.con.text_factory = sqlite.OptimizedUnicode 220 self.con.text_factory = sqlite.OptimizedUnicode
|
types.py | 89 orig_text_factory = self.con.text_factory 91 self.con.text_factory = str 94 self.con.text_factory = orig_text_factory 97 orig_text_factory = self.con.text_factory 100 self.con.text_factory = sqlite.OptimizedUnicode 106 self.con.text_factory = orig_text_factory
|
/prebuilts/gdb/linux-x86/lib/python2.7/sqlite3/test/ |
factory.py | 167 self.con.text_factory = str 174 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 181 self.con.text_factory = sqlite.OptimizedUnicode 199 # text_factory defaults to unicode 206 self.con.text_factory = lambda x: x 213 self.con.text_factory = sqlite.OptimizedUnicode 220 self.con.text_factory = sqlite.OptimizedUnicode
|
types.py | 89 orig_text_factory = self.con.text_factory 91 self.con.text_factory = str 94 self.con.text_factory = orig_text_factory 97 orig_text_factory = self.con.text_factory 100 self.con.text_factory = sqlite.OptimizedUnicode 106 self.con.text_factory = orig_text_factory
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/sqlite3/test/ |
factory.py | 167 self.con.text_factory = str 174 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 181 self.con.text_factory = sqlite.OptimizedUnicode 199 # text_factory defaults to unicode 206 self.con.text_factory = lambda x: x 213 self.con.text_factory = sqlite.OptimizedUnicode 220 self.con.text_factory = sqlite.OptimizedUnicode
|
types.py | 89 orig_text_factory = self.con.text_factory 91 self.con.text_factory = str 94 self.con.text_factory = orig_text_factory 97 orig_text_factory = self.con.text_factory 100 self.con.text_factory = sqlite.OptimizedUnicode 106 self.con.text_factory = orig_text_factory
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/sqlite3/test/ |
factory.py | 167 self.con.text_factory = str 174 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 181 self.con.text_factory = sqlite.OptimizedUnicode 199 # text_factory defaults to unicode 206 self.con.text_factory = lambda x: x 213 self.con.text_factory = sqlite.OptimizedUnicode 220 self.con.text_factory = sqlite.OptimizedUnicode
|
types.py | 89 orig_text_factory = self.con.text_factory 91 self.con.text_factory = str 94 self.con.text_factory = orig_text_factory 97 orig_text_factory = self.con.text_factory 100 self.con.text_factory = sqlite.OptimizedUnicode 106 self.con.text_factory = orig_text_factory
|
/external/python/cpython3/Lib/sqlite3/test/ |
factory.py | 218 self.con.text_factory = bytes 225 self.con.text_factory = lambda x: str(x, "utf-8", "ignore") 232 # In py3k, str objects are always returned when text_factory 234 self.con.text_factory = sqlite.OptimizedUnicode 252 # text_factory defaults to str 258 self.con.text_factory = bytes 264 self.con.text_factory = bytearray 271 self.con.text_factory = lambda x: x
|
/external/python/cpython2/Lib/sqlite3/test/ |
factory.py | 208 self.con.text_factory = str 215 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore") 222 self.con.text_factory = sqlite.OptimizedUnicode 240 # text_factory defaults to unicode 247 self.con.text_factory = lambda x: x 254 self.con.text_factory = sqlite.OptimizedUnicode 261 self.con.text_factory = sqlite.OptimizedUnicode
|
types.py | 91 orig_text_factory = self.con.text_factory 93 self.con.text_factory = str 96 self.con.text_factory = orig_text_factory 99 orig_text_factory = self.con.text_factory 102 self.con.text_factory = sqlite.OptimizedUnicode 108 self.con.text_factory = orig_text_factory
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/ |
cursor.c | 378 if ((self->connection->text_factory == (PyObject*)&PyUnicode_Type)
379 || (self->connection->text_factory == pysqlite_OptimizedUnicode)) {
382 self->connection->text_factory == pysqlite_OptimizedUnicode ? 1 : 0);
393 } else if (self->connection->text_factory == (PyObject*)&PyString_Type) {
396 converted = PyObject_CallFunction(self->connection->text_factory, "s", val_str);
475 allow_8bit_chars = ((self->connection->text_factory != (PyObject*)&PyUnicode_Type) &&
476 (self->connection->text_factory != pysqlite_OptimizedUnicode));
[all...] |
connection.h | 91 PyObject* text_factory;
member in struct:__anon4706
|
statement.c | 148 PyErr_SetString(pysqlite_ProgrammingError, "You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.");
|
connection.c | 95 self->text_factory = (PyObject*)&PyUnicode_Type;
288 Py_XDECREF(self->text_factory);
[all...] |
/external/python/cpython2/Modules/_sqlite/ |
cursor.c | 362 if ((self->connection->text_factory == (PyObject*)&PyUnicode_Type) 363 || (self->connection->text_factory == pysqlite_OptimizedUnicode)) { 366 self->connection->text_factory == pysqlite_OptimizedUnicode ? 1 : 0); 377 } else if (self->connection->text_factory == (PyObject*)&PyString_Type) { 380 converted = PyObject_CallFunction(self->connection->text_factory, "s#", val_str, nbytes); 464 allow_8bit_chars = ((self->connection->text_factory != (PyObject*)&PyUnicode_Type) && 465 (self->connection->text_factory != pysqlite_OptimizedUnicode)); [all...] |
connection.h | 91 PyObject* text_factory; member in struct:__anon32732
|
statement.c | 151 PyErr_SetString(pysqlite_ProgrammingError, "You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.");
|
connection.c | 95 self->text_factory = (PyObject*)&PyUnicode_Type; 291 Py_XDECREF(self->text_factory); [all...] |
/external/python/cpython3/Modules/_sqlite/ |
connection.h | 85 PyObject* text_factory; member in struct:__anon33354
|
cursor.c | 294 if (self->connection->text_factory == (PyObject*)&PyUnicode_Type) { 318 } else if (self->connection->text_factory == (PyObject*)&PyBytes_Type) { 320 } else if (self->connection->text_factory == (PyObject*)&PyByteArray_Type) { 323 converted = PyObject_CallFunction(self->connection->text_factory, "y#", val_str, nbytes);
|
connection.c | 108 self->text_factory = (PyObject*)&PyUnicode_Type; 251 Py_XDECREF(self->text_factory); [all...] |