Home
last modified time | relevance | path

Searched full:example (Results 1 – 25 of 691) sorted by relevance

12345678910>>...28

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/string_ops/
Dstring_get_utf8_test.cpp25 const std::string example {"����"}; in TEST_F() local
27 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
34 ASSERT_EQ(result, example.size()); in TEST_F()
40 const std::string example {"example"}; in TEST_F() local
42 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
49 ASSERT_EQ(result, example.size()); in TEST_F()
50 ASSERT_STREQ(utfBuffer, "example"); in TEST_F()
56 const std::string example {""}; in TEST_F() local
58 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
65 ASSERT_EQ(result, example.size()); in TEST_F()
[all …]
Dstring_get_utf8_size_test.cpp31 const std::string example {"example"}; in TEST_F() local
33 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
42 const std::string example {"example"}; in TEST_F() local
44 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
53 const std::string example {"example"}; in TEST_F() local
55 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
61 ASSERT_EQ(result, example.size()); in TEST_F()
66 const std::string example = {"测测试emoji����"}; in TEST_F() local
68 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
74 ASSERT_EQ(result, example.size()); in TEST_F()
[all …]
Dstring_new_utf16_test.cpp44 const uint16_t example[] = {0x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x0000}; in TEST_F() local
45 size_t length = sizeof(example) / sizeof(example[0U]) - 1U; in TEST_F()
46 auto status = env_->c_api->String_NewUTF16(nullptr, example, length, &result); in TEST_F()
53 const uint16_t example[] = {0x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x0000}; in TEST_F() local
54 size_t length = sizeof(example) / sizeof(example[0U]) - 1U; in TEST_F()
55 auto status = env_->String_NewUTF16(example, length, &result); in TEST_F()
63 const uint16_t example[] = {0x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x0000}; in TEST_F() local
64 size_t length = sizeof(example) / sizeof(example[0U]); in TEST_F()
65 auto status = env_->String_NewUTF16(example, length, &result); in TEST_F()
72 const uint16_t example[] = {0x4F60, 0x597D, 0x002C, 0x0020, 0x4E16, 0x754C, 0x0000}; in TEST_F() local
[all …]
Dstring_get_utf8_substr.cpp25 const std::string example {"����"}; in TEST_F() local
27 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
43 const std::string example {"example"}; in TEST_F() local
45 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
56 ani_size substrSize = example.size(); in TEST_F()
61 ASSERT_STREQ(utfBuffer, "example"); in TEST_F()
66 const std::string example {"hi\n, \rtest\\?"}; in TEST_F() local
68 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
84 const std::string example {""}; in TEST_F() local
86 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
[all …]
Dstring_new_utf8_test.cpp51 const std::string example {"测测试emoji����"}; in TEST_F() local
53 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &result); in TEST_F()
58 status = env_->String_NewUTF8(example.c_str(), example.size(), &result2); in TEST_F()
64 …env_->String_GetUTF8SubString(result2, 0U, example.size(), utfBuffer, sizeof(utfBuffer), &resultSi… in TEST_F()
65 ASSERT_EQ(resultSize, example.size()); in TEST_F()
66 ASSERT_STREQ(utfBuffer, example.c_str()); in TEST_F()
71 const std::string example {"example"}; in TEST_F() local
73 auto status = env_->c_api->String_NewUTF8(nullptr, example.c_str(), example.size(), &string); in TEST_F()
79 const std::string example {"example"}; in TEST_F() local
81 ani_status status = env_->String_NewUTF8(example.c_str(), example.size() - 1U, &result); in TEST_F()
[all …]
Dstring_get_utf16_size_test.cpp32 const std::string example {"example"}; in TEST_F() local
34 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
43 const std::string example {"example"}; in TEST_F() local
45 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
54 const std::string example {"example"}; in TEST_F() local
56 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
62 ASSERT_EQ(result, example.size()); in TEST_F()
67 const std::string example = {"测测试emoji����"}; in TEST_F() local
69 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
82 const std::string example {""}; in TEST_F() local
[all …]
Dstring_get_utf16_substr_test.cpp25 const uint16_t example[] = {0xD83D, 0xDE42, 0xD83D, 0xDE42, 0x0000}; in TEST_F() local
27 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
38 ASSERT_EQ(utf16Buffer[i], example[i]); in TEST_F()
44 const uint16_t example[] = {0x0065, 0x0078, 0x0061, 0x006D, 0x0070, 0x006C, 0x0065, 0x0000}; in TEST_F() local
46 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
51 ani_size substrSize = sizeof(example) / sizeof(uint16_t) - 1U; in TEST_F()
57 ASSERT_EQ(utf16Buffer[i], example[i]); in TEST_F()
63 const uint16_t example[] = {0x0065, 0x0078, 0x0061, 0x006D, 0x0070, 0x006C, 0x0065, 0x0000}; in TEST_F() local
65 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
70 ani_size substrSize = sizeof(example) / sizeof(uint16_t) - 1U; in TEST_F()
[all …]
Dstring_get_utf16_test.cpp37 const uint16_t example[] = {0x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x0000}; in TEST_F() local
39 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
50 const uint16_t example[] = {0x0000}; in TEST_F() local
52 auto status = env_->String_NewUTF16(example, 0U, &string); in TEST_F()
64 const std::string example {"hello\nworld\r, hi\\?"}; in TEST_F() local
66 auto status = env_->String_NewUTF8(example.c_str(), example.size(), &string); in TEST_F()
73 ASSERT_EQ(result, example.size()); in TEST_F()
75 ASSERT_EQ(utf16Buffer[i], example[i]); in TEST_F()
81 const uint16_t example[] = {0x0048, 0x0065, 0x006C, 0x006C, 0x006F, 0x0000}; in TEST_F() local
83 auto status = env_->String_NewUTF16(example, sizeof(example) / sizeof(uint16_t) - 1U, &string); in TEST_F()
[all …]
/arkcompiler/toolchain/test/autotest/resource/
Darchive.json5 "bundle name": "com.example.multiWorker01"
10 "bundle name": "com.example.multiWorker02"
15 "bundle name": "com.example.multiWorker03"
20 "bundle name": "com.example.multiWorker04"
25 "bundle name": "com.example.multiWorker05"
30 "bundle name": "com.example.multiWorker06"
35 "bundle name": "com.example.multiWorker07"
40 "bundle name": "com.example.multiWorker08"
45 "bundle name": "com.example.taskPool01"
50 "bundle name": "com.example.taskPool02"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/libani_helpers/tests/ani_signature_builder/
Dani_signature_builder_test.cpp54 sb2.Add(Builder::BuildArray(Builder::BuildArray(Builder::BuildClass("com.example.MyClass")))); in TEST()
56 ASSERT_EQ(sb2.BuildSignatureDescriptor(), "[[Lcom/example/MyClass;:[I"); in TEST()
61 Module mod = Builder::BuildModule("com.example.Module"); in TEST()
62 ASSERT_EQ(mod.Name(), "com.example.Module"); in TEST()
63 ASSERT_EQ(mod.Descriptor(), "Lcom/example/Module;"); in TEST()
65 Namespace ns1 = Builder::BuildNamespace("com.example.Namespace"); in TEST()
66 ASSERT_EQ(ns1.Name(), "com.example.Namespace"); in TEST()
67 ASSERT_EQ(ns1.Descriptor(), "Lcom/example/Namespace;"); in TEST()
69 Namespace ns2 = Builder::BuildNamespace({"com", "example", "SubNamespace"}); in TEST()
70 ASSERT_EQ(ns2.Name(), "com.example.SubNamespace"); in TEST()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DMultiline_string.ets17 let x = `This is an example of a multiline string,
20 type UT = `This is an example of a multiline string,
23 let x2:UT = `This is an example of a multiline string,
27 assertEQ(x2, `This is an example of a multiline string,
30 …assertEQ(x2, "This is an example of a multiline string,\n which should be enclo…
32 let x3 = `This is an example of a multiline string`;
33 type UT2 = `This is an example of a multiline string` | "X";
34 let x4:UT2 = `This is an example of a multiline string`
36 assertEQ(x4, `This is an example of a multiline string`)
37 assertEQ(x4, "This is an example of a multiline string")
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dlimit_void_type.ets17 // Example 1: Basic function
20 // Example 2: Arrow function
23 // Example 3: Class method
28 // Example 4: Immediately Invoked Function Expression (IIFE)
30 // Example 5: Asynchronous function
33 // Example 6: Function parameter
37 // Example 7: Type assertion
40 // Example 8: Callback function
43 // Example 9: Array operation
46 // Example 10: Object method
[all …]
Dlimit_void_type.ets.migrate.ets17 // Example 1: Basic function
20 // Example 2: Arrow function
23 // Example 3: Class method
28 // Example 4: Immediately Invoked Function Expression (IIFE)
30 // Example 5: Asynchronous function
33 // Example 6: Function parameter
37 // Example 7: Type assertion
40 // Example 8: Callback function
43 // Example 9: Array operation
46 // Example 10: Object method
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/object_ops/
Dobject_set_field_by_name_ref_test.cpp28 ani_size CreateAniString(const std::string &example, ani_ref &outRef) in CreateAniString() argument
30 const size_t strLen = example.size(); in CreateAniString()
32 env_->String_NewUTF8(example.c_str(), strLen, &aniStringPtr); in CreateAniString()
41 auto strLen = CreateAniString("example", nameRef); in TEST_F()
55 ASSERT_STREQ(buffer.data(), "example"); in TEST_F()
63 CreateAniString("example", nameRef); in TEST_F()
71 CreateAniString("example", nameRef); in TEST_F()
81 CreateAniString("example", nameRef); in TEST_F()
90 CreateAniString("example", nameRef); in TEST_F()
98 CreateAniString("example", nameRef); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/docs/
Dintrinsics-yaml.md8 (see [irtoc/intrinsics.yaml](../irtoc/intrinsics.yaml) as an example)
14 Example: ```intrinsics_namespace: irtoc```
40 Example: ```class_name: Irtoc```
50 Example: ```method_name: sin```
57 Example: ```space: core```
76 Example: ```codegen_func: EmitSlowPathEntryIntrinsic```
91 Example: ```codegen_arch: [amd64, arm64, arm32]```
100 Example: ```llvm_codegen_func: EmitSlowPathEntry```
108 Example:
123 Example: ```ark::ets::intrinsics::StdCoreDoubleIsFinite```
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/rename_file_name_ohmurl/ohmurl_file/
Dohmurl_test.ts16 import { xx1 } from "@bundle:com.example.myapplication/entry/ets/pages/testfile1";
17 import { yy1 } from "@bundle:com.example.myapplication/entry/ets/pages/test_constructor";
18 import { xx3 } from "@bundle:com.example.myapplication/share_library/Index";
19 import { xx4 } from "@bundle:com.example.myapplication/entry@library_test/Index";
Dohmurl_test_expected.txt15 import { xx1 } from "@bundle:com.example.myapplication/entry/a/b/c";
16 import { yy1 } from "@bundle:com.example.myapplication/entry/a/b/d";
17 import { xx3 } from "@bundle:com.example.myapplication/share_library/e";
18 import { xx4 } from "@bundle:com.example.myapplication/entry@library_test/e";
/arkcompiler/ets_frontend/es2panda/test/compiler/js/regex/
Dmatchall_extract_domain_names.js16 const str = "Visit example.com and support.example.org.";
18 print(JSON.stringify(matches)); // example.com,support.example.org
Dmatchall_extract_urls.js16 const str = "Visit our website at https://www.example.com or http://example.org.";
18 print(JSON.stringify(matches)); // https://www.example.com,http://example.org.
Dmatchall_extract_emails.js16 const str = "Contact us at info@example.com or support@example.org.";
18 print(JSON.stringify(matches)); // info@example.com,support@example.org
Dmatchall_extract_domain_names-expected.txt1 [["example.com"],["support.example.org"]]
/arkcompiler/ets_runtime/docs/
Daot-guide_zh.md30 - 说明:以*bundleName*为*com.example.myapplication*为例,输入以下命令可触发AOT编译
32 hdc shell bm compile -m partial com.example.myapplication
38 - 说明:以*bundleName*为*com.example.myapplication*为例,输入以下命令可查看该应用下每个module的编译状态
39 - ```hdc shell bm dump -n com.example.myapplication```
/arkcompiler/toolchain/tooling/dynamic/client/tcpServer/test/
Dconfig.py21 "com.example.myapplication",
22 "com.example.myapplication1",
23 "com.example.myapplication3",
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DMath.ets72 * @example
93 * @example
110 * @example
139 * @example
157 * @example
188 * @example
219 * @example
237 * @example
255 * @example
273 * @example
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dlaunch.ets19 class Example {
41 p = launch<Object, () => Object>(Example.foobar);
42 p = launch<Object, () => Object>(Example.baz);
43 p = launch<Object, () => Object>(Example.baz);

12345678910>>...28