#include <string>
#include <qrinvoice/util/creditor_reference_util.hpp>
// ...
std::string normalized_creditor_reference = qrinvoice::creditor_reference_util::normalize_creditor_reference("RF45 1234 5123 45");
std::cout << normalized_creditor_reference << std::endl;
// prints "RF451234512345"