OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
string_utilities.h File Reference
#include "pch.h"

Go to the source code of this file.

Namespaces

namespace  opennn
 

Enumerations

enum  opennn::DateFormat { opennn::AUTO , opennn::DMY , opennn::MDY , opennn::YMD }
 

Functions

void opennn::prepare_line (string &)
 
Index opennn::count_non_empty_lines (const filesystem::path &)
 
Index opennn::count_tokens (const string &, const string &)
 
vector< string > opennn::get_tokens (const string &, const string &)
 
vector< string > opennn::tokenize (const string &)
 
vector< string > opennn::convert_string_vector (const vector< vector< string > > &, const string &)
 
VectorR opennn::to_type_vector (const string &, const string &)
 
bool opennn::is_numeric_string (const string &)
 
bool opennn::is_date_time_string (const string &)
 
time_t opennn::date_to_timestamp (const string &, Index=0, const DateFormat &format=AUTO)
 
void opennn::replace_all_appearances (string &, const string &, const string &)
 
void opennn::replace_all_word_appearances (string &, const string &, const string &)
 
void opennn::trim (string &)
 
void opennn::normalize_csv_line (string &)
 
void opennn::erase (string &, char)
 
void opennn::replace_first_and_last_char_with_missing_label (string &, char, const string &, const string &)
 
string opennn::get_trimmed (const string &)
 
bool opennn::has_numbers (const vector< string > &)
 
void opennn::replace (string &, const string &, const string &)
 
void opennn::replace_double_char_with_label (string &, const string &, const string &)
 
void opennn::replace_substring_within_quotes (string &, const string &, const string &)
 
void opennn::display_progress_bar (const int &, const int &)
 
string opennn::get_time (float)
 
string opennn::get_first_word (const string &)
 
template<typename T>
string opennn::vector_to_string (const vector< T > &values, const string &separator=" ")
 
template<typename Derived>
string opennn::vector_to_string (const Eigen::DenseBase< Derived > &values, const string &separator=" ")
 
void opennn::string_to_vector (const string &input, VectorR &values)
 
template<typename T, size_t Rank>
string opennn::tensor_to_string (const TensorR< Rank > &values, const string &separator=" ")
 
template<typename T, size_t Rank>
void opennn::string_to_tensor (const string &input, TensorR< Rank > &values)
 
bool opennn::contains (const vector< string > &, const string &)