Home
last modified time | relevance | path

Searched refs:INT_64_LENGTH (Results 1 - 2 of 2) sorted by relevance

/foundation/ability/form_fwk/services/src/
H A Dform_util.cpp39 constexpr int INT_64_LENGTH = 19; member
269 if (strLength < INT_64_LENGTH) { in ConvertStringToInt64()
274 if (strLength == INT_64_LENGTH && maxSubValue < BASE_NUMBER) { in ConvertStringToInt64()
279 int64_t subValue = std::stoll(strInfo.substr(ZERO_VALUE + 1, INT_64_LENGTH - 1)); in ConvertStringToInt64()
280 if (strLength == INT_64_LENGTH && subValue <= (INT64_MAX - HEAD_BIT_NUM)) { in ConvertStringToInt64()
286 if (strLength < INT_64_LENGTH + 1) { // The minimum value: -9223372036854775808 in ConvertStringToInt64()
290 if (strLength == INT_64_LENGTH + 1) { in ConvertStringToInt64()
298 int64_t subValue = std::stoll(strInfo.substr(ZERO_VALUE + 2, INT_64_LENGTH - 1)); in ConvertStringToInt64()
/foundation/ability/form_fwk/frameworks/js/napi/formUtil/
H A Dnapi_form_util.cpp39 constexpr int INT_64_LENGTH = 19; member
256 if (strLength < INT_64_LENGTH) { in ConvertStringToInt64()
261 if (strLength == INT_64_LENGTH && maxSubValue < BASE_NUMBER) { in ConvertStringToInt64()
266 int64_t subValue = std::stoll(strInfo.substr(ZERO_VALUE + 1, INT_64_LENGTH - 1)); in ConvertStringToInt64()
267 if (strLength == INT_64_LENGTH && subValue <= (INT64_MAX - HEAD_BIT_NUM)) { in ConvertStringToInt64()
273 if (strLength < INT_64_LENGTH + 1) { // The minimum value: -9223372036854775808 in ConvertStringToInt64()
277 if (strLength == INT_64_LENGTH + 1) { in ConvertStringToInt64()
285 int64_t subValue = std::stoll(strInfo.substr(ZERO_VALUE + 2, INT_64_LENGTH - 1)); in ConvertStringToInt64()

Completed in 2 milliseconds