codac 1.5.6
Loading...
Searching...
No Matches
codac_Tools.h
Go to the documentation of this file.
1
12#ifndef __CODAC_TOOLS_H__
13#define __CODAC_TOOLS_H__
14
15#include <string>
16#include "codac_Interval.h"
17
18namespace codac
19{
24 class Tools
25 {
26 public:
27
38 static void replace_all(std::string& input, const std::string& search, const std::string& format);
39
46 static void trim(std::string& str);
47
54 static double rand_in_bounds(const Interval& intv);
55 };
56}
57
58#endif
Basic features provided here in order to avoid overkill dependencies.
Definition codac_Tools.h:25
static double rand_in_bounds(const Interval &intv)
Returns a random number inside an interval.
static void trim(std::string &str)
Trims a string (removes both leading and trailing whitespace from the string)
static void replace_all(std::string &input, const std::string &search, const std::string &format)
Replaces all occurrences of the search string in the input with the format string....
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9