/foundation/ability/idl_tool/test/ts/unittest/ts_code_emitter_proxy_test/ |
H A D | ts_code_emitter_proxy_test.cpp | 74 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeBooleanArray"), ERR_FAIL);
in HWTEST_F() 75 EXPECT_EQ(stringBuilder.ToString().IndexOf("Int8Array"), ERR_FAIL);
in HWTEST_F() 76 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeShortArray"), ERR_FAIL);
in HWTEST_F() 77 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeIntArray"), ERR_FAIL);
in HWTEST_F() 78 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeLongArray"), ERR_FAIL);
in HWTEST_F() 79 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeFloatArray"), ERR_FAIL);
in HWTEST_F() 80 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeDoubleArray"), ERR_FAIL);
in HWTEST_F() 81 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeStringArray"), ERR_FAIL);
in HWTEST_F() 82 EXPECT_EQ(stringBuilder.ToString().IndexOf("writeSequenceable"), ERR_FAIL);
in HWTEST_F() 116 EXPECT_NE(stringBuilder.ToString().IndexOf("writeBooleanArra in HWTEST_F() [all...] |
/foundation/ability/idl_tool/test/rust/unittest/rust_code_emitter_test/ |
H A D | code_emitter_test.cpp | 64 EXPECT_NE(sb.ToString().IndexOf("Copyright"), ERR_FAIL); in HWTEST_F() 65 EXPECT_NE(sb.ToString().IndexOf("use ipc_rust::"), ERR_FAIL); in HWTEST_F() 66 EXPECT_NE(sb.ToString().IndexOf("FIRST_CALL_TRANSACTION"), ERR_FAIL); in HWTEST_F() 67 EXPECT_NE(sb.ToString().IndexOf("define_remote_object"), ERR_FAIL); in HWTEST_F() 68 EXPECT_NE(sb.ToString().IndexOf("IRemoteBroker"), ERR_FAIL); in HWTEST_F() 69 EXPECT_NE(sb.ToString().IndexOf("on_remote_request"), ERR_FAIL); in HWTEST_F() 70 EXPECT_NE(sb.ToString().IndexOf("IdlTestStub"), ERR_FAIL); in HWTEST_F() 71 EXPECT_NE(sb.ToString().IndexOf("IdlTestProxy"), ERR_FAIL); in HWTEST_F()
|
/foundation/ability/idl_tool/util/ |
H A D | string.h | 67 int IndexOf(char c, int fromIndex = 0) const; 69 int IndexOf(const char* string, int fromIndex = 0) const; 71 int IndexOf(const String& other, int fromIndex = 0) const;
|
H A D | string.cpp | 232 int String::IndexOf(char c, int fromIndex) const in IndexOf() function in OHOS::String 255 int String::IndexOf(const char* string, int fromIndex) const in IndexOf() function in OHOS::String 271 int String::IndexOf(const String& other, int fromIndex) const in IndexOf() function in OHOS::String 532 int index = IndexOf(target); in Replace() 544 index = IndexOf(target, begin); in Replace() 556 int index = IndexOf(target); in Replace() 568 index = IndexOf(target, begin); in Replace()
|
H A D | options.cpp | 119 while ((index = options.IndexOf(' ')) != -1) { in ShowErrors()
|
/foundation/ability/idl_tool/test/unittest/ast_module_test/ |
H A D | ast_module_test.cpp | 86 * @tc.desc: test IndexOf in AstModuleUnitTest. 96 int result = module->IndexOf(interface); in HWTEST_F() 120 * @tc.desc: test IndexOf in AstModuleUnitTest. 130 int result = module->IndexOf(sequenceable); in HWTEST_F() 137 * @tc.desc: test IndexOf in AstModuleUnitTest. 154 * @tc.desc: test IndexOf in AstModuleUnitTest. 164 int result = module->IndexOf(interfaceType); in HWTEST_F()
|
/foundation/ability/idl_tool/ast/ |
H A D | ast_module.h | 82 int IndexOf(ASTInterfaceType* interface); 93 int IndexOf(ASTSequenceableType* sequenceable); 111 int IndexOf(ASTType* type);
|
H A D | ast_module.cpp | 64 while ((index = nspaceStr.IndexOf('.', begin)) != -1) { in ParseNamespace() 132 int ASTModule::IndexOf(ASTInterfaceType* interface) in IndexOf() function in OHOS::Idl::ASTModule 161 int ASTModule::IndexOf(ASTSequenceableType* sequenceable) in IndexOf() function in OHOS::Idl::ASTModule 190 int ASTModule::IndexOf(ASTType* type) in IndexOf() function in OHOS::Idl::ASTModule
|
/foundation/ability/idl_tool/metadata/ |
H A D | metadata_builder.cpp | 301 mn->sequenceableIndexes_[i] = module_->IndexOf(sequenceable); in WriteMetaNamespace() 306 mn->interfaceIndexes_[i] = module_->IndexOf(interface); in WriteMetaNamespace() 366 mm->returnTypeIndex_ = module_->IndexOf(method->GetReturnType()); in WriteMetaMethod() 398 mp->typeIndex_ = module_->IndexOf(parameter->GetType()); in WriteMetaParameter() 412 mt->index_ = module_->IndexOf(static_cast<ASTSequenceableType*>(type)); in WriteMetaType() 414 mt->index_ = module_->IndexOf(static_cast<ASTInterfaceType*>(type)); in WriteMetaType() 416 mt->index_ = module_->IndexOf(type); in WriteMetaType() 425 mt->nestedTypeIndexes_[0] = module_->IndexOf(elementType); in WriteMetaType() 436 mt->nestedTypeIndexes_[0] = module_->IndexOf(keyType); in WriteMetaType() 437 mt->nestedTypeIndexes_[1] = module_->IndexOf(valueTyp in WriteMetaType() [all...] |
/foundation/ability/idl_tool/idl_tool_2/metadata/ |
H A D | metadata_builder.cpp | 298 mn->sequenceableIndexes_[i] = module_->IndexOf(sequenceable.Get()); in WriteMetaNamespace() 303 mn->interfaceIndexes_[i] = module_->IndexOf(interface.Get()); in WriteMetaNamespace() 363 mm->returnTypeIndex_ = module_->IndexOf(method->GetReturnType()); in WriteMetaMethod() 390 mp->typeIndex_ = module_->IndexOf(parameter->GetType()); in WriteMetaParameter() 404 mt->index_ = module_->IndexOf(static_cast<ASTSequenceableType*>(type)); in WriteMetaType() 406 mt->index_ = module_->IndexOf(static_cast<ASTInterfaceType*>(type)); in WriteMetaType() 408 mt->index_ = module_->IndexOf(type); in WriteMetaType() 417 mt->nestedTypeIndexes_[0] = module_->IndexOf(elementType); in WriteMetaType() 428 mt->nestedTypeIndexes_[0] = module_->IndexOf(keyType); in WriteMetaType() 429 mt->nestedTypeIndexes_[1] = module_->IndexOf(valueTyp in WriteMetaType() [all...] |
/foundation/ability/idl_tool/test/unittest/util_string_test/ |
H A D | util_string_test.cpp | 54 * @tc.desc: Verify the IndexOf function. 62 EXPECT_EQ(String().IndexOf(String("name"), 1), -1); in HWTEST_F() 63 EXPECT_EQ(String("name").IndexOf(String(), 1), -1); in HWTEST_F() 64 EXPECT_EQ(String("bananan").IndexOf("ana", 1), 1); in HWTEST_F()
|
/foundation/ability/idl_tool/idl_tool_2/ast/ |
H A D | ast.h | 146 int IndexOf(ASTInterfaceType* interface); 148 int IndexOf(ASTSequenceableType* sequenceable); 150 int IndexOf(ASTType* type);
|
H A D | ast.cpp | 187 int AST::IndexOf(ASTInterfaceType* interface) in IndexOf() function in OHOS::Idl::AST 197 int AST::IndexOf(ASTSequenceableType* sequenceable) in IndexOf() function in OHOS::Idl::AST 207 int AST::IndexOf(ASTType* type) in IndexOf() function in OHOS::Idl::AST
|
/foundation/ability/idl_tool/codegen/ |
H A D | code_generator.cpp | 56 if (targetDirectory_.IndexOf(":\\") == -1) { in ResolveDirectory()
|
H A D | rust_code_emitter.cpp | 154 int pos = fpnp.IndexOf(".."); in GeneratePath() 169 if (path.IndexOf("..") != -1 || file.IndexOf("..") != -1) { in GeneratePath()
|
H A D | cpp_code_emitter.cpp | 117 int pos = fpnp.IndexOf(".."); in GetFilePath() 127 int pos = fpnp.IndexOf(".."); in GetFilePathNoPoint() 137 int pos = fpnp.IndexOf(".."); in GetNamespace() 907 int index = nspace.IndexOf('.'); in EmitBeginNamespace() 911 index = nspace.IndexOf('.'); in EmitBeginNamespace()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
H A D | cjson_parser.cpp | 109 int leftIndex = IndexOf(format, leftDelemeter_, index); // get the index of '{' in FormatString() 118 index = IndexOf(format, rightDelemeter_, leftIndex); // get the index of '}' in FormatString() 144 leftIndex = IndexOf(format, leftDelemeter_, index); in FormatString() 792 int pos = IndexOf(target, delemeter, startPos); in Split() 802 pos = IndexOf(target, delemeter, startPos); in Split() 816 int CJSONParser::IndexOf(const char *string, char delemeter, int index) in IndexOf() function in OHOS::ACELite::CJSONParser
|
H A D | cjson_parser.h | 138 int IndexOf(const char *string, char delemeter, int index);
|
/foundation/ability/idl_tool/parser/ |
H A D | parser.cpp | 173 } else if (interfaceFullName.IndexOf(".") == -1) { in ParseInterfaceMiddle()
|