Lines Matching +full:input +full:-
7 * http://www.apache.org/licenses/LICENSE-2.0
16 #include "ecmascript/ecma_string-inl.h"
42 chunk_ = thread->GetEcmaVM()->GetChunk(); in SetUp()
105 uint32_t startIndex = regExpGlobalResult->GetStartOfCaptureIndex(index).GetInt(); in GetSubString()
106 uint32_t len = regExpGlobalResult->GetEndOfCaptureIndex(index).GetInt() - startIndex; in GetSubString()
108 thread->GetEcmaVM(), inputStr, startIndex, len)); in GetSubString()
132 CString source("^[z-a]$"); in HWTEST_F_L0()
322 CString source("[b-ac-e]"); in HWTEST_F_L0()
332 CString source("[\\10b-G]"); in HWTEST_F_L0()
342 CString source("[\\0b-G]"); in HWTEST_F_L0()
452 CString source("[\\d-a]"); in HWTEST_F_L0()
462 CString source("[\\s-a]"); in HWTEST_F_L0()
472 CString source("[\\s-\\w]"); in HWTEST_F_L0()
482 CString source("[a-\\w]"); in HWTEST_F_L0()
691 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
700 CString input("abc"); in HWTEST_F_L0() local
702 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
706 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
707 JSHandle<EcmaString> inputStr = factory->NewFromASCII("abc"); in HWTEST_F_L0()
709 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
710 JSHandle<EcmaString> str = factory->NewFromASCII("ab"); in HWTEST_F_L0()
716 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
725 CString input("cabd"); in HWTEST_F_L0() local
727 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
731 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
732 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 10U); in HWTEST_F_L0()
733 JSHandle<EcmaString> inputStr = factory->NewFromASCII("cabd"); in HWTEST_F_L0()
738 JSHandle<EcmaString> str = factory->NewFromASCII("ab"); in HWTEST_F_L0()
743 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(4).GetInt(), -1); in HWTEST_F_L0()
744 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(5).GetInt(), -1); in HWTEST_F_L0()
745 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(6).GetInt(), -1); in HWTEST_F_L0()
746 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(7).GetInt(), -1); in HWTEST_F_L0()
747 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(8).GetInt(), -1); in HWTEST_F_L0()
748 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(9).GetInt(), -1); in HWTEST_F_L0()
753 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
762 CString input("aabaac"); in HWTEST_F_L0() local
764 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
768 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
769 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
770 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aabaac"); in HWTEST_F_L0()
773 JSHandle<EcmaString> str1 = factory->NewFromASCII("aaba"); in HWTEST_F_L0()
774 JSHandle<EcmaString> str2 = factory->NewFromASCII("ba"); in HWTEST_F_L0()
781 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
790 CString input("aabaac"); in HWTEST_F_L0() local
792 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
796 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
797 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
798 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aabaac"); in HWTEST_F_L0()
800 JSHandle<EcmaString> str = factory->NewFromASCII("aa"); in HWTEST_F_L0()
806 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
815 CString input("b"); in HWTEST_F_L0() local
817 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
821 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
822 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
823 JSHandle<EcmaString> inputStr = factory->NewFromASCII("b"); in HWTEST_F_L0()
825 JSHandle<EcmaString> str = factory->NewFromASCII(""); in HWTEST_F_L0()
831 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
840 CString input("zaacbbbcac"); in HWTEST_F_L0() local
842 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
846 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
847 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 6U); in HWTEST_F_L0()
848 JSHandle<EcmaString> inputStr = factory->NewFromASCII("zaacbbbcac"); in HWTEST_F_L0()
854 JSHandle<EcmaString> str0 = factory->NewFromASCII("zaacbbbcac"); in HWTEST_F_L0()
855 JSHandle<EcmaString> str1 = factory->NewFromASCII("z"); in HWTEST_F_L0()
856 JSHandle<EcmaString> str2 = factory->NewFromASCII("ac"); in HWTEST_F_L0()
857 JSHandle<EcmaString> str3 = factory->NewFromASCII("a"); in HWTEST_F_L0()
858 JSHandle<EcmaString> str5 = factory->NewFromASCII("c"); in HWTEST_F_L0()
863 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(4).GetInt(), -1); in HWTEST_F_L0()
869 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
878 CString input("ab\nabc"); in HWTEST_F_L0() local
880 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
884 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
885 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
886 JSHandle<EcmaString> inputStr = factory->NewFromASCII("ab\nabc"); in HWTEST_F_L0()
888 JSHandle<EcmaString> str = factory->NewFromASCII("abc"); in HWTEST_F_L0()
894 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
903 CString input("ab\nabc"); in HWTEST_F_L0() local
905 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
909 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
910 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
911 JSHandle<EcmaString> inputStr = factory->NewFromASCII("ab\nabc"); in HWTEST_F_L0()
913 JSHandle<EcmaString> str = factory->NewFromASCII("abc"); in HWTEST_F_L0()
919 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
928 CString input("erv"); in HWTEST_F_L0() local
930 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
934 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
935 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
936 JSHandle<EcmaString> inputStr = factory->NewFromASCII("erv"); in HWTEST_F_L0()
938 JSHandle<EcmaString> str = factory->NewFromASCII("er"); in HWTEST_F_L0()
944 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
953 CString input("bad good"); in HWTEST_F_L0() local
955 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
959 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
960 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
961 JSHandle<EcmaString> inputStr = factory->NewFromASCII("bad good"); in HWTEST_F_L0()
963 JSHandle<EcmaString> str = factory->NewFromASCII("d"); in HWTEST_F_L0()
969 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
978 CString input("\na"); in HWTEST_F_L0() local
980 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
984 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
985 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
986 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\na"); in HWTEST_F_L0()
988 JSHandle<EcmaString> str = factory->NewFromASCII("a"); in HWTEST_F_L0()
994 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1003 CString input("\n"); in HWTEST_F_L0() local
1005 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1009 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1010 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1011 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\n"); in HWTEST_F_L0()
1013 JSHandle<EcmaString> str = factory->NewFromASCII("\n"); in HWTEST_F_L0()
1019 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1028 CString input("\naabc"); in HWTEST_F_L0() local
1030 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1034 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1035 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1036 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\naabc"); in HWTEST_F_L0()
1038 JSHandle<EcmaString> str = factory->NewFromASCII("abc"); in HWTEST_F_L0()
1044 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1053 CString input("\nbbabc"); in HWTEST_F_L0() local
1055 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1059 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1060 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1061 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\nbbabc"); in HWTEST_F_L0()
1063 JSHandle<EcmaString> str = factory->NewFromASCII("abc"); in HWTEST_F_L0()
1069 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1078 CString input("aabc"); in HWTEST_F_L0() local
1080 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1084 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1085 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1086 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aabc"); in HWTEST_F_L0()
1088 JSHandle<EcmaString> str = factory->NewFromASCII("a"); in HWTEST_F_L0()
1094 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1103 CString input("ABC"); in HWTEST_F_L0() local
1105 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1109 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1110 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1111 JSHandle<EcmaString> inputStr = factory->NewFromASCII("ABC"); in HWTEST_F_L0()
1113 JSHandle<EcmaString> str = factory->NewFromASCII("ABC"); in HWTEST_F_L0()
1119 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1128 CString input("a\n"); in HWTEST_F_L0() local
1130 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1134 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1135 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1136 JSHandle<EcmaString> inputStr = factory->NewFromASCII("a\n"); in HWTEST_F_L0()
1138 JSHandle<EcmaString> str = factory->NewFromASCII("a\n"); in HWTEST_F_L0()
1152 CString input("ababc"); in HWTEST_F_L0() local
1154 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1160 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1169 CString input("ababc"); in HWTEST_F_L0() local
1171 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1175 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1176 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1177 JSHandle<EcmaString> inputStr = factory->NewFromASCII("ababc"); in HWTEST_F_L0()
1179 JSHandle<EcmaString> str = factory->NewFromASCII("a"); in HWTEST_F_L0()
1185 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1194 CString input("baaabac"); in HWTEST_F_L0() local
1196 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1200 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1201 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1202 JSHandle<EcmaString> inputStr = factory->NewFromASCII("baaabac"); in HWTEST_F_L0()
1205 JSHandle<EcmaString> str0 = factory->NewFromASCII(""); in HWTEST_F_L0()
1206 JSHandle<EcmaString> str1 = factory->NewFromASCII("aaa"); in HWTEST_F_L0()
1213 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1222 CString input("caab"); in HWTEST_F_L0() local
1224 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1228 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1229 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1230 JSHandle<EcmaString> inputStr = factory->NewFromASCII("caab"); in HWTEST_F_L0()
1232 JSHandle<EcmaString> str = factory->NewFromASCII("a"); in HWTEST_F_L0()
1238 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1247 CString input("aaaa:aa"); in HWTEST_F_L0() local
1249 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1253 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1254 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1255 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aaaa:aa"); in HWTEST_F_L0()
1257 JSHandle<EcmaString> str = factory->NewFromASCII("aaaa:"); in HWTEST_F_L0()
1263 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1272 CString input("caab"); in HWTEST_F_L0() local
1274 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1278 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1279 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1280 JSHandle<EcmaString> inputStr = factory->NewFromASCII("caab"); in HWTEST_F_L0()
1282 JSHandle<EcmaString> str = factory->NewFromASCII("a"); in HWTEST_F_L0()
1296 CString input("caab"); in HWTEST_F_L0() local
1298 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1304 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1313 CString input("cabab"); in HWTEST_F_L0() local
1315 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1319 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1320 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1321 JSHandle<EcmaString> inputStr = factory->NewFromASCII("cabab"); in HWTEST_F_L0()
1324 JSHandle<EcmaString> str0 = factory->NewFromASCII(""); in HWTEST_F_L0()
1325 JSHandle<EcmaString> str1 = factory->NewFromASCII("ab"); in HWTEST_F_L0()
1332 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1334 CString source("[a-z]"); in HWTEST_F_L0()
1341 CString input("A"); in HWTEST_F_L0() local
1343 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1347 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1348 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1349 JSHandle<EcmaString> inputStr = factory->NewFromASCII("A"); in HWTEST_F_L0()
1351 JSHandle<EcmaString> str = factory->NewFromASCII("A"); in HWTEST_F_L0()
1357 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1359 CString source("[^a-b]"); in HWTEST_F_L0()
1366 CString input("Z"); in HWTEST_F_L0() local
1368 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1372 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1373 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1374 JSHandle<EcmaString> inputStr = factory->NewFromASCII("Z"); in HWTEST_F_L0()
1376 JSHandle<EcmaString> str = factory->NewFromASCII("Z"); in HWTEST_F_L0()
1382 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1391 CString input("\n"); in HWTEST_F_L0() local
1393 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1397 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1398 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1399 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\n"); in HWTEST_F_L0()
1401 JSHandle<EcmaString> str = factory->NewFromASCII("\n"); in HWTEST_F_L0()
1407 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1416 CString input(""); in HWTEST_F_L0() local
1418 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1422 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1423 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1424 JSHandle<EcmaString> inputStr = factory->NewFromASCII(""); in HWTEST_F_L0()
1427 JSHandle<EcmaString> str0 = factory->NewFromASCII(""); in HWTEST_F_L0()
1434 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1443 CString input(""); in HWTEST_F_L0() local
1445 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
1449 …JSHandle<builtins::RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegE… in HWTEST_F_L0()
1450 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1451 JSHandle<EcmaString> inputStr = factory->NewFromASCII(""); in HWTEST_F_L0()
1453 JSHandle<EcmaString> str0 = factory->NewFromASCII(""); in HWTEST_F_L0()
1455 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(1).GetInt(), -1); in HWTEST_F_L0()
1460 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1468 CString input("aabb"); in HWTEST_F_L0() local
1470 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1473 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1474 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1475 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aabb"); in HWTEST_F_L0()
1478 JSHandle<EcmaString> str0 = factory->NewFromASCII("abb"); in HWTEST_F_L0()
1479 JSHandle<EcmaString> str1 = factory->NewFromASCII("b"); in HWTEST_F_L0()
1486 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1494 CString input("aabb"); in HWTEST_F_L0() local
1496 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1499 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1500 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 3U); in HWTEST_F_L0()
1501 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aabb"); in HWTEST_F_L0()
1505 JSHandle<EcmaString> str0 = factory->NewFromASCII("abb"); in HWTEST_F_L0()
1506 JSHandle<EcmaString> str1 = factory->NewFromASCII("ab"); in HWTEST_F_L0()
1507 JSHandle<EcmaString> str2 = factory->NewFromASCII("b"); in HWTEST_F_L0()
1515 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1523 CString input("qyqya"); in HWTEST_F_L0() local
1525 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1529 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1530 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1531 JSHandle<EcmaString> inputStr = factory->NewFromASCII("qyqya"); in HWTEST_F_L0()
1533 JSHandle<EcmaString> str = factory->NewFromASCII("qya"); in HWTEST_F_L0()
1539 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1547 CString input("qyqy "); in HWTEST_F_L0() local
1549 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1552 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1553 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1554 JSHandle<EcmaString> inputStr = factory->NewFromASCII("qyqy "); in HWTEST_F_L0()
1556 JSHandle<EcmaString> str = factory->NewFromASCII("qy"); in HWTEST_F_L0()
1562 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1564 CString source("(\\d{4})-(\\d{2})-(\\d{2})"); in HWTEST_F_L0()
1570 CString input("xx2021-01-09"); in HWTEST_F_L0() local
1572 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1575 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1576 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 4U); in HWTEST_F_L0()
1577 JSHandle<EcmaString> inputStr = factory->NewFromASCII("xx2021-01-09"); in HWTEST_F_L0()
1582 JSHandle<EcmaString> str0 = factory->NewFromASCII("2021-01-09"); in HWTEST_F_L0()
1583 JSHandle<EcmaString> str1 = factory->NewFromASCII("2021"); in HWTEST_F_L0()
1584 JSHandle<EcmaString> str2 = factory->NewFromASCII("01"); in HWTEST_F_L0()
1585 JSHandle<EcmaString> str3 = factory->NewFromASCII("09"); in HWTEST_F_L0()
1594 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1602 CString input("The Quick Brown Fox Jumps Over The Lazy Dog"); in HWTEST_F_L0() local
1604 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1607 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1608 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 3U); in HWTEST_F_L0()
1609 …JSHandle<EcmaString> inputStr = factory->NewFromASCII("The Quick Brown Fox Jumps Over The Lazy Dog… in HWTEST_F_L0()
1613 JSHandle<EcmaString> str0 = factory->NewFromASCII("Quick Brown Fox Jumps"); in HWTEST_F_L0()
1614 JSHandle<EcmaString> str1 = factory->NewFromASCII("Brown"); in HWTEST_F_L0()
1615 JSHandle<EcmaString> str2 = factory->NewFromASCII("Jumps"); in HWTEST_F_L0()
1623 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1631 CString input("abABc"); in HWTEST_F_L0() local
1633 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1636 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1637 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1638 JSHandle<EcmaString> inputStr = factory->NewFromASCII("abABc"); in HWTEST_F_L0()
1641 JSHandle<EcmaString> str0 = factory->NewFromASCII("abABc"); in HWTEST_F_L0()
1642 JSHandle<EcmaString> str1 = factory->NewFromASCII("AB"); in HWTEST_F_L0()
1649 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1651 CString source("^(([a-z]+)*[a-z]\\.)+[a-z]{2,}$"); in HWTEST_F_L0()
1657 CString input("www.netscape.com"); in HWTEST_F_L0() local
1659 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1662 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1663 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 3U); in HWTEST_F_L0()
1664 JSHandle<EcmaString> inputStr = factory->NewFromASCII("www.netscape.com"); in HWTEST_F_L0()
1668 JSHandle<EcmaString> str0 = factory->NewFromASCII("www.netscape.com"); in HWTEST_F_L0()
1669 JSHandle<EcmaString> str1 = factory->NewFromASCII("netscape."); in HWTEST_F_L0()
1670 JSHandle<EcmaString> str2 = factory->NewFromASCII("netscap"); in HWTEST_F_L0()
1678 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1686 CString input("baaaac"); in HWTEST_F_L0() local
1688 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1691 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1692 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1693 JSHandle<EcmaString> inputStr = factory->NewFromASCII("baaaac"); in HWTEST_F_L0()
1696 JSHandle<EcmaString> str0 = factory->NewFromASCII("b"); in HWTEST_F_L0()
1697 JSHandle<EcmaString> str1 = factory->NewFromASCII(""); in HWTEST_F_L0()
1704 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1712 CString input("ab"); in HWTEST_F_L0() local
1714 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1717 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1718 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1719 JSHandle<EcmaString> inputStr = factory->NewFromASCII("ab"); in HWTEST_F_L0()
1721 JSHandle<EcmaString> str = factory->NewFromASCII(""); in HWTEST_F_L0()
1727 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1735 CString input("baaabaac"); in HWTEST_F_L0() local
1737 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1740 …JSHandle<builtins::RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegE… in HWTEST_F_L0()
1741 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 4U); in HWTEST_F_L0()
1742 JSHandle<EcmaString> inputStr = factory->NewFromASCII("baaabaac"); in HWTEST_F_L0()
1746 JSHandle<EcmaString> str0 = factory->NewFromASCII("baaabaac"); in HWTEST_F_L0()
1747 JSHandle<EcmaString> str1 = factory->NewFromASCII("ba"); in HWTEST_F_L0()
1748 JSHandle<EcmaString> str3 = factory->NewFromASCII("abaac"); in HWTEST_F_L0()
1751 ASSERT_EQ(regExpGlobalResult->GetEndOfCaptureIndex(2).GetInt(), -1); in HWTEST_F_L0()
1757 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1759 CString source("[a-c\\d]+"); in HWTEST_F_L0()
1765 CString input("\n\n\\abc324234"); in HWTEST_F_L0() local
1767 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1770 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1771 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1772 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\n\n\\abc324234"); in HWTEST_F_L0()
1774 JSHandle<EcmaString> str = factory->NewFromASCII("abc324234"); in HWTEST_F_L0()
1780 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1788 CString input("line1\nline2"); in HWTEST_F_L0() local
1790 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1793 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1794 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1795 JSHandle<EcmaString> inputStr = factory->NewFromASCII("line1\nline2"); in HWTEST_F_L0()
1797 JSHandle<EcmaString> str = factory->NewFromASCII("1\nl"); in HWTEST_F_L0()
1803 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1811 CString input("abc\bdef"); in HWTEST_F_L0() local
1813 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1816 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1817 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1818 JSHandle<EcmaString> inputStr = factory->NewFromASCII("abc\bdef"); in HWTEST_F_L0()
1820 JSHandle<EcmaString> str = factory->NewFromASCII("c\bd"); in HWTEST_F_L0()
1826 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1834 CString input("easy\bto\u0008ride"); in HWTEST_F_L0() local
1836 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1839 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1840 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1841 JSHandle<EcmaString> inputStr = factory->NewFromASCII("easy\bto\u0008ride"); in HWTEST_F_L0()
1843 JSHandle<EcmaString> str = factory->NewFromASCII("easy"); in HWTEST_F_L0()
1849 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1857 CString input("Course_Creator = Test"); in HWTEST_F_L0() local
1859 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1862 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1863 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 3U); in HWTEST_F_L0()
1864 JSHandle<EcmaString> inputStr = factory->NewFromASCII("Course_Creator = Test"); in HWTEST_F_L0()
1867 JSHandle<EcmaString> str0 = factory->NewFromASCII("Course_Creator = Test"); in HWTEST_F_L0()
1868 JSHandle<EcmaString> str1 = factory->NewFromASCII("Course_Creator"); in HWTEST_F_L0()
1875 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1883 CString input("pilOt\nsoviet robot\topenoffice"); in HWTEST_F_L0() local
1885 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1888 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1889 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1890 JSHandle<EcmaString> inputStr = factory->NewFromASCII("pilOt\nsoviet robot\topenoffice"); in HWTEST_F_L0()
1892 JSHandle<EcmaString> str = factory->NewFromASCII("et"); in HWTEST_F_L0()
1898 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1906 CString input("ab55"); in HWTEST_F_L0() local
1908 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1911 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1912 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 5U); in HWTEST_F_L0()
1913 JSHandle<EcmaString> inputStr = factory->NewFromASCII("ab55"); in HWTEST_F_L0()
1919 JSHandle<EcmaString> str0 = factory->NewFromASCII("ab55"); in HWTEST_F_L0()
1920 JSHandle<EcmaString> str1 = factory->NewFromASCII("ab55"); in HWTEST_F_L0()
1921 JSHandle<EcmaString> str2 = factory->NewFromASCII("b"); in HWTEST_F_L0()
1922 JSHandle<EcmaString> str3 = factory->NewFromASCII("5"); in HWTEST_F_L0()
1923 JSHandle<EcmaString> str4 = factory->NewFromASCII("5"); in HWTEST_F_L0()
1933 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1935 CString source("(?<year>\\d{4})-(?<date>\\d{2}-(?<day>\\d\\d))"); in HWTEST_F_L0()
1941 CString input("2020-12-31"); in HWTEST_F_L0() local
1943 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1946 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1947 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 4U); in HWTEST_F_L0()
1948 JSHandle<EcmaString> inputStr = factory->NewFromASCII("2020-12-31"); in HWTEST_F_L0()
1953 JSHandle<EcmaString> str0 = factory->NewFromASCII("2020-12-31"); in HWTEST_F_L0()
1954 JSHandle<EcmaString> str1 = factory->NewFromASCII("2020"); in HWTEST_F_L0()
1955 JSHandle<EcmaString> str2 = factory->NewFromASCII("12-31"); in HWTEST_F_L0()
1956 JSHandle<EcmaString> str3 = factory->NewFromASCII("31"); in HWTEST_F_L0()
1972 std::u16string input(u"\u0000"); in HWTEST_F_L0() local
1973 …bool ret = executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length() + … in HWTEST_F_L0()
1977 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1978 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
1983 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
1991 CString input("aabcdaabcd"); in HWTEST_F_L0() local
1993 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), parser.GetOr… in HWTEST_F_L0()
1996 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
1997 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 2U); in HWTEST_F_L0()
1998 JSHandle<EcmaString> inputStr = factory->NewFromASCII("aabcdaabcd"); in HWTEST_F_L0()
2001 JSHandle<EcmaString> str0 = factory->NewFromASCII("aabcdaa"); in HWTEST_F_L0()
2002 JSHandle<EcmaString> str1 = factory->NewFromASCII("aa"); in HWTEST_F_L0()
2009 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
2017 std::u16string input(u"\u0001"); in HWTEST_F_L0() local
2018 bool ret = executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), in HWTEST_F_L0()
2022 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
2023 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
2024 JSHandle<EcmaString> inputStr = factory->NewFromUtf16(u"\u0001"); in HWTEST_F_L0()
2026 JSHandle<EcmaString> str = factory->NewFromASCII("\u0001"); in HWTEST_F_L0()
2039 CString input("pilot\nsoviet robot\topenoffice"); in HWTEST_F_L0() local
2040 bool ret = executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), in HWTEST_F_L0()
2047 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
2055 CString input("c\u0065"); in HWTEST_F_L0() local
2056 bool ret = executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), in HWTEST_F_L0()
2060 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
2061 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
2062 JSHandle<EcmaString> inputStr = factory->NewFromASCII("c\u0065"); in HWTEST_F_L0()
2064 JSHandle<EcmaString> str = factory->NewFromASCII("e"); in HWTEST_F_L0()
2070 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
2078 std::u16string input(u"a啊"); in HWTEST_F_L0() local
2079 bool ret = executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.length(), in HWTEST_F_L0()
2083 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
2084 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
2085 JSHandle<EcmaString> inputStr = factory->NewFromUtf16(u"a啊"); in HWTEST_F_L0()
2087 JSHandle<EcmaString> str = factory->NewFromUtf8("a啊"); in HWTEST_F_L0()
2107 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
2119 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
2120 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
2121 …JSHandle<EcmaString> inputStr = factory->NewFromUtf16(reinterpret_cast<const uint16_t *>(data), 2); in HWTEST_F_L0()
2124 JSHandle<EcmaString> str = factory->NewFromUtf16(reinterpret_cast<const uint16_t *>(data1), 1); in HWTEST_F_L0()
2130 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0()
2139 CString input("\u000B"); in HWTEST_F_L0() local
2141 …executor.Execute(reinterpret_cast<const uint8_t *>(input.c_str()), 0, input.size(), parser.GetOrig… in HWTEST_F_L0()
2145 …JSHandle<RegExpGlobalResult> regExpGlobalResult(thread->GetCurrentEcmaContext()->GetRegExpGlobalRe… in HWTEST_F_L0()
2146 ASSERT_EQ(regExpGlobalResult->GetTotalCaptureCounts().GetInt(), 1U); in HWTEST_F_L0()
2147 JSHandle<EcmaString> inputStr = factory->NewFromASCII("\u000B"); in HWTEST_F_L0()
2149 JSHandle<EcmaString> str = factory->NewFromASCII("\u000B"); in HWTEST_F_L0()