Lines Matching full:state
74 RegExpState *state = PeekRegExpState(); in MatchFailed() local
75 if (state->type_ == StateType::STATE_SPLIT) { in MatchFailed()
81 isMatched = (state->type_ == StateType::STATE_MATCH_AHEAD && isMatched) || in MatchFailed()
82 (state->type_ == StateType::STATE_NEGATIVE_MATCH_AHEAD && !isMatched); in MatchFailed()
84 if (state->type_ == StateType::STATE_MATCH_AHEAD) { in MatchFailed()
88 if (state->type_ == StateType::STATE_NEGATIVE_MATCH_AHEAD) { in MatchFailed()
306 auto state = reinterpret_cast<RegExpState *>( in PushRegExpState() local
309 state->type_ = type; in PushRegExpState()
310 state->currentPc_ = pc; in PushRegExpState()
311 state->currentStack_ = currentStack_; in PushRegExpState()
312 state->currentPtr_ = GetCurrentPtr(); in PushRegExpState()
314 if (memcpy_s(state->captureResultList_, listSize, GetCaptureResultList(), listSize) != EOK) { in PushRegExpState()
320 reinterpret_cast<uint8_t *>(state->captureResultList_) + sizeof(CaptureState) * nCapture_; in PushRegExpState()
334 auto state = PeekRegExpState(); in PopRegExpState() local
337 … if (memcpy_s(GetCaptureResultList(), listSize, state->captureResultList_, listSize) != EOK) { in PopRegExpState()
342 SetCurrentPtr(state->currentPtr_); in PopRegExpState()
343 SetCurrentPC(state->currentPc_); in PopRegExpState()
344 currentStack_ = state->currentStack_; in PopRegExpState()
346 uint8_t *stackStart = reinterpret_cast<uint8_t *>(state->captureResultList_) + listSize; in PopRegExpState()
355 return state; in PopRegExpState()