Home
last modified time | relevance | path

Searched refs:packageName (Results 1 - 10 of 10) sorted by relevance

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
H A Dcpp_code_emitter.cpp144 std::string CppCodeEmitter::EmitPackageToNameSpace(const std::string &packageName) const in EmitPackageToNameSpace()
146 if (packageName.empty()) { in EmitPackageToNameSpace()
147 return packageName; in EmitPackageToNameSpace()
151 std::vector<std::string> namespaceVec = EmitCppNameSpaceVec(packageName); in EmitPackageToNameSpace()
187 std::string CppCodeEmitter::EmitNamespace(const std::string &packageName) const in EmitNamespace()
189 if (packageName.empty()) { in EmitNamespace()
190 return packageName; in EmitNamespace()
193 size_t index = packageName.rfind('.'); in EmitNamespace()
194 return index != std::string::npos ? StringHelper::SubStr(packageName, 0, index) : packageName; in EmitNamespace()
[all...]
H A Dcpp_code_emitter.h47 std::string EmitPackageToNameSpace(const std::string &packageName) const;
55 std::string EmitNamespace(const std::string &packageName) const;
H A Dcode_emitter.cpp130 std::string CodeEmitter::PackageToFilePath(const std::string &packageName) const in PackageToFilePath()
132 std::vector<std::string> packageVec = StringHelper::Split(Options::GetInstance().GetSubPackage(packageName), "."); in PackageToFilePath()
H A Dcode_emitter.h90 std::string PackageToFilePath(const std::string &packageName) const;
/drivers/hdf_core/framework/tools/hdi-gen/preprocessor/
H A Dpreprocessor.h69 static bool CheckPackageName(const std::string &filePath, const std::string &packageName);
H A Dpreprocessor.cpp27 sb.AppendFormat("packageName:%s\n", packageName_.c_str()); in Dump()
325 bool Preprocessor::CheckPackageName(const std::string &filePath, const std::string &packageName) in CheckPackageName() argument
327 std::string pkgToPath = Options::GetInstance().GetPackagePath(packageName); in CheckPackageName()
/drivers/hdf_core/framework/tools/hdi-gen/ast/
H A Dast.cpp65 void AST::SetPackageName(const std::string &packageName) in SetPackageName() argument
67 packageName_ = packageName; in SetPackageName()
H A Dast.h98 void SetPackageName(const std::string &packageName);
/drivers/hdf_core/framework/tools/hdi-gen/parser/
H A Dparser.h70 bool ParserPackageInfo(const std::string &packageName);
188 bool CheckPackageName(const std::string &filePath, const std::string &packageName) const;
H A Dparser.cpp141 std::string packageName = token.value; in ParsePackage() local
151 if (packageName.empty()) { in ParsePackage()
154 } else if (!CheckPackageName(lexer_.GetFilePath(), packageName)) { in ParsePackage()
156 "package name '%s' does not match file apth '%s'.", packageName.c_str(), lexer_.GetFilePath().c_str())); in ParsePackage()
160 if (!ParserPackageInfo(packageName)) { in ParsePackage()
161 LogError(StringHelper::Format("parse package '%s' infomation failed.", packageName.c_str())); in ParsePackage()
168 bool Parser::ParserPackageInfo(const std::string &packageName) in ParserPackageInfo() argument
171 if (!std::regex_match(packageName.c_str(), result, RE_PACKAGE)) { in ParserPackageInfo()
1738 bool Parser::CheckPackageName(const std::string &filePath, const std::string &packageName) const in CheckPackageName()
1740 std::string pkgToPath = Options::GetInstance().GetPackagePath(packageName); in CheckPackageName()
[all...]

Completed in 8 milliseconds