Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
LUPI_misc.cc File Reference
#include <limits.h>
#include <stdlib.h>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <ctype.h>
#include <nf_utilities.h>
#include <LUPI.hpp>

Go to the source code of this file.

Namespaces

namespace  LUPI
namespace  LUPI::Misc

Functions

void LUPI::deprecatedFunction (LUPI_maybeUnused std::string const &a_functionName, LUPI_maybeUnused std::string const &a_replacementName, LUPI_maybeUnused std::string const &a_asOf)
std::string LUPI::Misc::stripString (std::string const &a_string, bool a_left=true, bool a_right=true)
std::vector< std::string > LUPI::Misc::splitString (std::string const &a_string, char a_delimiter, bool a_strip=false)
std::vector< std::string > LUPI::Misc::splitString (std::string const &a_string, std::string const &a_delimiter, bool a_strip=false)
std::string LUPI::Misc::joinStrings (std::string const &a_sep, std::vector< std::string > a_strings)
std::string LUPI::Misc::replaceString (std::string const &a_string, std::string const &a_old, std::string const &a_new, bool a_all)
std::vector< std::string > LUPI::Misc::splitXLinkString (std::string const &a_string)
bool LUPI::Misc::stringToInt (std::string const &a_string, int &a_value)
bool LUPI::Misc::stringToSize_t (std::string const &a_string, std::size_t &a_value)
std::string LUPI::Misc::argumentsToString (char const *a_format,...)
std::string LUPI::Misc::doubleToString3 (char const *a_format, double a_value, bool a_reduceBits=false)
std::string LUPI::Misc::doubleToShortestString (double a_value, int a_significantDigits=15, int a_favorEFormBy=0)
void LUPI::Misc::printCommand (std::string const &a_indent, int a_argc, char **a_argv)