Searched refs:argbuf (Results 1 – 8 of 8) sorted by relevance
/external/iproute2/misc/ |
D | ssfilter.y | 195 static char argbuf[1024]; in yylex() local 196 static char *tokptr = argbuf; in yylex() 208 if (fgets(argbuf, sizeof(argbuf)-1, yy_fp) == NULL) in yylex() 210 argbuf[sizeof(argbuf)-1] = 0; in yylex() 211 if (strlen(argbuf) == sizeof(argbuf) - 1) { in yylex() 215 if (argbuf[strlen(argbuf)-1] == '\n') in yylex() 216 argbuf[strlen(argbuf)-1] = 0; in yylex() 217 if (argbuf[0] == '#' || argbuf[0] == '0') in yylex() 219 tokptr = argbuf; in yylex()
|
/external/python/cpython3/Python/ |
D | pystrhex.c | 5 static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen, in _Py_strhex_impl() argument 32 c = (argbuf[i] >> 4) & 0xf; in _Py_strhex_impl() 34 c = argbuf[i] & 0xf; in _Py_strhex_impl() 51 PyAPI_FUNC(PyObject *) _Py_strhex(const char* argbuf, const Py_ssize_t arglen) in _Py_strhex() argument 53 return _Py_strhex_impl(argbuf, arglen, 0); in _Py_strhex() 58 PyAPI_FUNC(PyObject *) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen) in _Py_strhex_bytes() argument 60 return _Py_strhex_impl(argbuf, arglen, 1); in _Py_strhex_bytes()
|
/external/python/cpython3/Include/ |
D | pystrhex.h | 10 PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen); 12 PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen);
|
/external/python/cpython2/Modules/ |
D | binascii.c | 1043 char* argbuf; in binascii_hexlify() local 1051 argbuf = parg.buf; in binascii_hexlify() 1070 c = (argbuf[i] >> 4) & 0xf; in binascii_hexlify() 1073 c = argbuf[i] & 0xf; in binascii_hexlify() 1106 char* argbuf; in binascii_unhexlify() local 1114 argbuf = parg.buf; in binascii_unhexlify() 1137 int top = to_int(Py_CHARMASK(argbuf[i])); in binascii_unhexlify() 1138 int bot = to_int(Py_CHARMASK(argbuf[i+1])); in binascii_unhexlify()
|
/external/python/cpython3/Modules/ |
D | binascii.c | 1179 const char* argbuf; in binascii_a2b_hex_impl() local 1185 argbuf = hexstr->buf; in binascii_a2b_hex_impl() 1205 int top = to_int(Py_CHARMASK(argbuf[i])); in binascii_a2b_hex_impl() 1206 int bot = to_int(Py_CHARMASK(argbuf[i+1])); in binascii_a2b_hex_impl()
|
/external/python/cpython3/Objects/ |
D | bytearrayobject.c | 2022 char* argbuf = PyByteArray_AS_STRING(self); in bytearray_hex() local 2024 return _Py_strhex(argbuf, arglen); in bytearray_hex()
|
D | bytesobject.c | 2433 char* argbuf = PyBytes_AS_STRING(self); in bytes_hex() local 2435 return _Py_strhex(argbuf, arglen); in bytes_hex()
|
/external/python/cpython2/Objects/ |
D | bytesobject.c | 2440 char* argbuf = PyBytes_AS_STRING(self); in bytes_hex() local 2442 return _Py_strhex(argbuf, arglen); in bytes_hex()
|