Home
last modified time | relevance | path

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

12345678910>>...248

/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/ets_frontend/ets2panda/linter/test/main/
Dinvalid_identifier.ets20 const asVar: string = '';
22 const internal: string = "internal";
24 const static: string = "static";
26 const as: string = "as";
28 const enum: string = "enum";
30 const launch: string = "launch";
32 const switch: string = "switch";
34 const async: string = "async";
36 const let: string = "let";
38 const super: string = "super";
[all …]
Dfunc_inferred_type_args_2.ets.migrate.ets29 const repairableMap: Map<string, number> = new Map<string, number>();
30 repairableMap = new Map<string, number>();
34 public repairableSet: Set<string> = new Map();
35 public repairableMap: Map<string, () => string[]> = new Map<string, () => string[]>();
36 static repairableStaticMap: Map<string, () => string[]> = new Map<string, () => string[]>();
44 repairableC.repairableSet = new Set<string>();
45 repairableC.repairableMap = new Map<string, () => string[]>();
46 MyClass.repairableStaticMap = new Map<string, () => string[]>();
48 const promise: Promise<String> = new Promise<String>(() => { return ''; });
50 function testA(): Map<string, string> {
[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 …]
/arkcompiler/ets_frontend/ets2panda/lexer/scripts/
Dtokens.yaml16 string: "&"
20 string: "|"
24 string: "*"
28 string: "/"
32 string: "-"
36 string: "!"
40 string: "~"
44 string: "--"
48 string: "<<"
52 string: ">>"
[all …]
/arkcompiler/runtime_core/taihe/test/ani_record/idl/
Drecord_test.taihe22 function GetCpuSize(r : @record Map<String, ICpu>) : i32;
26 function GetStringIntSize(r : @record Map<String, i32>) : i32;
28 function CreateStringString(a : i32) : @record Map<String, String>;
31 a: String;
35 function GetMapfromArray(d : Array<Data>): @record Map<String, i32>;
37 function GetDatafromMap(m : @record Map<String, Data>, k : String) : Data;
39 function ForeachMap(r: @record Map<String, String>);
42 function Mapfunc01(m : @record Map<String, bool>): bool;
43 function Mapfunc02(m : @record Map<String, i8>): bool;
44 function Mapfunc03(m : @record Map<String, i16>): bool;
[all …]
/arkcompiler/ets_frontend/ets2panda/driver/build_system/src/
Dtypes.ts18 [pluginName: string]: string;
22 [pathName: string]: string[];
36 filePath: string;
77 packageName: string;
78 moduleType: string;
79 moduleRootPath: string;
80 sourceRoots: string[];
85 loaderOutPath: string;
86 cachePath: string;
87 buildSdkPath: string;
[all …]
/arkcompiler/runtime_core/taihe/test/ani_union/idl/
Dtest_union.taihe16 a: String;
17 b: String;
20 enum Color: String {
27 sValue: String;
39 mapValue1: @record Map<String, i8>;
44 mapValue2: @record Map<String, i16>;
49 mapValue3: @record Map<String, i32>;
54 mapValue4: @record Map<String, i64>;
59 mapValue5: @record Map<String, f32>;
64 mapValue6: @record Map<String, f64>;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-common-tests/intrinsics/
Dstring_from_char_code.ets17 arktest.assertEQ(string.fromCharCode(), '', 'Must be an empty string');
18 …arktest.assertEQ(string.fromCharCode().length, 0, 'String length of an empty string must be equal …
22 arktest.assertEQ(string.fromCharCode(0x43 as number, 65.992 as number), 'CA', "Must be 'CA'");
23 …arktest.assertEQ(string.fromCharCode(0x43 as number, 65.992 as number).length, 2, "String length o…
24 arktest.assertEQ(string.fromCharCode(0xA as number, 0xA as number), '\n\n', "Must be '\\n\\n'");
25 …arktest.assertEQ(string.fromCharCode(0xA as number, 0xA as number).length, 2, "String length of '\…
26 …arktest.assertEQ(string.fromCharCode(0xA as number, 0x9 as number, 0xA as number), '\n\t\n', "Must…
27 …arktest.assertEQ(string.fromCharCode(0xA as number, 0x9 as number, 0xA as number).length, 3, "Stri…
28 arktest.assertEQ(string.fromCharCode(0xA as number, 0xD as number), '\n\r', "Must be '\\n\\r'");
29 …arktest.assertEQ(string.fromCharCode(0xA as number, 0xD as number).length, 2, "String length of '\…
[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/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/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/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> reservedFileNames;
35 std::vector<std::string> universalReservedFileNames;
36 std::vector<std::string> reservedRemoteHarPkgNames;
41 std::vector<std::string> keepPaths;
50 std::string printNameCache;
51 std::string applyNameCache;
52 std::vector<std::string> reservedNames;
[all …]
/arkcompiler/ets_frontend/ets2panda/bindings/src/
Dtypes.ts48 protected dumpMessage(): string {
52 public dumpJson(): string {
56 public dumpSrc(): string {
62 readonly path: string;
63 constructor(peer: KPtr, fpath: string) {
69 public toString(): string {
73 …static create(input: string[], fpath: string, pandaLibPath: string = '', isEditingMode: boolean = …
93 public toString(): string {
97 static createFromString(source: string): Context {
106 static lspCreateFromString(source: string, filePath: string, cfg: Config): KPtr {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/TreeMap/
DTreeMapHasKeyHasValueSetAllForEachTest.ets38 let treeMap: TreeMap<string, string> =
39 new TreeMap<string, string>((firstValue: string, secondValue: string): number => {
51 let treeMap: TreeMap<string, string> =
52 new TreeMap<string, string>((firstValue: string, secondValue: string): number => {
64 let treeMap: TreeMap<string, string> =
65 new TreeMap<string, string>((firstValue: string, secondValue: string): number => {
76 let treeMap: TreeMap<string, string> =
77 new TreeMap<string, string>((firstValue: string, secondValue: string): number => {
80 let treeMapp: TreeMap<string, string> =
81 new TreeMap<string, string>((firstValue: string, secondValue: string): number => {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.function_method_and_constructor_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/ets_frontend/ets2panda/linter/homecheck/src/utils/checker/
DAbilityInterface.ts20 name: string;
21 type: string;
22 description: string;
23 mainElement: string;
24 deviceTypes: string[];
35 name: string;
36 srcEntry: string;
37 description: string;
38 icon: string;
39 label: string;
[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: "FixedArray<String>",
18 init_object_type: String,
31 object_type: String,
32 init_object_data_type: "FixedArray<String>",
33 init_object_type: String,
46 object_type: String,
47 init_object_data_type: "FixedArray<String>",
48 init_object_type: String,
61 object_type: String,
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/08.function_method_and_constructor_overloading/05.typescript_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/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/03.types/19.union_types/
Dunited_switch_ext.params.yaml22 function unitedSwitch(input: Animal): string {
37 function unitedSwitch(input: boolean): string {
49 - desc: Class and string combined type(string).
54 type Animal = Cat | Dog | Frog | string
56 function unitedSwitch(input: Animal): string {
58 case 'string':
59 return 'string';
61 return 'not string';
65 assertEQ(unitedSwitch(new Cat()), 'not string');
66 - desc: Number and String combined type(number).
[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/runtime_core/static_core/plugins/ets/stdlib/std/core/
DString.ets34 type StringOrRegExp = String | RegExp
37 * Unicode string
39 export final class String extends Object implements Comparable<String>, JSONable<String>, Iterable<
43 * Constructs an empty String
48 * Constructs String from chars array initializer
54 // let b = new String(a)
56 * Constructs String from another String
60 public native constructor(otherStr: String)
63 * Constructs String from NullishType
70 * Creates a new instance of a String
[all …]

12345678910>>...248