Go to the source code of this file.
- Author
- Bernard Heymann
- Date
- 20160911 - 20180330
Definition in file string_util.cpp.
◆ base()
| string base |
( |
string & |
filename | ) |
|
◆ command_line()
| string command_line |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ extension()
| string extension |
( |
string |
filename | ) |
|
◆ insert()
| string insert |
( |
string & |
filename, |
|
|
string |
ins |
|
) |
| |
◆ local_time()
◆ parameter_file_path()
| string parameter_file_path |
( |
string & |
filename | ) |
|
Finds the parameter file path.
- Parameters
-
| &filename | the parameter filename. |
- Returns
- Bstring the full path and file name.
The parameter file path should primarily be defined in the environmental
variable "BPARAM".
Otherwise a default is used which may or may not be valid.
The string returned has a length containing the path plus one byte.
Definition at line 69 of file string_util.cpp.
◆ parse_integer_vector()
| vector<long> parse_integer_vector |
( |
string |
vecstr | ) |
|
◆ parse_real_vector()
| vector<double> parse_real_vector |
( |
string |
vecstr | ) |
|
◆ replace_extension()
| string replace_extension |
( |
string & |
filename, |
|
|
string |
ext |
|
) |
| |
◆ split() [1/2]
| vector<string> split |
( |
const string & |
s | ) |
|
Splits a string on whitespace.
- Parameters
-
- Returns
- vector<string> vector of strings.
Definition at line 92 of file string_util.cpp.
◆ split() [2/2]
| vector<string> split |
( |
const string & |
s, |
|
|
char |
delim |
|
) |
| |
Splits a string using a given delimiter.
- Parameters
-
| &s | string to be split. |
| delim | delimiter. |
- Returns
- vector<string> vector of strings.
Definition at line 106 of file string_util.cpp.
◆ verbose