/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
D | java_code_emitter.cpp | 47 std::string paramStr = paramSb.ToString(); in SpecificationParam() local 52 for (; curIndex < paramStr.size(); curIndex++) { in SpecificationParam() 54 StringHelper::Replace(paramStr, preIndex, replaceLen, ","); in SpecificationParam() 55 paramStr.insert(preIndex + 1, insertStr); in SpecificationParam() 57 if (paramStr[curIndex] == ',') { in SpecificationParam() 62 return paramStr; in SpecificationParam()
|
D | cpp_service_impl_code_emitter.cpp | 120 StringBuilder paramStr; in EmitServiceImplMethodDecl() local 121 paramStr.Append(prefix).AppendFormat("int32_t %s(", method->GetName().c_str()); in EmitServiceImplMethodDecl() 124 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitServiceImplMethodDecl() 126 paramStr.Append(", "); in EmitServiceImplMethodDecl() 130 paramStr.Append(") override;"); in EmitServiceImplMethodDecl() 132 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitServiceImplMethodDecl() 194 StringBuilder paramStr; in EmitServiceImplMethodImpl() local 195 …paramStr.Append(prefix).AppendFormat("int32_t %sService::%s(", baseName_.c_str(), method->GetName(… in EmitServiceImplMethodImpl() 198 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitServiceImplMethodImpl() 200 paramStr.Append(", "); in EmitServiceImplMethodImpl() [all …]
|
D | java_client_interface_code_emitter.cpp | 130 StringBuilder paramStr; in EmitInterfaceMethod() local 131 paramStr.Append(prefix).AppendFormat("int %s(", MethodName(method->GetName()).c_str()); in EmitInterfaceMethod() 134 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitInterfaceMethod() 136 paramStr.Append(", "); in EmitInterfaceMethod() 140 paramStr.Append(") throws RemoteException;"); in EmitInterfaceMethod() 141 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitInterfaceMethod()
|
D | cpp_client_proxy_code_emitter.cpp | 146 StringBuilder paramStr; in EmitProxyMethodDecl() local 147 paramStr.Append(prefix).AppendFormat("int32_t %s(", method->GetName().c_str()); in EmitProxyMethodDecl() 151 EmitProxyMethodParameter(param, paramStr, ""); in EmitProxyMethodDecl() 153 paramStr.Append(", "); in EmitProxyMethodDecl() 157 paramStr.Append(") override;"); in EmitProxyMethodDecl() 159 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitProxyMethodDecl() 171 StringBuilder paramStr; in EmitProxyStaticMethodDecl() local 172 paramStr.Append(prefix).AppendFormat("static int32_t %s_(", method->GetName().c_str()); in EmitProxyStaticMethodDecl() 176 EmitProxyMethodParameter(param, paramStr, ""); in EmitProxyStaticMethodDecl() 177 paramStr.Append(", "); in EmitProxyStaticMethodDecl() [all …]
|
D | c_code_emitter.cpp | 159 std::string paramStr = paramSb.ToString(); in SpecificationParam() local 164 for (; curIndex < paramStr.size(); curIndex++) { in SpecificationParam() 166 StringHelper::Replace(paramStr, preIndex, replaceLen, ","); in SpecificationParam() 167 paramStr.insert(preIndex + 1, insertStr); in SpecificationParam() 169 if (paramStr[curIndex] == ',') { in SpecificationParam() 174 return paramStr; in SpecificationParam()
|
D | c_interface_code_emitter.cpp | 204 StringBuilder paramStr; in EmitInterfaceMethod() local 205 paramStr.Append(prefix).AppendFormat( in EmitInterfaceMethod() 209 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitInterfaceMethod() 211 paramStr.Append(", "); in EmitInterfaceMethod() 215 paramStr.Append(");"); in EmitInterfaceMethod() 216 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitInterfaceMethod()
|
D | java_client_proxy_code_emitter.cpp | 163 StringBuilder paramStr; in EmitProxyMethodImpl() local 164 … paramStr.Append(prefix).AppendFormat("public int %s(", MethodName(method->GetName()).c_str()); in EmitProxyMethodImpl() 167 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitProxyMethodImpl() 169 paramStr.Append(", "); in EmitProxyMethodImpl() 172 paramStr.Append(") throws RemoteException"); in EmitProxyMethodImpl() 174 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitProxyMethodImpl()
|
D | cpp_interface_code_emitter.cpp | 181 StringBuilder paramStr; in EmitInterfaceMethodDecl() local 182 paramStr.Append(prefix).AppendFormat("virtual int32_t %s(", method->GetName().c_str()); in EmitInterfaceMethodDecl() 185 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitInterfaceMethodDecl() 187 paramStr.Append(", "); in EmitInterfaceMethodDecl() 191 paramStr.Append(") = 0;"); in EmitInterfaceMethodDecl() 192 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitInterfaceMethodDecl()
|
D | cpp_code_emitter.cpp | 255 std::string paramStr = paramSb.ToString(); in SpecificationParam() local 260 for (; curIndex < paramStr.size(); curIndex++) { in SpecificationParam() 262 StringHelper::Replace(paramStr, preIndex, replaceLen, ","); in SpecificationParam() 263 paramStr.insert(preIndex + 1, insertStr); in SpecificationParam() 265 if (paramStr[curIndex] == ',') { in SpecificationParam() 270 return paramStr; in SpecificationParam()
|
D | c_service_impl_code_emitter.cpp | 302 StringBuilder paramStr; in EmitServiceImplMethodImpl() local 303 … paramStr.Append(prefix).AppendFormat("static int32_t %s%s(struct %s *self, ", baseName_.c_str(), in EmitServiceImplMethodImpl() 307 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitServiceImplMethodImpl() 309 paramStr.Append(", "); in EmitServiceImplMethodImpl() 313 paramStr.Append(")"); in EmitServiceImplMethodImpl() 314 sb.Append(SpecificationParam(paramStr, prefix + TAB)); in EmitServiceImplMethodImpl()
|
D | c_client_proxy_code_emitter.cpp | 274 StringBuilder paramStr; in EmitProxyMethodImpl() local 275 … paramStr.AppendFormat("static int32_t %sProxy%s(", baseName_.c_str(), method->GetName().c_str()); in EmitProxyMethodImpl() 276 paramStr.AppendFormat("struct %s *self, ", interfaceName_.c_str()); in EmitProxyMethodImpl() 279 EmitInterfaceMethodParameter(param, paramStr, ""); in EmitProxyMethodImpl() 281 paramStr.Append(", "); in EmitProxyMethodImpl() 285 paramStr.Append(")"); in EmitProxyMethodImpl() 286 sb.Append(SpecificationParam(paramStr, TAB)); in EmitProxyMethodImpl()
|
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
D | ast_parameter.cpp | 58 StringBuilder paramStr; in EmitCParameter() local 60 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_IN).c_str(), name_.c_str()); in EmitCParameter() 62 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_OUT).c_str(), name_.c_str()); in EmitCParameter() 65 paramStr.AppendFormat(", uint32_t %sLen", name_.c_str()); in EmitCParameter() 67 return paramStr.ToString(); in EmitCParameter() 71 StringBuilder paramStr; in EmitCParameter() local 73 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_IN).c_str(), name_.c_str()); in EmitCParameter() 75 … paramStr.AppendFormat("%s %s", type_->EmitCType(TypeMode::PARAM_OUT).c_str(), name_.c_str()); in EmitCParameter() 77 paramStr.AppendFormat( in EmitCParameter() 79 return paramStr.ToString(); in EmitCParameter()
|