Searched refs:fpnp (Results 1 – 10 of 10) sorted by relevance
123 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 …]
44 std::string GeneratePath(const std::string &fpnp) const;46 std::string TrimDot(const std::string &fpnp) const;
27 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()
40 std::string GetFilePath(const std::string &fpnp) const;42 std::string GetFilePathNoPoint(const std::string &fpnp) const;
129 String RustCodeEmitter::TrimDot(const String& fpnp) in TrimDot() argument131 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() argument154 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 …]
53 String TrimDot(const String& fpnp);55 String GeneratePath(const String& fpnp);57 bool AppendRealPath(StringBuilder& sb, const String& fpnp);
182 String GetFilePath(const String& fpnp);184 String GetFilePathNoPoint(const String& fpnp);186 String GetNamespace(const String& fpnp);
115 String CppCodeEmitter::GetFilePath(const String& fpnp) in GetFilePath() argument117 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() argument127 int pos = fpnp.IndexOf(".."); in GetFilePathNoPoint()131 String res = fpnp.Substring(0, pos); in GetFilePathNoPoint()135 String CppCodeEmitter::GetNamespace(const String& fpnp) in GetNamespace() argument137 int pos = fpnp.IndexOf(".."); in GetNamespace()139 return fpnp; in GetNamespace()141 String res = fpnp.Substring(pos + 2); in GetNamespace()
206 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()
124 std::string GetNamespace(const std::string &fpnp) const;