Improve plot titles and layout adjustments

This commit is contained in:
Magne Sjaastad
2023-07-06 08:40:09 +02:00
committed by GitHub
parent 8e777bd987
commit aaecd846fd
19 changed files with 144 additions and 54 deletions

View File

@@ -22,6 +22,7 @@
#include <cctype>
#include <charconv>
#include <regex>
const std::string WHITESPACE = " \n\r\t\f\v";
@@ -259,3 +260,14 @@ int RiaStdStringTools::computeEditDistance( const std::string& x, const std::str
// The distance between the two full strings as the last value computed.
return T[m][n];
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::string RiaStdStringTools::removeHtmlTags( const std::string& s )
{
std::regex html_tags( "<.*?>" ); // Matches any HTML tag
std::string result = std::regex_replace( s, html_tags, "" );
return result;
}

View File

@@ -55,6 +55,8 @@ public:
static int computeEditDistance( const std::string& x, const std::string& y );
static std::string removeHtmlTags( const std::string& s );
private:
template <class Container>
static void splitByDelimiter( const std::string& str, Container& cont, char delimiter = ' ' );