Lines Matching defs:string
47 std::pair<int, std::string> GetPreferencesDir(OH_PreferencesOption *options)
57 std::string stagePreferencesDir;
88 std::string filePath = dirRes.second + "/" + option->GetFileName();
142 void OH_PreferencesImpl::SetPreferencesStoreFilePath(const std::string &filePath)
148 std::string OH_PreferencesImpl::GetPreferencesStoreFilePath()
221 LOG_ERROR("Get string failed, %{public}d", res.first);
226 std::string str = (std::string)(res.second);
229 LOG_ERROR(" string length overlimit: %{public}zu", strLen);
234 LOG_ERROR("malloc failed when get string, errno: %{public}d", errno);
240 LOG_ERROR("memset failed when get string, errCode: %{public}d", sysErr);
245 LOG_ERROR("memcpy failed when get string, errCode: %{public}d", sysErr);
252 LOG_ERROR("Get string failed, value's type is not string, err: %{public}d", res.first);
261 void OH_Preferences_FreeString(char *string)
263 if (string == nullptr) {
264 LOG_ERROR("free string failed, string is null");
267 free(string);
342 LOG_ERROR("preference put string failed, err: %{public}d", errCode);
374 std::vector<std::string> keysVec;
392 std::vector<std::string> keysVec;
400 OH_PreferencesDataObserver observer, void *context, const std::vector<std::string> &keys)
424 void NDKPreferencesObserver::OnChange(const std::map<std::string, OHOS::NativePreferences::PreferencesValue> &records)
458 void NDKPreferencesObserver::OnChange(const std::string &key)
463 const std::vector<std::string> &keys)