24 void Split(
const std::string& str,
25 const std::string& sep,
26 std::vector<std::string>& lst,
33 string::size_type ptr = str.find( substr );
34 if( ptr != string::npos )
35 str.replace( ptr, substr.length(), newstr );
36 return ptr != string::npos;
45 void service(
double tau,
double a,
double beta);
52 if( fwrite(ptr,len,
size_t(1),fdes) != 1 ) {
53 printf(
"wr_block: error writing to file\n" );
74 if( fread(ptr,len,
size_t(1),fdes) != 1 ) {
75 printf(
"rd_block: error reading from file\n" );
bool FindAndErase(string &str, const string &substr)
FILE * open_data(const char *fname, const char *mode, access_scheme scheme)
void trimTrailingWhiteSpace(string &str)
void service(double tau, double a, double beta)
void rd_block(void *ptr, size_t len, FILE *fdes)
void wr_block(const void *ptr, size_t len, FILE *fdes)
void Split(const string &str, const string &sep, vector< string > &lst, split_mode mode)
bool FindAndReplace(string &str, const string &substr, const string &newstr)