Searched refs:watcherName (Results 1 – 3 of 3) sorted by relevance
26 bool IsValidWatcherName(const std::string& watcherName);
194 bool IsValidWatcherName(const std::string& watcherName) in IsValidWatcherName() argument196 if (watcherName.empty() || watcherName.length() > MAX_LEN_OF_WATCHER) { in IsValidWatcherName()199 return std::regex_match(watcherName, std::regex("^[a-z][a-z0-9_]*[a-z0-9]$")); in IsValidWatcherName()
233 napi_value CreateHolder(const napi_env env, const napi_value watcherName) in CreateHolder() argument241 … if (napi_new_instance(env, constructor, 1, &watcherName, &holder) != napi_ok) { // param num is 1 in CreateHolder()