aboutsummaryrefslogtreecommitdiff
path: root/build2/utility
diff options
context:
space:
mode:
Diffstat (limited to 'build2/utility')
-rw-r--r--build2/utility7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/utility b/build2/utility
index 3ecceed..a636c01 100644
--- a/build2/utility
+++ b/build2/utility
@@ -278,6 +278,13 @@ namespace build2
const cstrings&,
bool = false);
+ // Apply the specified substitution (stem) to a '*'-pattern. If pattern
+ // is NULL, then return the stem itself. Assume the pattern is valid,
+ // i.e., contains a single '*' character.
+ //
+ string
+ apply_pattern (const char* stem, const string* pattern);
+
// Parse version string in the X.Y.Z[-{a|b}N] to a version integer in the
// AABBCCDD form, where:
//