+/// Returns the filter ID without the filter index
+static std::string pureFilterID(const std::string& theID)
+{
+ // remove from aPure "_" + number + "_" starting part
+ if (theID.size() > 3 && theID[0] == '_') {
+ int aNumDigits = 0;
+ while(theID[aNumDigits + 1] < '9' && theID[aNumDigits + 1] > '0')
+ aNumDigits++;
+ if (aNumDigits && theID[aNumDigits + 1] == '_') {
+ return theID.substr(aNumDigits + 2);
+ }
+ }
+ return theID;
+}
+