Home
last modified time | relevance | path

Searched refs:fpnp (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/SA/rust/
H A Dsa_rust_interface_code_emitter.cpp123 std::string SaRustInterfaceCodeEmitter::GeneratePath(const std::string &fpnp) const in GeneratePath()
125 size_t pos = fpnp.rfind(".."); in GeneratePath()
127 std::string path = TrimDot(fpnp); in GeneratePath()
134 std::string path = TrimDot(fpnp.substr(0, pos + 1)); in GeneratePath()
135 std::string file = TrimDot(fpnp.substr(pos)); in GeneratePath()
152 std::string SaRustInterfaceCodeEmitter::TrimDot(const std::string &fpnp) const in TrimDot()
154 if (fpnp.empty()) { in TrimDot()
159 int right = static_cast<int>(fpnp.length()) - 1; in TrimDot()
160 while ((fpnp[left] == ' ') || (fpnp[left] == '.')) { in TrimDot()
164 while ((fpnp[right] == ' ') || (fpnp[right] == '.')) { in TrimDot()
[all …]
H A Dsa_rust_interface_code_emitter.h44 std::string GeneratePath(const std::string &fpnp) const;
46 std::string TrimDot(const std::string &fpnp) const;
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/SA/cpp/
H A Dsa_cpp_interface_code_emitter.cpp27 std::string SaCppInterfaceCodeEmitter::GetFilePath(const std::string &fpnp) const in GetFilePath()
29 size_t pos = fpnp.find(".."); in GetFilePath()
34 return fpnp.substr(0, pos + 1); in GetFilePath()
37 std::string SaCppInterfaceCodeEmitter::GetFilePathNoPoint(const std::string &fpnp) const in GetFilePathNoPoint()
39 size_t pos = fpnp.find(".."); in GetFilePathNoPoint()
44 return fpnp.substr(0, pos); in GetFilePathNoPoint()
H A Dsa_cpp_interface_code_emitter.h40 std::string GetFilePath(const std::string &fpnp) const;
42 std::string GetFilePathNoPoint(const std::string &fpnp) const;
/ohos5.0/foundation/ability/idl_tool/codegen/
H A Drust_code_emitter.cpp129 String RustCodeEmitter::TrimDot(const String& fpnp) in TrimDot() argument
131 if (fpnp.IsEmpty()) { in TrimDot()
136 int right = fpnp.GetLength() - 1; in TrimDot()
137 while (fpnp[left] == ' ' || fpnp[left] == '.') { in TrimDot()
141 while (fpnp[right] == ' ' || fpnp[right] == '.') { in TrimDot()
149 return fpnp.Substring(left, right + 1); in TrimDot()
152 String RustCodeEmitter::GeneratePath(const String& fpnp) in GeneratePath() argument
154 int pos = fpnp.IndexOf(".."); in GeneratePath()
156 String path = TrimDot(fpnp); in GeneratePath()
163 String path = TrimDot(fpnp.Substring(0, pos + 1)); in GeneratePath()
[all …]
H A Drust_code_emitter.h53 String TrimDot(const String& fpnp);
55 String GeneratePath(const String& fpnp);
57 bool AppendRealPath(StringBuilder& sb, const String& fpnp);
H A Dcpp_code_emitter.h182 String GetFilePath(const String& fpnp);
184 String GetFilePathNoPoint(const String& fpnp);
186 String GetNamespace(const String& fpnp);
H A Dcpp_code_emitter.cpp115 String CppCodeEmitter::GetFilePath(const String& fpnp) in GetFilePath() argument
117 int pos = fpnp.IndexOf(".."); in GetFilePath()
121 String res = fpnp.Substring(0, pos + 1); in GetFilePath()
125 String CppCodeEmitter::GetFilePathNoPoint(const String& fpnp) in GetFilePathNoPoint() argument
127 int pos = fpnp.IndexOf(".."); in GetFilePathNoPoint()
131 String res = fpnp.Substring(0, pos); in GetFilePathNoPoint()
135 String CppCodeEmitter::GetNamespace(const String& fpnp) in GetNamespace() argument
137 int pos = fpnp.IndexOf(".."); in GetNamespace()
139 return fpnp; in GetNamespace()
141 String res = fpnp.Substring(pos + 2); in GetNamespace()
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/codegen/
H A Dcode_emitter.cpp206 std::string CodeEmitter::GetNamespace(const std::string &fpnp) const in GetNamespace()
208 size_t pos = fpnp.find(".."); in GetNamespace()
210 return fpnp; in GetNamespace()
213 return fpnp.substr(pos + strlen("..")); in GetNamespace()
H A Dcode_emitter.h124 std::string GetNamespace(const std::string &fpnp) const;