Home
last modified time | relevance | path

Searched refs:numstr (Results 1 – 13 of 13) sorted by relevance

/external/libese/libese-hw/nxp/pn80t/
Dlinux_spidev.c82 char numstr[8]; in gpio_configure() local
97 if (snprintf(numstr, sizeof(numstr), "%d", num) >= (int)sizeof(numstr)) { in gpio_configure()
106 (void)write(fd, numstr, strlen(numstr)); in gpio_configure()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java363 String numstr = new String(); in testJB6648() local
376 numstr = df.format(5); in testJB6648()
378 Number n = df.parse(numstr); in testJB6648()
379 logln("INFO: Parsed " + numstr + " -> " + n); in testJB6648()
386 numstr = "005"; in testJB6648()
388 Number n = df.parse(numstr); in testJB6648()
389 … logln("INFO: Successful parse for " + numstr + " with strict parse enabled. Number is " + n); in testJB6648()
391 errln("ERROR: Parse Exception encountered in strict mode: numstr -> " + numstr); in testJB6648()
DNumberFormatTest.java3067 String numstr = "12345"; in TestJB5358() local
3075 … threads[i] = new ParseThreadJB5358((DecimalFormat)fmt.clone(), numstr, expected, errors); in TestJB5358()
3097 private final String numstr; field in NumberFormatTest.ParseThreadJB5358
3101 … public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
3103 this.numstr = numstr; in ParseThreadJB5358()
3112 Number n = decfmt.parse(numstr); in run()
3994 final String numstr = "* 1^234:56";
3995 expect2(fmt, 1234.56, numstr);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DIntlTestDecimalFormatAPI.java366 String numstr = new String(); in testJB6648() local
379 numstr = df.format(5); in testJB6648()
381 Number n = df.parse(numstr); in testJB6648()
382 logln("INFO: Parsed " + numstr + " -> " + n); in testJB6648()
389 numstr = "005"; in testJB6648()
391 Number n = df.parse(numstr); in testJB6648()
392 … logln("INFO: Successful parse for " + numstr + " with strict parse enabled. Number is " + n); in testJB6648()
394 errln("ERROR: Parse Exception encountered in strict mode: numstr -> " + numstr); in testJB6648()
DNumberFormatTest.java3070 String numstr = "12345"; in TestJB5358() local
3078 … threads[i] = new ParseThreadJB5358((DecimalFormat)fmt.clone(), numstr, expected, errors); in TestJB5358()
3100 private final String numstr; field in NumberFormatTest.ParseThreadJB5358
3104 … public ParseThreadJB5358(DecimalFormat decfmt, String numstr, double expect, ArrayList errors) { in ParseThreadJB5358() argument
3106 this.numstr = numstr; in ParseThreadJB5358()
3115 Number n = decfmt.parse(numstr); in run()
3997 final String numstr = "* 1^234:56";
3998 expect2(fmt, 1234.56, numstr);
/external/python/cpython2/Lib/plat-mac/
Dic.py55 numstr = ord(data[0]) << 8 | ord(data[1])
58 for i in range(numstr):
88 numstr = len(data)
89 rv = chr((numstr>>8) & 0xff) + chr(numstr & 0xff)
/external/python/cpython2/Modules/
D_json.c1314 PyObject *numstr; in _match_number_str() local
1370 numstr = PyString_FromStringAndSize(&str[start], idx - start); in _match_number_str()
1371 if (numstr == NULL) in _match_number_str()
1376 rval = PyObject_CallFunctionObjArgs(s->parse_float, numstr, NULL); in _match_number_str()
1379 double d = PyOS_string_to_double(PyString_AS_STRING(numstr), in _match_number_str()
1389 rval = PyObject_CallFunctionObjArgs(s->parse_int, numstr, NULL); in _match_number_str()
1392 rval = PyInt_FromString(PyString_AS_STRING(numstr), NULL, 10); in _match_number_str()
1395 Py_DECREF(numstr); in _match_number_str()
1416 PyObject *numstr; in _match_number_unicode() local
1470 numstr = PyUnicode_FromUnicode(&str[start], idx - start); in _match_number_unicode()
[all …]
/external/toybox/lib/
Dlib.c296 long long atolx(char *numstr) in atolx() argument
298 char *c = numstr, *suffixes="cwbkmgtpe", *end; in atolx()
301 val = xstrtol(numstr, &c, 0); in atolx()
302 if (c != numstr && *c && (end = strchr(suffixes, tolower(*c)))) { in atolx()
313 if (c==numstr || *c) error_exit("not integer: %s", numstr); in atolx()
318 long long atolx_range(char *numstr, long long low, long long high) in atolx_range() argument
320 long long val = atolx(numstr); in atolx_range()
Dlib.h206 long long atolx_range(char *numstr, long long low, long long high);
/external/python/cpython3/Modules/
D_json.c953 PyObject *numstr = NULL; in _match_number_unicode() local
1023 numstr = PyUnicode_FromKindAndData(kind, in _match_number_unicode()
1026 if (numstr == NULL) in _match_number_unicode()
1028 rval = PyObject_CallFunctionObjArgs(custom_func, numstr, NULL); in _match_number_unicode()
1036 numstr = PyBytes_FromStringAndSize(NULL, n); in _match_number_unicode()
1037 if (numstr == NULL) in _match_number_unicode()
1039 buf = PyBytes_AS_STRING(numstr); in _match_number_unicode()
1044 rval = PyFloat_FromString(numstr); in _match_number_unicode()
1048 Py_DECREF(numstr); in _match_number_unicode()
/external/tcpdump/
Dprint-telnet.c377 (((x) < sizeof(tab)/sizeof(tab[0]) && tab[(x)]) ? tab[(x)] : numstr(x))
380 numstr(int x) in numstr() function
Dprint-isakmp.c640 static char *numstr(int);
737 (((x) < sizeof(tab)/sizeof(tab[0]) && tab[(x)]) ? tab[(x)] : numstr(x))
1719 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type)))); in ikev1_n_print()
1723 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type)))); in ikev1_n_print()
1743 ND_PRINT((ndo," type=%s", numstr(ntohs(n.type)))); in ikev1_n_print()
2804 numstr(int x) in numstr() function
/external/icu/icu4c/source/test/intltest/
Dnumfmtst.cpp7741 UnicodeString numstr("* 1^234:56"); in TestCustomCurrencySignAndSeparator() local
7742 expect2(fmt, (Formattable)((double)1234.56), numstr); in TestCustomCurrencySignAndSeparator()