src/core/utils/text.cpp
std::string allpix::from_string_impl(std::string str, type_tag<std::string>) {
    str = trim(str);
    // If there are "" then we should take the whole string
    if(!str.empty() && (str.front() == '\"' || str.front() == '\'')) {
        if(str.find(str.front(), 1) != str.size() - 1) {
            throw std::invalid_argument("remaining data at end");
        }
        return str.substr(1, str.size() - 2);
    }
    // Otherwise read a single string
    return from_string_helper(str);
}
/**
 * If a pair of enclosing double quotation marks is found, the whole string within the quotation marks is returned.
 * Otherwise only the first part is read until whitespace is encountered.
 */
If a pair of enclosing double quotation marks is found, the whole string within the quotation marks is returned.
Otherwise only the first part is read until whitespace is encountered.
If a pair of enclosing double quotation marks is found the whole string within the quotation marks is returned . Otherwise only the first part is read until whitespace is encountered .
std::string allpix::from_string_impl(std::string str, type_tag<std::string>) {
    str = trim(str);
    if(!str.empty() && (str.front() == '\"' || str.front() == '\'')) {
        if(str.find(str.front(), 1) != str.size() - 1) {
            throw std::invalid_argument("remaining data at end");
        }
        return str.substr(1, str.size() - 2);
    }
    return from_string_helper(str);
}
std :: string allpix :: from_string_impl ( std :: string str , type_tag < std :: string > ) { str = trim ( str ) ; if ( ! str . empty ( ) && ( str . front ( ) == ' \" ' || str . front ( ) == ' \' ' ) ) { if ( str . find ( str . front ( ) , 1 ) != str . size ( ) - 1 ) { throw std :: invalid_argument ( " " ) ; } return str . substr ( 1 , str . size ( ) - 2 ) ; } return from_string_helper ( str ) ; }
If a pair of enclosing double quotation marks is found, the whole string within the quotation marks is returned.
If a pair of enclosing double quotation marks is found the whole string within the quotation marks is returned .
// If there are "" then we should take the whole string // Otherwise read a single string