WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
stdstringutils.hpp File Reference
#include <string>
#include <array>
#include <vector>
#include "core/clockwerkerrors.h"

Go to the source code of this file.

Namespaces

namespace  warptwin
 Class to propagate CR3BP dynamics in characteristic units.

Functions

std::string warptwin::toUpper (const std::string &input)
 Function to convert a string to all upper case.
std::string warptwin::toLower (const std::string &input)
 Function to convert a string to all lower case.
bool warptwin::caseInsensitiveEqual (const std::string &in_a, const std::string &in_b)
 Function to compare two strings independent of case.
std::string warptwin::stringReplace (const std::string &source, const std::string &orig_str, const std::string &new_str)
 Replace the first element of a source string with a new element.
std::string warptwin::strip (const std::string &input)
 Removes leading and trailing whitespace characters from a string.
int warptwin::splitString (const std::string &text, const std::string &delimiter, std::vector< std::string > &tokens)
 Splits a string into a vector of substrings based on a specified string delimiter.
bool warptwin::isValidNumber (const std::string &s)
 Checks if the given string is a valid numeric representation.
template<typename T, long unsigned int N>
int warptwin::setArrayFromString (const std::string &s, std::array< T, N > &retval)
 Set a std::array from a string.
template<typename T>
int warptwin::setVectorFromString (const std::string &s, std::vector< T > &retval)
 Set a std::array from a string.