|
|
This function is called for every single char within the string if the escape char is QChar::null. It should determine whether the string starting at pos within str is a valid macro and return the substitution value for it if so. - Parameters:
-
| str |
the input string |
| pos |
the offset within str |
| ret |
return value: the string to substitute for the macro |
- Returns:
-
if greater than zero, the number of chars at
pos in str to substitute with ret (i.e., a valid macro was found). if less than zero, subtract this value from pos (to skip a macro, i.e., substitute it with itself). zero requests no special action. |