utility/strutil.cpp File Reference

#include <string>
#include <iostream>
#include <vector>
#include "strutil.h"
Include dependency graph for strutil.cpp:

Functions

void tokenize (const string &str, const string &delimiters, vector< string > &tokens)
string & clean_type_name (string &arg)
std::string trim (const std::string myString, const string &delimiters)
std::string fix (const std::string userPath, const string &delimiters)
int testTrim ()
bool endswith (const string &full, const string &ending)

Function Documentation

string& clean_type_name ( string &  arg  ) 
bool endswith ( const string &  full,
const string &  ending 
)
std::string fix ( const std::string  myString,
const std::string &  delimiters = " \t\r\n" 
)

Fix the user-given path whenever possible

References c, and trim().

Here is the call graph for this function:

int testTrim (  ) 

References trim().

Here is the call graph for this function:

void tokenize ( const std::string &  str,
const std::string &  delimiters,
std::vector< std::string > &  tokens 
)

Splits given string into tokens

Referenced by ReadCell::addChannelMessage().

std::string trim ( const std::string  myString,
const std::string &  delimiters = " \t\r\n" 
)

trims the leading and trailing white spaces

Referenced by chopLine(), findModelType(), fix(), innerLoadXplot(), Function::reinit(), Func::reinit(), and testTrim().


Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1