Lines Matching refs:value
172 std::string GetAnonyString(const std::string &value)
176 size_t strLen = value.length();
182 res += value[0];
184 res += value[strLen - 1];
186 res.append(value, 0, INT32_PLAINTEXT_LENGTH);
188 res.append(value, strLen - INT32_PLAINTEXT_LENGTH, INT32_PLAINTEXT_LENGTH);
222 int32_t GetAudioParamStr(const std::string ¶ms, const std::string &key, std::string &value)
234 value = params.substr(pos + step + 1, splitPosEnd - pos - step - 1);
236 value = params.substr(pos + step + 1);
241 int32_t GetAudioParamBool(const std::string ¶ms, const std::string &key, bool &value)
250 value = (val != "0");
254 int32_t GetAudioParamInt(const std::string ¶ms, const std::string &key, int32_t &value)
266 value = std::atoi(val.c_str());
301 int value = paramValue->valueint;
302 if (INT32_MIN <= value && value <= INT32_MAX) {
346 DHLOGE("The key %{public}s value format in JSON is illegal.", (*it).c_str());
447 std::string GetCJsonString(const char *key, const char *value)
454 cJSON_AddStringToObject(jParam, key, value);
483 DHLOGE("Not found the value of the key : %{public}s.", key);
485 return "Not found the value.";
494 bool GetSysPara(const char *key, T &value)
501 DHLOGI("GetSysPara key:%{public}s value:%{public}s", key, paraValue);
504 valueStr >> value;
508 template bool GetSysPara(const char *key, int32_t &value);
509 template bool GetSysPara(const char *key, uint32_t &value);
510 template bool GetSysPara(const char *key, int64_t &value);
511 template bool GetSysPara(const char *key, std::string &value);