aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-string.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/functions-string.cxx')
-rw-r--r--libbuild2/functions-string.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/functions-string.cxx b/libbuild2/functions-string.cxx
index b332efa..367923f 100644
--- a/libbuild2/functions-string.cxx
+++ b/libbuild2/functions-string.cxx
@@ -119,14 +119,16 @@ namespace build2
};
// $size(<strings>)
+ // $size(<string-set>)
// $size(<string-map>)
// $size(<string>)
//
- // First two forms: return the number of elements in the sequence.
+ // First three forms: return the number of elements in the sequence.
//
- // Third form: return the number of characters (bytes) in the string.
+ // Fourth form: return the number of characters (bytes) in the string.
//
f["size"] += [] (strings v) {return v.size ();};
+ f["size"] += [] (set<string> v) {return v.size ();};
f["size"] += [] (map<string, string> v) {return v.size ();};
f["size"] += [] (string v) {return v.size ();};