Home
last modified time | relevance | path

Searched refs:str2 (Results 1 – 25 of 42) sorted by relevance

12

/arkcompiler/ets_runtime/test/aottest/logic_op/
Dlogic_op.ts26 var str2: string = "hello";
37 print(str1 == str2)
45 print(str1 != str2)
53 print(str1 < str2)
61 print(str1 <= str2)
69 print(str1 > str2)
77 print(str1 >= str2)
/arkcompiler/ets_frontend/arkguard/test/grammar/types_definition/
Dstring_define.ts23 let str2 = 'def'; variable
25 assert(str2 === 'def', 'success');
27 let str3 = `aa${str1}bb${str2}cc\${}`;
/arkcompiler/ets_frontend/arkguard/test/grammar/variable_declaration/
Dstring_declaration.ts22 let str2 = 'def'; variable
24 assert(str2 === 'def', 'success');
27 bb${str2}cc\${}`;
/arkcompiler/ets_runtime/test/moduletest/datecompare/
Ddatecompare.js23 var str2 = Date.parse('2010-08-04') variable
26 var timer2 = new Date(str2)
/arkcompiler/ets_runtime/test/aottest/createregexpwithliteral/
Dcreateregexpwithliteral.ts19 var str2 = "ac";
21 var res2 = re.test(str2);
/arkcompiler/ets_runtime/test/aottest/aot_type_test/typenotequal/
Dtypenotequal.ts22 let str2:string = "b"
23 print(str1 != str2);
/arkcompiler/ets_runtime/test/aottest/aot_type_test/typeequal/
Dtypeequal.ts22 let str2:string = "b"
23 print(str1 == str2);
/arkcompiler/ets_runtime/test/aottest/strictequal/
Dstrictequal.ts22 let str2:any = "1";
32 print(str1 === str2);
/arkcompiler/ets_runtime/test/aottest/strictnotequal/
Dstrictnotequal.ts22 let str2:any = "1";
32 print(str1 !== str2);
/arkcompiler/ets_runtime/test/moduletest/string/
Dstring.js26 let str2 = tmp.substring(0, 111) + 'nsExpress3SF#123456789的' + tmp.substring(111 + 23,111 + 24) + '… variable
29 print((flag === str2).toString());
/arkcompiler/ets_runtime/ecmascript/
Decma_string.cpp456 bool EcmaString::EqualToSplicedString(const EcmaString *str1, const EcmaString *str2) in EqualToSplicedString() argument
459 ASSERT(str1->IsLineOrConstantString() && str2->IsLineOrConstantString()); in EqualToSplicedString()
460 if (GetLength() != str1->GetLength() + str2->GetLength()) { in EqualToSplicedString()
464 if (str1->IsUtf8() && str2->IsUtf8()) { in EqualToSplicedString()
468 …return EcmaString::StringsAreEqualUtf16(str2, GetDataUtf16() + str1->GetLength(), str2->GetLength(… in EqualToSplicedString()
471 if (str1->IsUtf16() || str2->IsUtf16()) { in EqualToSplicedString()
477 concatData = Span<const uint8_t>(GetDataUtf8() + str1->GetLength(), str2->GetLength()); in EqualToSplicedString()
478 Span<const uint8_t> data2(str2->GetDataUtf8(), str2->GetLength()); in EqualToSplicedString()
486 bool EcmaString::StringsAreEqualSameUtfEncoding(EcmaString *str1, EcmaString *str2) in StringsAreEqualSameUtfEncoding() argument
492 const uint16_t *data2 = EcmaString::GetUtf16DataFlat(str2, buf2); in StringsAreEqualSameUtfEncoding()
[all …]
Decma_string.h204 static bool StringsAreEquals(Span<const T> &str1, Span<const T> &str2) in StringsAreEquals() argument
206 ASSERT(str1.Size() <= str2.Size()); in StringsAreEquals()
210 if (str1[i] != str2[i]) { in StringsAreEquals()
216 return memcmp(str1.data(), str2.data(), size * sizeof(T)) == 0; in StringsAreEquals()
223 bool EqualToSplicedString(const EcmaString *str1, const EcmaString *str2);
225 …ingsAreEqual(const EcmaVM *vm, const JSHandle<EcmaString> &str1, const JSHandle<EcmaString> &str2);
227 static bool StringsAreEqual(EcmaString *str1, EcmaString *str2);
229 static bool StringsAreEqualSameUtfEncoding(EcmaString *str1, EcmaString *str2);
968 …ringsAreEqual(const EcmaVM *vm, const JSHandle<EcmaString> &str1, const JSHandle<EcmaString> &str2) in StringsAreEqual() argument
970 return EcmaString::StringsAreEqual(vm, str1, str2); in StringsAreEqual()
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayjoin/
Darrayjoin.js26 var str2 = JSON.stringify(new Array(3).join("0")); variable
27 print(str2);
/arkcompiler/ets_runtime/test/typeinfer/add2dyn/
Dadd2dyn.ts34 let str2 : string = '2';
35 let ans4 = str1 + str2;
/arkcompiler/ets_runtime/test/aottest/modules/
Dmodules.ts21 let str2 = "YYY";
/arkcompiler/ets_frontend/ts2panda/tests/types/class/
Dclass_static_fields.ts21 static str2: string = ""; property in A
Dclass_fields.ts21 readonly str2: string = ""; property in A
/arkcompiler/ets_frontend/ts2panda/tests/types/array/
Darray_multi_same_primi.ts22 let str2: string[]; variable
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/classes/
Dtest-ts-classes-10-expected.txt2 str2
Dtest-ts-classes-11-expected.txt2 str2
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
Des6ClassSuperCodegenBug.ts22 constructor(str1:string, str2:string) {}
DprivateNameMethodCallExpression.ts118 const str2 = this.getInstance().#method2`head${1}middle${2}tail`; constant
119 AssertType(str2, "void");
DprivateNameStaticMethodCallExpression.ts109 const str2 = AA.getClass().#method2`head${1}middle${2}tail`; constant
110 AssertType(str2, "void");
/arkcompiler/ets_runtime/test/typeinfer/builtins/
Dbuiltins.ts211 let str2 = String("str2");
212 AssertType(str2.charAt(2), "string");
213 AssertType(str2.endsWith("2"), "boolean");
214 AssertType(str2.substring(2, 3), "string");
/arkcompiler/ets_runtime/ecmascript/regexp/tests/
Dregexp_test.cpp709 JSHandle<EcmaString> str2 = factory->NewFromASCII("ba"); in HWTEST_F_L0() local
711 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str2) == 0); in HWTEST_F_L0()
777 JSHandle<EcmaString> str2 = factory->NewFromASCII("z"); in HWTEST_F_L0() local
782 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str2) == 0); in HWTEST_F_L0()
1088 JSHandle<EcmaString> str2 = factory->NewFromASCII("aaa"); in HWTEST_F_L0() local
1090 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str2) == 0); in HWTEST_F_L0()
1194 JSHandle<EcmaString> str2 = factory->NewFromASCII("ab"); in HWTEST_F_L0() local
1196 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str2) == 0); in HWTEST_F_L0()
1328 JSHandle<EcmaString> str2 = factory->NewFromASCII("b"); in HWTEST_F_L0() local
1330 ASSERT_TRUE(EcmaStringAccessor::Compare(instance, result.captures_[1].second, str2) == 0); in HWTEST_F_L0()
[all …]

12