KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Namespaces | Functions
string_utilities.cpp File Reference
#include <algorithm>
#include <iostream>
#include <cctype>
#include <sstream>
#include "utilities/string_utilities.h"
Include dependency graph for string_utilities.cpp:

Namespaces

 Kratos
 REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
 
 Kratos::StringUtilities
 

Functions

std::string Kratos::StringUtilities::ConvertCamelCaseToSnakeCase (const std::string &rString)
 This method converts CamelCase to snake_case. More...
 
std::string Kratos::StringUtilities::ConvertSnakeCaseToCamelCase (const std::string &rString)
 Convert snake_case to CamelCase. More...
 
std::string Kratos::StringUtilities::ErasePartialString (const std::string &rMainString, const std::string &rToErase)
 Erase first occurrence of given substring from main string. More...
 
bool Kratos::StringUtilities::ContainsPartialString (const std::string &rMainString, const std::string &rToCheck)
 Checks the existence of a substring from main string. More...
 
std::string Kratos::StringUtilities::RemoveWhiteSpaces (const std::string &rString)
 This method removes whitespaces. More...
 
std::vector< std::string > Kratos::StringUtilities::SplitStringByDelimiter (const std::string &rString, const char Delimiter)
 This method splits a string by a delimiter. More...
 
std::string Kratos::StringUtilities::ReplaceAllSubstrings (const std::string &rInputString, const std::string &rStringToBeReplaced, const std::string &rStringToReplace)
 This function replaces from a string all times a certain substring is repeated. More...