|
vector< string > | nnp::split (std::string const &input, char delimiter=' ') |
| Split string at each delimiter. More...
|
|
string | nnp::trim (std::string const &line, std::string const &whitespace=" \t") |
| Remove leading and trailing whitespaces from string. More...
|
|
string | nnp::reduce (std::string const &line, std::string const &whitespace=" \t", std::string const &fill=" ") |
| Replace multiple whitespaces with fill. More...
|
|
string | nnp::pad (string const &input, size_t num, char fill, bool right) |
|
string | nnp::strpr (const char *format,...) |
| String version of printf function. More...
|
|
string | nnp::cap (std::string word) |
| Capitalize first letter of word. More...
|
|
vector< string > | nnp::createFileHeader (vector< string > const &title, vector< size_t > const &colSize, vector< string > const &colName, vector< string > const &colInfo, char const &commentChar) |
|
void | nnp::appendLinesToFile (std::ofstream &file, std::vector< std::string > const lines) |
| Append multiple lines of strings to open file stream. More...
|
|
void | nnp::appendLinesToFile (FILE *const &file, std::vector< std::string > const lines) |
| Append multiple lines of strings to open file pointer. More...
|
|
map< size_t, vector< double > > | nnp::readColumnsFromFile (string fileName, vector< size_t > columns, char comment) |
|
double | nnp::pow_int (double x, int n) |
| Integer version of power function, "fast exponentiation algorithm". More...
|
|