Home
last modified time | relevance | path

Searched refs:inputCode (Results 1 - 2 of 2) sorted by relevance

/foundation/multimodalinput/input/tools/event_inject/src/
H A Dinjection_event_dispatch.cpp194 bool InjectionEventDispatch::CheckCode(const std::string &inputCode) in CheckCode() argument
196 if ((inputCode.length()) > INPUT_CODE_LENGTH) { in CheckCode()
197 MMI_HILOGE("The value entered is out of range, code:%{public}s", inputCode.c_str()); in CheckCode()
200 bool isCodeNumber = regex_match(inputCode, std::regex("\\d+")); in CheckCode()
202 int32_t numberCode = stoi(inputCode); in CheckCode()
226 bool InjectionEventDispatch::CheckEventValue(const std::string &inputType, const std::string &inputCode, in CheckEventValue() argument
233 if (!(CheckCode(inputCode))) { in CheckEventValue()
234 MMI_HILOGE("Input error in code, code:%{public}s", inputCode.c_str()); in CheckEventValue()
/foundation/multimodalinput/input/tools/event_inject/include/
H A Dinjection_event_dispatch.h76 bool CheckCode(const std::string &inputCode);
78 bool CheckEventValue(const std::string &inputType, const std::string &inputCode,

Completed in 2 milliseconds