Home
last modified time | relevance | path

Searched refs:trans_table (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Modules/
Dstropmodule.c956 int trans_table[256]; in strop_translate() local
991 trans_table[i] = Py_CHARMASK(table[i]); in strop_translate()
994 trans_table[(int) Py_CHARMASK(del_table[i])] = -1; in strop_translate()
998 if (trans_table[c] != -1) in strop_translate()
999 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in strop_translate()
/external/python/cpython3/Objects/
Dbytearrayobject.c1278 int trans_table[256]; in bytearray_translate_impl() local
1326 trans_table[i] = Py_CHARMASK(i); in bytearray_translate_impl()
1329 trans_table[i] = Py_CHARMASK(table_chars[i]); in bytearray_translate_impl()
1333 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate_impl()
1337 if (trans_table[c] != -1) in bytearray_translate_impl()
1338 *output++ = (char)trans_table[c]; in bytearray_translate_impl()
Dbytesobject.c2030 int trans_table[256]; in bytes_translate_impl() local
2102 trans_table[i] = Py_CHARMASK(i); in bytes_translate_impl()
2105 trans_table[i] = Py_CHARMASK(table_chars[i]); in bytes_translate_impl()
2110 trans_table[(int) Py_CHARMASK(del_table_chars[i])] = -1; in bytes_translate_impl()
2115 if (trans_table[c] != -1) in bytes_translate_impl()
2116 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in bytes_translate_impl()
/external/python/cpython2/Objects/
Dbytesobject.c2115 int trans_table[256]; in bytes_translate_impl() local
2187 trans_table[i] = Py_CHARMASK(i); in bytes_translate_impl()
2190 trans_table[i] = Py_CHARMASK(table_chars[i]); in bytes_translate_impl()
2195 trans_table[(int) Py_CHARMASK(del_table_chars[i])] = -1; in bytes_translate_impl()
2200 if (trans_table[c] != -1) in bytes_translate_impl()
2201 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in bytes_translate_impl()
Dbytearrayobject.c1472 int trans_table[256]; in bytearray_translate() local
1525 trans_table[i] = Py_CHARMASK(i); in bytearray_translate()
1528 trans_table[i] = Py_CHARMASK(table[i]); in bytearray_translate()
1532 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate()
1536 if (trans_table[c] != -1) in bytearray_translate()
1537 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in bytearray_translate()
Dstringobject.c2213 int trans_table[256]; in string_translate() local
2293 trans_table[i] = Py_CHARMASK(i); in string_translate()
2296 trans_table[i] = Py_CHARMASK(table[i]); in string_translate()
2300 trans_table[(int) Py_CHARMASK(del_table[i])] = -1; in string_translate()
2304 if (trans_table[c] != -1) in string_translate()
2305 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in string_translate()