Changeset 1186 for cpp/frams/param
- Timestamp:
- 11/20/22 20:32:43 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.cpp
r1184 r1186 909 909 //if (have == 1) return false; //not sure? 910 910 if ((have >= 1) && (!((a == 0) || (a == 1)))) return false; // 'min' for string (single/multi) can be only 0 or 1 911 if ((have >= 2) && (b < 0)) return false; // max=0 means unlimited, max<0is not allowed911 if ((have >= 2) && (b < -1)) return false; // max=-1 means unlimited, >=0 is max len, max<-1 is not allowed 912 912 } 913 913 break; … … 1162 1162 if (sscanf(t, "%d %d", &mn, &mx) == 2) //using getMinMax would also get default value, which is not needed here 1163 1163 { 1164 if ((x.length() > mx) && (mx > 0))1164 if ((x.length() > mx) && (mx >= 0)) 1165 1165 { 1166 1166 vs = x.substr(0, mx);
Note: See TracChangeset
for help on using the changeset viewer.