Home
last modified time | relevance | path

Searched refs:inputValue (Results 1 – 4 of 4) sorted by relevance

/base/telephony/core_service/utils/common/src/
Dtelephony_common_utils.cpp42 bool IsValidDecValue(const std::string &inputValue) in IsValidDecValue() argument
44 if (inputValue.length() > INPUT_VALUE_LENGTH) { in IsValidDecValue()
45 TELEPHONY_LOGE("The value entered is out of range, value:%{public}s", inputValue.c_str()); in IsValidDecValue()
48 bool isValueNumber = regex_match(inputValue, std::regex("(-[\\d+]+)|(\\d+)")); in IsValidDecValue()
50 int64_t numberValue = std::stoll(inputValue); in IsValidDecValue()
59 bool IsValidHexValue(const std::string &inputValue) in IsValidHexValue() argument
61 if (inputValue.length() > INPUT_VALUE_LENGTH) { in IsValidHexValue()
62 TELEPHONY_LOGE("The value entered is out of range, value:%{public}s", inputValue.c_str()); in IsValidHexValue()
65 bool isValueNumber = regex_match(inputValue, std::regex("0[xX][0-9a-fA-F]+")); in IsValidHexValue()
67 int64_t numberValue = std::stoll(inputValue, nullptr, HEX_TYPE); in IsValidHexValue()
/base/telephony/core_service/utils/common/include/
Dtelephony_common_utils.h36 bool IsValidDecValue(const std::string &inputValue);
44 bool IsValidHexValue(const std::string &inputValue);
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_base_check.h90 int32_t HksCheckValue(uint32_t inputValue, const uint32_t *expectValues, uint32_t valuesCount);
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_base_check.c1483 int32_t HksCheckValue(uint32_t inputValue, const uint32_t *expectValues, uint32_t valuesCount) in HksCheckValue() argument
1486 if (inputValue == expectValues[i]) { in HksCheckValue()
1580 static int32_t CheckOptionalParams(bool needCheck, bool isAbsent, uint32_t inputValue, const uint32… in CheckOptionalParams() argument
1585 if (HksCheckValue(inputValue, expectValue, expectCnt) != HKS_SUCCESS) { in CheckOptionalParams()
1586 HKS_LOG_E("CheckOptionalParams invalid argument, %d", inputValue); in CheckOptionalParams()