Home
last modified time | relevance | path

Searched refs:watcherName (Results 1 – 3 of 3) sorted by relevance

/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/
Dhiappevent_verify.h26 bool IsValidWatcherName(const std::string& watcherName);
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_verify.cpp194 bool IsValidWatcherName(const std::string& watcherName) in IsValidWatcherName() argument
196 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()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_watch.cpp233 napi_value CreateHolder(const napi_env env, const napi_value watcherName) in CreateHolder() argument
241 … if (napi_new_instance(env, constructor, 1, &watcherName, &holder) != napi_ok) { // param num is 1 in CreateHolder()