10#define HALSTDSTRING_H_
21 TString RemoveUnits(TString
string);
27 TString GetUnits(TString
string);
35 std::vector<TString> ExplodeString(TString
string, Char_t delimiter, Bool_t keepEmpty = kFALSE);
44 std::vector<std::pair<TString, TString>> ConvertMainArgs(
int argc,
char* argv[]);
52 void ReplaceInFile(TString path, TString newPath, TString oldPattern, TString newPattern);
61 void ReplaceInFile(TString path,
63 std::initializer_list<TString> oldPattern,
64 std::initializer_list<TString> newPattern);
77 TString RoundToString(Double_t value, Int_t precission = 0, Option_t* opt =
"");
87 TString RoundToString(Int_t value, Int_t precission = 0, Option_t* opt =
"");
97 TString RoundToString(UInt_t value, Int_t precission = 0, Option_t* opt =
"");
107 TString RoundToString(ULong_t value, Int_t precission = 0, Option_t* opt =
"");
117 TString RoundToString(ULong64_t value, Int_t precission = 0, Option_t* opt =
"");
124 TString RemoveString(TString text, TString pattern);
132 TString RemoveNChars(TString str, Int_t n, Char_t opt =
'b');
139 std::vector<TString> GetLinesFromFile(TString file, Bool_t skipEmpty = kTRUE);
148 std::vector<TString> FindBrackets(TString& option, Bool_t remove = kFALSE, Bool_t skipEmpty = kTRUE);
160 Bool_t FindParam(TString& option, TString pattern, Bool_t remove = kFALSE);
168 Int_t FindParam2(TString& option, TString pattern, Bool_t remove = kFALSE);
176 Bool_t FindExpressionSingleValue(TString& expression, Int_t& val, Bool_t remove);
185 Bool_t FindExpressionTwoValues(TString& expression, Int_t& val1, Int_t& val2, Bool_t remove);
193 Bool_t FindExpressionTwoFloats(TString& expression, Double_t& val1, Double_t& val2, Bool_t remove);