8 Stores a filename pattern. A pattern consists of a prefix and a suffix, and
9 can be applied to a body to form a complete filename. Either or both of the
10 prefix and suffix may be empty.
19 /** Constructs a pattern from a single string. The string must have exactly
20 one percent sign (%) to separate the prefix and suffix. */
21 Pattern(const std::string &);
23 /** Applies the pattern to a body string. */
24 std::string apply(const std::string &) const;
26 /** Applies a list of patterns to the same body. */
27 static std::list<std::string> apply_list(const std::list<Pattern> &, const std::string &);