aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-09 23:12:31 +0000
committerlloyd <[email protected]>2008-11-09 23:12:31 +0000
commit7eeb28e05d273abd0f634cd2b3dc996fa0feb4d2 (patch)
treee1edf50a3fa37ed843ac87eceee920945f5894e4
parent6fe69ea63676e04df6ab1916564b02531c8ef602 (diff)
Add SCAN_Name::arg_count_between
-rw-r--r--src/utils/scan_name.h6
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
*/