mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve plot titles and layout adjustments
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 = ' ' );
|
||||
|
||||
Reference in New Issue
Block a user