Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 891) sorted by relevance

12345678910>>...36

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dmystrtoul.c95 PyOS_strtoul(register char *str, char **ptr, int base) in PyOS_strtoul() argument
102 while (*str && isspace(Py_CHARMASK(*str))) in PyOS_strtoul()
103 ++str; in PyOS_strtoul()
108 if (*str == '0') { in PyOS_strtoul()
109 ++str; in PyOS_strtoul()
110 if (*str == 'x' || *str == 'X') { in PyOS_strtoul()
112 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
114 *ptr = str; in PyOS_strtoul()
117 ++str; in PyOS_strtoul()
119 } else if (*str == 'o' || *str == 'O') { in PyOS_strtoul()
[all …]
Dmysnprintf.c42 PyOS_snprintf(char *str, size_t size, const char *format, ...) in PyOS_snprintf() argument
48 rc = PyOS_vsnprintf(str, size, format, va); in PyOS_snprintf()
54 PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) in PyOS_vsnprintf() argument
63 assert(str != NULL); in PyOS_vsnprintf()
75 len = vsnprintf(str, size, format, va); in PyOS_vsnprintf()
95 memcpy(str, buffer, to_copy); in PyOS_vsnprintf()
96 str[to_copy] = '\0'; in PyOS_vsnprintf()
102 str[size-1] = '\0'; in PyOS_vsnprintf()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dmystrtoul.c95 PyOS_strtoul(register char *str, char **ptr, int base) in PyOS_strtoul() argument
102 while (*str && isspace(Py_CHARMASK(*str))) in PyOS_strtoul()
103 ++str; in PyOS_strtoul()
108 if (*str == '0') { in PyOS_strtoul()
109 ++str; in PyOS_strtoul()
110 if (*str == 'x' || *str == 'X') { in PyOS_strtoul()
112 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
114 *ptr = str; in PyOS_strtoul()
117 ++str; in PyOS_strtoul()
119 } else if (*str == 'o' || *str == 'O') { in PyOS_strtoul()
[all …]
Dmysnprintf.c42 PyOS_snprintf(char *str, size_t size, const char *format, ...) in PyOS_snprintf() argument
48 rc = PyOS_vsnprintf(str, size, format, va); in PyOS_snprintf()
54 PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) in PyOS_vsnprintf() argument
63 assert(str != NULL); in PyOS_vsnprintf()
75 len = vsnprintf(str, size, format, va); in PyOS_vsnprintf()
95 memcpy(str, buffer, to_copy); in PyOS_vsnprintf()
96 str[to_copy] = '\0'; in PyOS_vsnprintf()
102 str[size-1] = '\0'; in PyOS_vsnprintf()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_codecsmodule.c179 PyObject *str; in escape_encode() local
185 &str, &errors)) in escape_encode()
188 consumed = PyString_GET_SIZE(str); in escape_encode()
189 str = PyString_Repr(str, 0); in escape_encode()
190 if (!str) in escape_encode()
194 buf = PyString_AS_STRING (str); in escape_encode()
195 len = PyString_GET_SIZE (str); in escape_encode()
197 if (_PyString_Resize(&str, len-2) < 0) in escape_encode()
200 return codec_tuple(str, consumed); in escape_encode()
664 PyObject *str, *v; in utf_7_encode() local
[all …]
D_json.c889 char *str = PyString_AS_STRING(pystr); in _parse_object_str() local
905 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
908 if (idx <= end_idx && str[idx] != '}') { in _parse_object_str()
911 if (str[idx] != '"') { in _parse_object_str()
921 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
922 if (idx > end_idx || str[idx] != ':') { in _parse_object_str()
927 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
947 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
951 if (str[idx] == '}') { in _parse_object_str()
954 else if (str[idx] != ',') { in _parse_object_str()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_codecsmodule.c179 PyObject *str; in escape_encode() local
185 &str, &errors)) in escape_encode()
188 consumed = PyString_GET_SIZE(str); in escape_encode()
189 str = PyString_Repr(str, 0); in escape_encode()
190 if (!str) in escape_encode()
194 buf = PyString_AS_STRING (str); in escape_encode()
195 len = PyString_GET_SIZE (str); in escape_encode()
197 if (_PyString_Resize(&str, len-2) < 0) in escape_encode()
200 return codec_tuple(str, consumed); in escape_encode()
664 PyObject *str, *v; in utf_7_encode() local
[all …]
D_json.c866 char *str = PyString_AS_STRING(pystr); in _parse_object_str() local
882 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
885 if (idx <= end_idx && str[idx] != '}') { in _parse_object_str()
888 if (str[idx] != '"') { in _parse_object_str()
898 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
899 if (idx > end_idx || str[idx] != ':') { in _parse_object_str()
904 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
924 while (idx <= end_idx && IS_WHITESPACE(str[idx])) idx++; in _parse_object_str()
928 if (str[idx] == '}') { in _parse_object_str()
931 else if (str[idx] != ',') { in _parse_object_str()
[all …]
/device/generic/opengl-transport/host/commands/emugen/
DstrUtils.cpp21 std::string getNextToken(const std::string & str, size_t pos, size_t * last, const std::string & de… in getNextToken() argument
23 if (str.size() == 0 || pos >= str.size()) return ""; in getNextToken()
25 pos = str.find_first_not_of(WHITESPACE, pos); in getNextToken()
28 *last = str.find_first_of(delim, pos); in getNextToken()
29 if (*last == std::string::npos) *last = str.size(); in getNextToken()
30 std::string retval = str.substr(pos, *last - pos); in getNextToken()
36 std::string trim(const string & str) in trim() argument
39 string::size_type start = str.find_first_not_of(WHITESPACE, 0); in trim()
40 string::size_type end = str.find_last_not_of(WHITESPACE); in trim()
44 result = str.substr(start, end - start + 1); in trim()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/
Dsplit.h58 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split_whitespace() argument
70 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace()
74 while (i < str_len && !STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace()
85 SPLIT_ADD(str, j, i); in stringlib_split_whitespace()
91 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace()
94 SPLIT_ADD(str, i, str_len); in stringlib_split_whitespace()
106 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split_char() argument
121 if (str[j] == ch) { in stringlib_split_char()
122 SPLIT_ADD(str, i, j); in stringlib_split_char()
137 SPLIT_ADD(str, i, str_len); in stringlib_split_char()
[all …]
Dstring_format.h67 SubString_init(SubString *str, STRINGLIB_CHAR *p, Py_ssize_t len) in SubString_init() argument
69 str->ptr = p; in SubString_init()
71 str->end = NULL; in SubString_init()
73 str->end = str->ptr + len; in SubString_init()
78 SubString_new_object(SubString *str) in SubString_new_object() argument
80 if (str->ptr == NULL) { in SubString_new_object()
84 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object()
89 SubString_new_object_or_empty(SubString *str) in SubString_new_object_or_empty() argument
91 if (str->ptr == NULL) { in SubString_new_object_or_empty()
94 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object_or_empty()
[all …]
Dpartition.h12 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_partition() argument
28 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_SEARCH); in stringlib_partition()
32 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in stringlib_partition()
46 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in stringlib_partition()
50 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_partition()
62 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rpartition() argument
78 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in stringlib_rpartition()
84 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in stringlib_rpartition()
96 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in stringlib_rpartition()
100 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_rpartition()
Dfind.h11 stringlib_find(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find() argument
22 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_SEARCH); in stringlib_find()
31 stringlib_rfind(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind() argument
42 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_RSEARCH); in stringlib_rfind()
66 stringlib_find_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find_slice() argument
71 return stringlib_find(str + start, end - start, sub, sub_len, start); in stringlib_find_slice()
75 stringlib_rfind_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind_slice() argument
80 return stringlib_rfind(str + start, end - start, sub, sub_len, start); in stringlib_rfind_slice()
86 stringlib_contains_obj(PyObject* str, PyObject* sub) in stringlib_contains_obj() argument
89 STRINGLIB_STR(str), STRINGLIB_LEN(str), in stringlib_contains_obj()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/
Dsplit.h58 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split_whitespace() argument
70 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace()
74 while (i < str_len && !STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace()
85 SPLIT_ADD(str, j, i); in stringlib_split_whitespace()
91 while (i < str_len && STRINGLIB_ISSPACE(str[i])) in stringlib_split_whitespace()
94 SPLIT_ADD(str, i, str_len); in stringlib_split_whitespace()
106 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_split_char() argument
121 if (str[j] == ch) { in stringlib_split_char()
122 SPLIT_ADD(str, i, j); in stringlib_split_char()
137 SPLIT_ADD(str, i, str_len); in stringlib_split_char()
[all …]
Dstring_format.h67 SubString_init(SubString *str, STRINGLIB_CHAR *p, Py_ssize_t len) in SubString_init() argument
69 str->ptr = p; in SubString_init()
71 str->end = NULL; in SubString_init()
73 str->end = str->ptr + len; in SubString_init()
78 SubString_new_object(SubString *str) in SubString_new_object() argument
80 if (str->ptr == NULL) { in SubString_new_object()
84 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object()
89 SubString_new_object_or_empty(SubString *str) in SubString_new_object_or_empty() argument
91 if (str->ptr == NULL) { in SubString_new_object_or_empty()
94 return STRINGLIB_NEW(str->ptr, str->end - str->ptr); in SubString_new_object_or_empty()
[all …]
Dpartition.h12 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_partition() argument
28 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_SEARCH); in stringlib_partition()
32 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in stringlib_partition()
46 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in stringlib_partition()
50 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_partition()
62 const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rpartition() argument
78 pos = fastsearch(str, str_len, sep, sep_len, -1, FAST_RSEARCH); in stringlib_rpartition()
84 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str, str_len)); in stringlib_rpartition()
96 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in stringlib_rpartition()
100 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_rpartition()
Dfind.h11 stringlib_find(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find() argument
22 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_SEARCH); in stringlib_find()
31 stringlib_rfind(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind() argument
42 pos = fastsearch(str, str_len, sub, sub_len, -1, FAST_RSEARCH); in stringlib_rfind()
66 stringlib_find_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find_slice() argument
71 return stringlib_find(str + start, end - start, sub, sub_len, start); in stringlib_find_slice()
75 stringlib_rfind_slice(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind_slice() argument
80 return stringlib_rfind(str + start, end - start, sub, sub_len, start); in stringlib_rfind_slice()
86 stringlib_contains_obj(PyObject* str, PyObject* sub) in stringlib_contains_obj() argument
89 STRINGLIB_STR(str), STRINGLIB_LEN(str), in stringlib_contains_obj()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
DCookie.py315 def _quote(str, LegalChars=_LegalChars, argument
323 if "" == translate(str, idmap, LegalChars):
324 return str
326 return '"' + _nulljoin( map(_Translator.get, str, str) ) + '"'
333 def _unquote(str): argument
336 if len(str) < 2:
337 return str
338 if str[0] != '"' or str[-1] != '"':
339 return str
345 str = str[1:-1]
[all …]
Dmimetools.py34 str = self.typeheader
35 if str is None:
36 str = 'text/plain'
37 if ';' in str:
38 i = str.index(';')
39 self.plisttext = str[i:]
40 str = str[:i]
43 fields = str.split('/')
51 str = self.plisttext
53 while str[:1] == ';':
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/ipc/xt-shmem/hikey/
Ddsp_debug.c232 char* dsp_om_trim_zero(char* str) in dsp_om_trim_zero() argument
237 if (!str) in dsp_om_trim_zero()
240 str_begin = str; in dsp_om_trim_zero()
241 str_end = str + strlen(str); in dsp_om_trim_zero()
263 char * dsp_om_split_str(char* str, char** split_str) in dsp_om_split_str() argument
268 if ((!str) || (!split_str)) { in dsp_om_split_str()
270 return str; in dsp_om_split_str()
273 str_end = str + strlen(str); in dsp_om_split_str()
274 str_begin = dsp_om_trim_zero(str); in dsp_om_split_str()
336 static void dsp_om_read_mem(char *str) in dsp_om_read_mem() argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_undocumented_details.py7 self.assertTrue(str < int or str > int)
8 self.assertTrue(int <= str or int >= str)
9 self.assertTrue(cmp(int, str) != 0)
11 self.assertTrue(str == str)
12 self.assertTrue(int != str)
/device/google/contexthub/firmware/lib/libc/
Dstrlen.c56 strlen (const char* str) in strlen() argument
67 : "=&r" (len), "=&r" (scratch) : "r" (str) : "memory", "cc"); in strlen()
75 : "=&r" (end), "=&r" (scratch) : "0" (str) : "memory", "cc"); in strlen()
76 return end - str - 1; in strlen()
85 strlen (const char* str) in strlen() argument
87 (void)str; /* disable unused argument warning */ in strlen()
/device/linaro/bootloader/arm-trusted-firmware/drivers/ti/uart/aarch64/
D16550_console.S46 str w3, [x0, #UARTLCR] /* enable DLL, DLLM programming */
47 str w1, [x0, #UARTDLL] /* program DLL */
48 str w2, [x0, #UARTDLLM] /* program DLLM */
51 str w3, [x0, #UARTLCR] /* disable DLL, DLLM programming */
55 str w3, [x0, #UARTLCR]
58 str w3, [x0, #UARTIER]
61 str w3, [x0, #UARTFCR]
64 str w3, [x0, #UARTMCR]
93 str w2, [x1, #UARTTX]
100 str w0, [x1, #UARTTX]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/freeze/
Dcheckextensions.py72 def expandvars(str, vars): argument
74 while i < len(str):
75 i = k = str.find('$', i)
79 var = str[i:i+1]
82 j = str.find(')', i)
85 var = str[i:j]
88 str = str[:k] + vars[var] + str[i:]
90 return str
/device/linaro/bootloader/arm-trusted-firmware/plat/mediatek/common/drivers/uart/
D8250_console.S36 str wzr, [x0, #UART_IER]
40 str w3, [x0, #UART_MCR]
58 2: str w3, [x0, #UART_HIGHSPEED]
69 str w1, [x0, #UART_LCR]
73 str w1, [x0, #UART_DLL]
76 str w1, [x0, #UART_DLH]
80 str w1, [x0, #UART_LCR]
85 str w1, [x0, #UART_FCR]
116 str w2, [x1, #UART_THR]
122 str w0, [x1, #UART_THR]

12345678910>>...36