StochHMM  v0.34
Flexible Hidden Markov Model C++ Library and Application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions
text.h File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  StochHMM::stringList
 Stringlist is an list of strings that contains parsed comments and can be used to split string or remove whitespace from a string. More...

Namespaces

namespace  StochHMM
 traceback_path.h

Macros

#define SIZE_MAX   ((size_t)-1)

Functions

stringList & StochHMM::splitString (const std::string &txt, const std::string &delimiters)
 Splits string using delimiters and return stringList.
void StochHMM::clear_whitespace (std::string &input, std::string white)
void StochHMM::replaceChar (std::string &txt, char ch, char replaceCh)
void StochHMM::removeLeadingWS (std::string &txt, const std::string &ws)
std::string StochHMM::parseComment (std::string &txt, char commentChar)
 Find first comment character and then return everything following the character.
void StochHMM::getKeyValue (std::string &txt, std::string &key, std::string &value)
std::string StochHMM::join (std::vector< int > &input, char c)
std::string StochHMM::join (std::vector< size_t > &input, char c)
std::string StochHMM::join (std::vector< short > &input, char c)
std::string StochHMM::join (std::vector< double > &input, char c)
std::string StochHMM::join (std::vector< std::string > &input, char c)
std::string StochHMM::int_to_string (int input)
std::string StochHMM::int_to_string (size_t input)
std::string StochHMM::double_to_string (double input)
std::string StochHMM::double_to_string (float input)
bool StochHMM::stringToInt (std::string &txt, int &val)
bool StochHMM::stringToInt (std::string &txt, size_t &val)
bool StochHMM::stringToDouble (std::string &txt, double &val)
bool StochHMM::isNumeric (const std::string &str)
void StochHMM::split_line (std::vector< std::string > &line, std::string &input)
stringList StochHMM::extractTag (std::string &txt)
std::pair< size_t, size_t > StochHMM::balanced_brackets (const std::string &text, const std::string &brackets)
std::pair< size_t, size_t > StochHMM::balanced_brackets (const std::string &text, const std::string &brackets, size_t offset)
std::string StochHMM::slurpFile (std::string &file)

Macro Definition Documentation

#define SIZE_MAX   ((size_t)-1)

Definition at line 37 of file text.h.