Lines Matching refs:path

34  * path abstraction class - modelled after C++17's filesystem::path
186 struct path {
194 path() {}
195 path(std::string const& in) : contents(make_native(in)) {}
196 path(const char* in) : contents(make_native(std::string(in))) {}
199 path& operator+=(path const& in);
200 path& operator+=(std::string const& in);
201 path& operator+=(const char* in);
204 path& operator/=(path const& in);
205 path& operator/=(std::string const& in);
206 path& operator/=(const char* in);
209 path operator+(path const& in) const;
210 path operator+(std::string const& in) const;
211 path operator+(const char* in) const;
214 path operator/(path const& in) const;
215 path operator/(std::string const& in) const;
216 path operator/(const char* in) const;
219 path parent_path() const; // Everything before the last path separator, if there is one.
220 bool has_parent_path() const; // True if the path contains more than just a filename.
221 path filename() const; // Everything after the last path separator.
222 path extension() const; // The file extension, if it has one.
223 path stem() const; // The filename minus the extension.
226 path& replace_filename(path const& replacement);
236 bool operator==(path const& other) const noexcept { return contents == other.contents; }
237 bool operator!=(path const& other) const noexcept { return !(*this == other); }
244 fs::path fixup_backslashes_in_path(fs::path const& in_path);
246 int create_folder(path const& path);
247 int delete_folder(path const& folder);
251 explicit FolderManager(path root_path, std::string name) noexcept;
259 path write_manifest(std::string const& name, std::string const& contents);
267 // copy file into this folder with name `new_name`. Returns the full path of the file that was copied
268 path copy_file(path const& file, std::string const& new_name);
271 path location() const { return folder; }
276 path folder;
356 explicit LibraryWrapper(fs::path const& lib_path) noexcept : lib_path(lib_path) {
399 fs::path lib_path;
598 BUILDER_VALUE(ManifestICD, fs::path, lib_path, {})
633 BUILDER_VALUE(LayerDescription, fs::path, lib_path, {})
789 // find application path + name. Path cannot be longer than 1024, returns NULL if it is greater than that.