11 static bool try_replace_first_token(
const std::string& name,
12 std::string_view prefix,
18 static std::string replace_time_step_in_name(
const std::string& name,
unsigned int week);
19 std::pair<const std::vector<std::string>&,
const std::vector<std::string>&> rename_week_names(
21 const std::vector<std::string>& variables,
22 const std::vector<std::string>& contraintes)
const;
25 void rename_week_names(
27 const std::vector<std::string>& names,
28 std::unordered_map<
int, std::vector<std::string>>& container_names)
const;
30 using NamesByWeek = std::unordered_map<int, std::vector<std::string>>;
31 mutable NamesByWeek variables_names_;
32 mutable NamesByWeek constraints_names_;
33 mutable std::mutex rename_mutex_;