Searched refs:bufTmp (Results 1 – 2 of 2) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.cpp | 784 void NumberHelper::GetBase(double d, int digits, int *decpt, char *buf, char *bufTmp, int size) in GetBase() argument 786 int result = snprintf_s(bufTmp, size, size - 1, "%+.*e", digits - 1, d); in GetBase() 792 buf[0] = bufTmp[1]; in GetBase() 794 … if (memcpy_s(buf + 1, digits, bufTmp + 2, digits) != EOK) { // 2 means add the point char to buf in GetBase() 801 *decpt = atoi(bufTmp + digits + 2 + (digits > 1)) + 1; // 2 means ignore the integer and point in GetBase() 807 char bufTmp[JS_DTOA_BUF_SIZE] = {0}; in GetMinmumDigits() local 814 GetBase(d, digits, decpt, buf, bufTmp, sizeof(bufTmp)); in GetMinmumDigits() 815 if (strtod(bufTmp, NULL) == d) { in GetMinmumDigits() 826 GetBase(d, digits, decpt, buf, bufTmp, sizeof(bufTmp)); in GetMinmumDigits()
|
D | number_helper.h | 120 static void GetBase(double d, int digits, int *decpt, char *buf, char *bufTmp, int size);
|