Home
last modified time | relevance | path

Searched full:string (Results 1 – 25 of 5584) sorted by relevance

12345678910>>...224

/arkcompiler/ets_runtime/test/sharedtest/definesendableclass/
Ddefinesendableclass.ts24 declare function print(str: any): string;
29 static "123": string = "parent"
31 "560": string = "560";
32 aa: string = "aa";
57 "45": string = "45";
59 dd: string = "dd";
71 a0:string = "";
72 a1:string = "";
73 a2:string = "";
74 a3:string = "";
[all …]
/arkcompiler/ets_runtime/test/perform/string/
Dexpect_output.txt14 string replace regexp flag is g: 44
15 string replace regexp flag is gi :15
16 string replace regexp pattern is /([^d]*)(d*)([^w]*)/ : 161
17 string split number of input parameters is 2 : 70
18 string split number of input parameters is 1 : 35
19 string split into regexp.split : 22
20 string indexOf input parameter is a substring : 14
21 string indexOf Input parameter is not a substring : 15
22 string indexOf number of input parameters is 2 : 11
23 string slice number of input parameters is 1 : 17
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-func-tests-templates/spec/15.Semantic_Rules/Compatibility_Features/Extended_Conditional_Expressions/
Dconfig-ext-cond-expr-false.yaml18 - 'string:"Hello World":string:""'
19 - 'string:"Hello World":boolean:false'
20 - 'string:"Hello World":byte:0'
21 - 'string:"Hello World":char:0'
22 - 'string:"Hello World":short:0'
23 - 'string:"Hello World":int:0'
24 - 'string:"Hello World":long:0'
25 - 'string:"Hello World":float:0.0'
26 - 'string:"Hello World":double:0.0'
27 - 'string:"Hello World":Boolean:false'
[all …]
Dconfig-ext-cond-expr.yaml18 - 'string:"Hello World":string:"Hello World"'
19 - 'string:"Hello World":boolean:true'
20 - 'string:"Hello World":byte:16'
21 - 'string:"Hello World":char:16'
22 - 'string:"Hello World":short:1024'
23 - 'string:"Hello World":int:28'
24 - 'string:"Hello World":long:28'
25 - 'string:"Hello World":float:1.0'
26 - 'string:"Hello World":double:28'
27 - 'string:"Hello World":Boolean:true'
[all …]
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
Dfile_path_utils.h19 #include <string>
25 bool StringStartWith(const std::string& str, const char* startStr, size_t startStrLen);
26 bool StringEndWith(const std::string& str, const char* endStr, size_t endStrLen);
27 …void SplitString(const std::string& str, std::vector<std::string>& out, size_t pos = 0, const char…
28 std::string JoinString(const std::vector<std::string>& strs, char sep, size_t startIndex = 0);
29 std::string StripString(const std::string& str, const char* charSet = " \t\n\r");
31 void FixExtName(std::string& path);
32 std::string GetInstallPath(const std::string& curJsModulePath, bool module = true);
33 …std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModule…
34 std::string FindNpmPackageInPath(const std::string& npmPath);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_entrypoints.yaml146 - ark::ObjectHeader* # string builder (result)
147 - ark::ObjectHeader* # string builder
156 - ark::ObjectHeader* # string builder (result)
157 - ark::ObjectHeader* # string builder
165 - ark::ObjectHeader* # string builder (result)
166 - ark::ObjectHeader* # string builder
174 - ark::ObjectHeader* # string builder (result)
175 - ark::ObjectHeader* # string builder
184 - ark::ObjectHeader* # string builder (result)
185 - ark::ObjectHeader* # string builder
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-ts-type-predicate.ts17 function function1(a: number | string): asserts a { return };
18 var var1: (a: number | string) => asserts a;
20 (a: number | string): asserts a;
21 (a: number | string): asserts this;
24 function function2(asserts: number | string): asserts is number { return };
25 var var2: (asserts: number | string) => asserts is number;
28 (asserts: number | string): asserts is number;
29 (asserts: { a: number | string }): asserts is this;
32 function function3(is: number | string): is is number { return };
33 var var3: (is: number | string) => is is number;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/
Dtest-ts-type-predicate.ts17 function function1(a: number | string): asserts a { return };
18 var var1: (a: number | string) => asserts a;
20 (a: number | string): asserts a;
21 (a: number | string): asserts this;
24 function function2(asserts: number | string): asserts is number { return };
25 var var2: (asserts: number | string) => asserts is number;
28 (asserts: number | string): asserts is number;
29 (asserts: { a: number | string }): asserts is this;
32 function function3(is: number | string): is is number { return };
33 var var3: (is: number | string) => is is number;
[all …]
/arkcompiler/runtime_core/panda_guard/configs/
Dguard_name_cache.h22 #include <string>
29 std::map<std::string, std::string> identifierCacheMap;
30 std::map<std::string, std::string> memberMethodCacheMap;
31 std::string obfName;
32 std::string oriSourceFile;
33 std::string obfSourceFile;
37 std::map<std::string, FileNameCacheInfo> fileCacheInfoMap;
38 std::string entryPackageInfo;
39 std::string compileSdkVersion;
40 std::map<std::string, std::string> propertyCacheMap;
[all …]
Dguard_options.h20 #include <string>
28 std::vector<std::string> reservedList;
29 std::vector<std::string> universalReservedList;
34 std::vector<std::string> keepPaths;
41 std::string printNameCache;
42 std::string applyNameCache;
43 std::vector<std::string> reservedNames;
51 std::string abcFilePath;
52 std::string obfAbcFilePath;
53 std::string obfPaFilePath;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/02.class_method_overloading/
Dcm_over1.params.yaml38 meth(p: A|string|null) {}
39 meth(p: string|A|null) {}
47 meth(p: Object): string { return "Object" } // should never be called
48 meth(p: byte): string { return "byte" }
49 meth(p: Byte): string { return "Byte" }
50 meth(p: short): string { return "short" }
51 meth(p: Short): string { return "Short" }
52 meth(p: int): string { return "int" }
53 meth(p: Int): string { return "Int" }
54 meth(p: long): string { return "long" }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/
Dlist.std_core_string_instance.yaml16 object_type: String,
17 init_object_data_type: "String[]",
18 init_object_type: String,
31 object_type: String,
32 init_object_data_type: "String[]",
33 init_object_type: String,
46 object_type: String,
47 init_object_data_type: "String[]",
48 init_object_type: String,
61 object_type: String,
[all …]
Dlist.std_core_string_static.yaml16 object_type: String,
18 param_init_data_types: {"param1":"String[][]", "param2": "String[]"},
19 param_types: {"param1":"String[]", "param2": "String"},
22 method_return_type: String,
24 expected_data_item_type: String,
25 expected_data_type: "String[]",
33 object_type: String,
35 …param_init_data_types: {"param1":"String[][]", "param2": "String[]", "prefix": "String[]", "suffix…
36 param_types: {"param1":"String[]", "param2": "String", "prefix": "String", "suffix": "String"},
39 method_return_type: String,
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DString.sts21 type StringOrRegExp = String | RegExp
24 * Unicode string
26 export final class String extends Object implements Comparable<String>, JSONable<String>, Iterable<
30 * Constructs an empty String
35 * Constructs String from chars array initializer
42 * Constructs String from another String
46 public constructor(otherStr: String) {}
49 * Constructs String from NullishType
56 * Creates a new instance of a String
58 * @returns A new String instance
[all …]
DStringBuilder.sts21 * Performance-oriented class for string construction
28 …ivate length: int = 0; // length of the resulting string
29 …ompress: boolean = true; // compress or not the resulting string.
42 let s: String = new String(fromChars);
51 * Constructs a new builder instance with provided string
53 * @param s string that will be used to initialize the builder
55 public constructor (s: String) {
64 * Concatenates two strings and return a result as a new string
66 * @param lhs left string (prefix)
68 * @param rhs right string (suffix)
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Dinstructions_test.cpp.in17 #include <string>
31 d.Disassemble(std::string(DISASM_BIN_DIR) + "empty_record.bc");
34 EXPECT_TRUE(ss.str().find(".language PandaAssembly") != std::string::npos);
42 d.Disassemble(std::string(DISASM_BIN_DIR) + "instructions.bc");
48 ASSERT_TRUE(beg_g != std::string::npos && end_g != std::string::npos) << "function g not found";
50 … std::string body_g = ss.str().substr(beg_g + strlen("g() {"), end_g - (beg_g + strlen("g() {")));
52 EXPECT_TRUE(body_g.find("\tmov v0, v1") != std::string::npos);
53 EXPECT_TRUE(body_g.find("\tmov.64 v2, v3") != std::string::npos);
54 EXPECT_TRUE(body_g.find("\tmov.obj v4, v5") != std::string::npos);
56 EXPECT_TRUE(body_g.find("\tmovi v0, 0xffffffffffffffff") != std::string::npos);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/08.function_declarations/09.function_overload_signatures/
Doverload_neg.params.yaml18 function foo(): string;
19 function foo(a: string): string;
20 function foo(a: string, b: string): string;
26 function foo(): string;
27 function foo(a: string, b: string): string;
28 function bar(): string {
31 function foo(a?: string, b?:string): string {
39 function foo(): string;
40 function foo(a: string, b: string): string;
41 function foo(a?: string, b:string): string {
[all …]
/arkcompiler/ets_frontend/arkguard/src/utils/
DNameCacheUtil.ts18 export const NAME_CACHE_SUFFIX: string = '.cache.json';
19 export const PROPERTY_CACHE_FILE: string = 'property.cache.json';
20 export const IDENTIFIER_CACHE: string = 'IdentifierCache';
21 export const MEM_METHOD_CACHE: string = 'MemberMethodCache';
24 export function writeCache(cache: Map<string, string> | undefined, destFileName: string): void {
25 // convert map to json string
30 const cacheString: string = JSON.stringify(Object.fromEntries(cache), null, spaceOfNameCache);
34 export function readCache(filePath: string): Object | undefined {
35 // read json string from file
36 const cacheString: string = FileUtils.readFile(filePath);
[all …]
/arkcompiler/ets_frontend/es2panda/util/
DsymbolTable.h26 static const std::string FIRST_LEVEL_SEPERATOR;
27 static const std::string SECOND_LEVEL_SEPERATOR;
30 std::string recordName;
31 std::string funcInternalName;
32 std::string funcHash;
33 ArenaMap<uint32_t, std::pair<std::string, int>> lexenv; // lexenv: <slot, <name, type>>
34 ArenaMap<std::string, std::string> classHash;
40 SymbolTable(const std::string &inputSymbolTable, const std::string &dumpSymbolTable) in SymbolTable()
47 bool Initialize(int targetApiVersion, std::string targetApiSubVersion);
51 ArenaUnorderedMap<std::string, OriginFunctionInfo> *GetOriginFunctionInfo() in GetOriginFunctionInfo()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/09.final_classes_and_methods/02.final_methods/
Dfm.params.yaml19 meth(s: string, n: number): string {
24 final meth(s: string, n: number): string {
36 final public final meth(s: string, n: number): string { // CTE
47 final meth(s: string, n: number): string {
52 meth(s: string, n: number): string { // CTE
62 private final meth(s: string, n: number): string {
67 private meth(s: string, n: number): string { // OK
78 public final meth(s: string, n: number): string {
83 private meth(s: string, n: number): string { // CTE
94 final meth(s: string, n: number): string {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/25.equality_expressions/02.string_equality_operators/
Dstring_eq_cte.params.yaml16 - { ltype: 'String', lval: '"test0"', op: '==', rtype: 'Boolean', rval: 'true' }
17 - { ltype: 'String', lval: '"test1"', op: '==', rtype: 'Byte' , rval: '0' }
18 - { ltype: 'String', lval: '"test2"', op: '==', rtype: 'Int' , rval: '-134242' }
19 - { ltype: 'String', lval: '"test3"', op: '==', rtype: 'Short' , rval: '43000' }
20 - { ltype: 'String', lval: '"test4"', op: '==', rtype: 'Long' , rval: '147483647' }
22 - { rtype: 'String', rval: '"test5"', op: '==', ltype: 'Float', lval: '0.1' }
23 - { rtype: 'String', rval: '"test6"', op: '==', ltype: 'Double', lval: '4E10' }
24 - { rtype: 'String', rval: '"test7"', op: '==', ltype: 'BigInt', lval: '123456789n' }
25 - { rtype: 'String', rval: '"test8"', op: '==', ltype: 'String[]', lval: '["test1"]' }
26 - { rtype: 'String', rval: '"test9"', op: '==', ltype: 'TestClass', lval: 'new TestClass()' }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/indirect_call/
Dindirect_union.sts18 const NUMERIC_VALUE: (number | string) = 1;
20 …let result: (number | string) = js.indirectCallUnion.call(null, NUMERIC_VALUE) as (number | string
27 const STRING_VALUE: (number | string) = '1';
29 …let result: (number | string) = js.indirectCallUnion.call(null, STRING_VALUE) as (number | string);
30 assert(typeof result == "string" && result as string == STRING_VALUE);
36 const NUMERIC_VALUE: (number | string) = 1;
38 …let result: (number | string) = js.indirectCallUnion.apply(null, [NUMERIC_VALUE]) as (number | str…
45 const STRING_VALUE: (number | string) = '1';
47 …let result: (number | string) = js.indirectCallUnion.apply(null, [STRING_VALUE]) as (number | str…
48 assert(typeof result == "string" && result as string == STRING_VALUE);
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DGenericBridges_02.sts20 class C<T extends Numeric|string, Z, T1 = string> implements B<T> {
34 f3(v: T|string): string {
38 f4(v: C<T, Z>|Numeric): string {
42 f5(x: T1|Z|C<T, Z, T1>[]): string {
46 f6(x: C<T, Z>, y: C<T, Z>): string {
50 f7(x: T, y: C<T, Z>): string {
54 f8(x: string): string {
58 f9(z: Z, y: T1): string {
63 class D<W> extends C<string, W> {
64 f1(v: string): string {
[all …]
/arkcompiler/ets_runtime/test/aottest/class_method_signature/
Dclass_method_signature.ts16 declare function print(str:any):string;
21 foo?(): string;
23 bar(): string {
27 bar2(): string {
40 foo?(): string;
41 foo(): string {
45 bar(): string {
49 bar2(): string {
64 bar(): string {
68 foo?(): string;
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dtest-schema.json11 "type": "string"
28 "type": "string"
31 "type": "string"
36 "type": "string"
42 "type": "string"
48 "type": "string"
62 "type": "string"
67 "type": "string"
71 "type": "string"
74 "type": "string"
[all …]

12345678910>>...224