Home
last modified time | relevance | path

Searched refs:captureState (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_executor.cpp240 CaptureState *captureState = &captureResultList_[i]; in DumpResult() local
241 int32_t len = captureState->captureEnd - captureState->captureStart; in DumpResult()
242 …if ((captureState->captureStart != nullptr && captureState->captureEnd != nullptr) && (len >= 0)) { in DumpResult()
243 …out << i << ":\t" << CString(reinterpret_cast<const char *>(captureState->captureStart), len) << s… in DumpResult()
260 CaptureState *captureState = &captureResultList_[i]; in GetResult() local
262 result.index_ = captureState->captureStart - input_; in GetResult()
267 int32_t len = captureState->captureEnd - captureState->captureStart; in GetResult()
269 …if ((captureState->captureStart != nullptr && captureState->captureEnd != nullptr) && (len >= 0)) { in GetResult()
274 reinterpret_cast<const uint16_t *>(captureState->captureStart), len / 2); in GetResult()
279 … if (memcpy_s(dest, len + 1, reinterpret_cast<const uint8_t *>(captureState->captureStart), len) != in GetResult()
Dregexp_executor.h173 CaptureState *captureState = &captureResultList_[captureIndex]; in HandleOpSaveStart() local
174 captureState->captureStart = GetCurrentPtr(); in HandleOpSaveStart()
183 CaptureState *captureState = &captureResultList_[captureIndex]; in HandleOpSaveEnd() local
184 captureState->captureEnd = GetCurrentPtr(); in HandleOpSaveEnd()
193 CaptureState *captureState = in HandleOpSaveReset() local
195 captureState->captureStart = nullptr; in HandleOpSaveReset()
196 captureState->captureEnd = nullptr; in HandleOpSaveReset()