Lines Matching defs:key
39 MaybeLocal<String> Get(Isolate* isolate, Local<String> key) const override;
40 Maybe<std::string> Get(const char* key) const override;
41 void Set(Isolate* isolate, Local<String> key, Local<String> value) override;
42 int32_t Query(Isolate* isolate, Local<String> key) const override;
43 int32_t Query(const char* key) const override;
44 void Delete(Isolate* isolate, Local<String> key) override;
50 MaybeLocal<String> Get(Isolate* isolate, Local<String> key) const override;
51 Maybe<std::string> Get(const char* key) const override;
52 void Set(Isolate* isolate, Local<String> key, Local<String> value) override;
53 int32_t Query(Isolate* isolate, Local<String> key) const override;
54 int32_t Query(const char* key) const override;
55 void Delete(Isolate* isolate, Local<String> key) override;
76 const T& key,
78 if (key.length() == 2 && key[0] == 'T' && key[1] == 'Z') {
103 Maybe<std::string> RealEnvStore::Get(const char* key) const {
108 int ret = uv_os_getenv(key, *val, &init_sz);
114 ret = uv_os_getenv(key, *val, &init_sz);
117 if (ret >= 0) { // Env key value fetch success.
126 node::Utf8Value key(isolate, property);
127 Maybe<std::string> value = Get(*key);
143 node::Utf8Value key(isolate, property);
147 if (key.length() > 0 && key[0] == '=') return;
149 uv_os_setenv(*key, *val);
150 DateTimeConfigurationChangeNotification(isolate, key, *val);
153 int32_t RealEnvStore::Query(const char* key) const {
158 int ret = uv_os_getenv(key, val, &init_sz);
165 if (key[0] == '=') {
176 node::Utf8Value key(isolate, property);
177 return Query(*key);
183 node::Utf8Value key(isolate, property);
184 uv_os_unsetenv(*key);
185 DateTimeConfigurationChangeNotification(isolate, key);
200 // If the key starts with '=' it is a hidden environment variable.
222 Local<Value> key = keys->Get(context, i).ToLocalChecked();
223 CHECK(key->IsString());
225 key.As<String>(),
226 Get(isolate, key.As<String>()).ToLocalChecked());
231 Maybe<std::string> MapKVStore::Get(const char* key) const {
233 auto it = map_.find(key);
237 MaybeLocal<String> MapKVStore::Get(Isolate* isolate, Local<String> key) const {
238 Utf8Value str(isolate, key);
246 void MapKVStore::Set(Isolate* isolate, Local<String> key, Local<String> value) {
248 Utf8Value key_str(isolate, key);
256 int32_t MapKVStore::Query(const char* key) const {
258 return map_.find(key) == map_.end() ? -1 : 0;
261 int32_t MapKVStore::Query(Isolate* isolate, Local<String> key) const {
262 Utf8Value str(isolate, key);
266 void MapKVStore::Delete(Isolate* isolate, Local<String> key) {
268 Utf8Value str(isolate, key);
302 Local<Value> key;
303 if (!keys->Get(context, i).ToLocal(&key))
305 if (!key->IsString()) continue;
309 if (!entries->Get(context, key).ToLocal(&value) ||
314 Set(isolate, key.As<String>(), value_string);
328 Local<Value> key;
330 bool ok = keys->Get(context, i).ToLocal(&key);
331 ok = ok && key->IsString();
332 ok = ok && Get(isolate, key.As<String>()).ToLocal(&value);
333 ok = ok && object->Set(context, key, value).To(&ok);
376 Local<String> key;
378 if (!property->ToString(env->context()).ToLocal(&key) ||
383 env->env_vars()->Set(env->isolate(), key, value_string);