diff options
author | lloyd <[email protected]> | 2008-11-09 23:12:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-09 23:12:31 +0000 |
commit | 7eeb28e05d273abd0f634cd2b3dc996fa0feb4d2 (patch) | |
tree | e1edf50a3fa37ed843ac87eceee920945f5894e4 | |
parent | 6fe69ea63676e04df6ab1916564b02531c8ef602 (diff) |
Add SCAN_Name::arg_count_between
-rw-r--r-- | src/utils/scan_name.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/scan_name.h b/src/utils/scan_name.h index 934228dc8..61ee8a4f1 100644 --- a/src/utils/scan_name.h +++ b/src/utils/scan_name.h @@ -35,6 +35,12 @@ class SCAN_Name u32bit arg_count() const { return name.size() - 1; } /** + @return if the number of arguments is between lower and upper + */ + bool arg_count_between(u32bit lower, u32bit upper) + { return ((arg_count() >= lower) && (arg_count() <= upper)); } + + /** @param i which argument @return the ith argument */ |