Home
last modified time | relevance | path

Searched refs:pEnd (Results 1 - 10 of 10) sorted by relevance

/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dstring_utils.h209 char* pEnd = nullptr; in StringToInt() local
210 int64_t result = std::strtol(value.c_str(), &pEnd, 10); in StringToInt()
211 if (pEnd == value.c_str() || (result < INT_MIN || result > INT_MAX) || errno == ERANGE) { in StringToInt()
221 char* pEnd = nullptr; in StringToLongInt() local
222 int64_t result = std::strtoll(value.c_str(), &pEnd, 10); in StringToLongInt()
223 if (pEnd == value.c_str() || errno == ERANGE) { in StringToLongInt()
233 char* pEnd = nullptr; in StringToLongUint() local
234 uint64_t result = std::strtoull(value.c_str(), &pEnd, 10); in StringToLongUint()
235 if (pEnd == value.c_str() || errno == ERANGE) { in StringToLongUint()
245 char* pEnd in StringToUintCheck() local
257 char* pEnd = nullptr; StringToUint() local
269 char* pEnd = nullptr; StringToDouble() local
282 char* pEnd = nullptr; StringToDouble() local
301 char* pEnd = nullptr; StringToFloat() local
317 char* pEnd = nullptr; StringToDimensionWithUnit() local
370 char* pEnd = nullptr; StringToDimensionWithThemeValue() local
387 char* pEnd = nullptr; StringToDimensionWithUnitNG() local
459 char* pEnd = nullptr; StringToDegree() local
481 char* pEnd = nullptr; StringToDegree() local
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/util/
H A Dutil.h41 char* pEnd = nullptr; in StringToInt() local
42 int64_t result = std::strtol(value.c_str(), &pEnd, 10); in StringToInt()
43 if (pEnd == value.c_str() || (result < INT_MIN || result > INT_MAX) || errno == ERANGE) { in StringToInt()
/foundation/resourceschedule/resource_schedule_service/ressched/common/include/
H A Dres_common_util.h65 char* pEnd = nullptr; in StrToFloat() local
67 float res = std::strtof(value.c_str(), &pEnd); in StrToFloat()
68 if (errno == ERANGE || pEnd == value.c_str() || *pEnd != '\0' || in StrToFloat()
/foundation/arkui/ace_engine/interfaces/napi/kits/measure/
H A Djs_measure.cpp40 char* pEnd = nullptr; in MeasureStringToDimensionWithUnit() local
41 double result = std::strtod(value.c_str(), &pEnd); in MeasureStringToDimensionWithUnit()
42 if (pEnd == value.c_str() || errno == ERANGE) { in MeasureStringToDimensionWithUnit()
46 if (pEnd != nullptr) { in MeasureStringToDimensionWithUnit()
47 if (std::strcmp(pEnd, "%") == 0) { in MeasureStringToDimensionWithUnit()
51 if (std::strcmp(pEnd, "px") == 0) { in MeasureStringToDimensionWithUnit()
54 if (std::strcmp(pEnd, "vp") == 0) { in MeasureStringToDimensionWithUnit()
57 if (std::strcmp(pEnd, "fp") == 0) { in MeasureStringToDimensionWithUnit()
60 if (std::strcmp(pEnd, "lpx") == 0) { in MeasureStringToDimensionWithUnit()
63 if ((std::strcmp(pEnd, "\ in MeasureStringToDimensionWithUnit()
[all...]
/foundation/communication/netmanager_base/utils/common_utils/src/
H A Dnetmanager_base_common_utils.cpp407 char *pEnd = nullptr; in StrToInt() local
408 int64_t result = std::strtol(value.c_str(), &pEnd, 0); in StrToInt()
409 if (pEnd == value.c_str() || (result < INT_MIN || result > LONG_MAX) || errno == ERANGE) { in StrToInt()
418 char *pEnd = nullptr; in StrToUint() local
419 uint64_t result = std::strtoul(value.c_str(), &pEnd, 0); in StrToUint()
420 if (pEnd == value.c_str() || result > UINT32_MAX || errno == ERANGE) { in StrToUint()
429 char *pEnd = nullptr; in StrToBool() local
430 uint64_t result = std::strtoul(value.c_str(), &pEnd, 0); in StrToBool()
431 if (pEnd == value.c_str() || result > UINT32_MAX || errno == ERANGE) { in StrToBool()
440 char *pEnd in StrToLong() local
451 char *pEnd = nullptr; StrToUint64() local
[all...]
/foundation/ability/ability_runtime/js_environment/frameworks/js_environment/src/
H A Dsource_map.cpp57 char* pEnd = nullptr; in StringToInt() local
58 int64_t result = std::strtol(value.c_str(), &pEnd, 10); in StringToInt()
59 if (pEnd == value.c_str() || (result < INT_MIN || result > INT_MAX) || errno == ERANGE) { in StringToInt()
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dutils.h666 char* pEnd = nullptr; in ParseResourceInputNumberParam() local
667 int64_t result = std::strtol(param.c_str(), &pEnd, STRTOL_BASE); in ParseResourceInputNumberParam()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_textfield.cpp714 char* pEnd = nullptr; in CheckIsIllegalString() local
715 std::strtod(value.c_str(), &pEnd); in CheckIsIllegalString()
716 return (pEnd == value.c_str() || errno == ERANGE); in CheckIsIllegalString()
H A Djs_view_abstract.cpp851 char* pEnd = nullptr; in ParsePopupCommonParam() local
853 std::strtod(arrowString.c_str(), &pEnd); in ParsePopupCommonParam()
854 if (pEnd != nullptr) { in ParsePopupCommonParam()
855 if (std::strcmp(pEnd, "Start") == 0) { in ParsePopupCommonParam()
858 if (std::strcmp(pEnd, "Center") == 0) { in ParsePopupCommonParam()
861 if (std::strcmp(pEnd, "End") == 0) { in ParsePopupCommonParam()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_utils.cpp855 char* pEnd = nullptr; in ParseJsDimension() local
857 std::strtod(str.c_str(), &pEnd); in ParseJsDimension()
858 if (pEnd == str.c_str() || errno == ERANGE) { in ParseJsDimension()

Completed in 32 milliseconds