32 std::min(directory.
size() + 1,
int64_t(
sizeof(dir_resolved))));
38 dir_resolved,
sizeof(dir_resolved), template_variables);
47 return std::string(dir_resolved);
53 std::min(max_len, path.
size());
69 buf,
sizeof(buf), template_variables);
80 std::string resolved_path = buf;
83 resolved_path = resolved_path + path.
substr(
len);
Functions and classes for evaluating template expressions in filepaths.
File and directory operations.
constexpr const char * c_str() const
static constexpr int64_t not_found
constexpr bool is_empty() const
constexpr int64_t size() const
constexpr StringRef substr(int64_t start, int64_t size) const
constexpr const char * data() const
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
std::string resolve_directory_path(StringRef directory)
std::string resolve_path(StringRefNull path, int64_t max_len)
void BKE_add_template_variables_general(bke::path_templates::VariableMap &variables, const ID *path_owner_id, const bke::BlenderProject *project)
int BLI_path_normalize_dir(char *dir, size_t dir_maxncpy) ATTR_NONNULL(1)
bke::BlenderProject * BKE_blender_project_get(const Main *bmain)
void BLI_path_slash_native(char *path) ATTR_NONNULL(1)
Vector< bke::path_templates::Error > BKE_path_apply_template(char *path, int path_maxncpy, const bke::path_templates::VariableMap &template_variables)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
int BLI_path_normalize(char *path) ATTR_NONNULL(1)