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.
|
Functions | |
std::string | ConvertCamelCaseToSnakeCase (const std::string &rString) |
This method converts CamelCase to snake_case. More... | |
std::string | ConvertSnakeCaseToCamelCase (const std::string &rString) |
Convert snake_case to CamelCase. More... | |
std::string | ErasePartialString (const std::string &rMainString, const std::string &rToErase) |
Erase first occurrence of given substring from main string. More... | |
bool | ContainsPartialString (const std::string &rMainString, const std::string &rToCheck) |
Checks the existence of a substring from main string. More... | |
std::string | RemoveWhiteSpaces (const std::string &rString) |
This method removes whitespaces. More... | |
std::vector< std::string > | SplitStringByDelimiter (const std::string &rString, const char Delimiter) |
This method splits a string by a delimiter. More... | |
std::string | 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... | |
template<class TClass > | |
static void | PrintDataWithIdentation (std::ostream &rOStream, const TClass &rThisClass, const std::string Identation="\t") |
Prints the data of an object of type TClass to the given output stream with indentation. More... | |
bool Kratos::StringUtilities::ContainsPartialString | ( | const std::string & | rMainString, |
const std::string & | rToCheck | ||
) |
Checks the existence of a substring from main string.
rMainString | The string to be transformed |
rToCheck | The string to search |
std::string Kratos::StringUtilities::ConvertCamelCaseToSnakeCase | ( | const std::string & | rString | ) |
This method converts CamelCase to snake_case.
rString | The string to be transformed into snake_case |
std::string Kratos::StringUtilities::ConvertSnakeCaseToCamelCase | ( | const std::string & | rString | ) |
Convert snake_case to CamelCase.
rString | String to convert. |
If | the input string
|
std::string Kratos::StringUtilities::ErasePartialString | ( | const std::string & | rMainString, |
const std::string & | rToErase | ||
) |
Erase first occurrence of given substring from main string.
rMainString | The string to be transformed |
rToErase | The string to remove |
|
static |
Prints the data of an object of type TClass to the given output stream with indentation.
rOStream | The output stream where the data will be printed. |
rThisClass | The object of type TClass whose data will be printed. |
Identation | (optional) The string used for the indentation. Default is four spaces. |
std::string Kratos::StringUtilities::RemoveWhiteSpaces | ( | const std::string & | rString | ) |
This method removes whitespaces.
rString | The string to be transformed |
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.
rInputString | The input string to replace the substring |
rStringToBeReplaced | The original string to be replaced |
rStringToReplace | The string which replaces the substring |
std::vector< std::string > Kratos::StringUtilities::SplitStringByDelimiter | ( | const std::string & | rString, |
const char | Delimiter | ||
) |
This method splits a string by a delimiter.
rString | The string to be splitted |
Delimiter | The delimiter by which the string is to be splitted |