Lines Matching defs:fpnp
129 String RustCodeEmitter::TrimDot(const String& fpnp)
131 if (fpnp.IsEmpty()) {
136 int right = fpnp.GetLength() - 1;
137 while (fpnp[left] == ' ' || fpnp[left] == '.') {
141 while (fpnp[right] == ' ' || fpnp[right] == '.') {
149 return fpnp.Substring(left, right + 1);
152 String RustCodeEmitter::GeneratePath(const String& fpnp)
154 int pos = fpnp.IndexOf("..");
156 String path = TrimDot(fpnp);
163 String path = TrimDot(fpnp.Substring(0, pos + 1));
164 String file = TrimDot(fpnp.Substring(pos));