diff options
Diffstat (limited to 'libbuild2/functions-string.cxx')
-rw-r--r-- | libbuild2/functions-string.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/functions-string.cxx b/libbuild2/functions-string.cxx index 18a4ed6..4a03a5e 100644 --- a/libbuild2/functions-string.cxx +++ b/libbuild2/functions-string.cxx @@ -83,6 +83,12 @@ namespace build2 // f["size"] += [] (strings v) {return v.size ();}; + // $size(<string>) + // + // Return the number of characters (bytes) in the string. + // + f["size"] += [] (string v) {return v.size ();}; + // $sort(<strings> [, <flags>]) // // Sort strings in ascending order. |