String validation looks as follows. It is especially useful for validating user input before attempting to generate a QR Invoice.

#include <iostream>
#include <qrinvoice/model/validation.hpp>

// ...

if(qrinvoice::model::validation::util::is_valid_string("Robert Schneider AG")) {
// string does only contain permitted characters
// ...
}