I'm creating an API, and I want to overload a function for strip
:
QString MyClass::strip();
QString MyClass::strip(QRegularExpression open);
QString MyClass::strip(QRegularExpression close);
QString MyClass::strip(QRegularExpression open, QRegularExpression close);
Obviously the second and third conflict.
What is the recommended style for C++ and Qt programmers to restructure this?
stripOpen
andstripClose
.