OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
StringUtils.hpp File Reference
#include <cstring>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  OpenMD
 This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.
 

Enumerations

enum class  StringState : char {
  SlashOC , StarIC , SingleLineComment , MultiLineComment ,
  NotAComment
}
 

Functions

std::string OpenMD::UpperCase (const std::string &S)
 Converts a string to UPPER CASE.
 
int OpenMD::findBegin (std::istream &theStream, const char *startText)
 Finds the location of the string "begin <startText>" in an input stream.
 
int OpenMD::isEndLine (char *line)
 discovers whether or not the line contains the "end" token
 
bool OpenMD::CaseInsensitiveEquals (const char ch1, const char ch2)
 
size_t OpenMD::CaseInsensitiveFind (const std::string &str1, const std::string &str2)
 
template<typename T >
std::string OpenMD::toString (const T &v)
 Convert a variable to a string.
 
template<typename T >
OpenMD::lexi_cast (const std::string &str)
 
template<typename T >
bool OpenMD::isType (const std::string &str)
 
bool OpenMD::isInteger (const std::string &str)
 
std::string OpenMD::OpenMD_itoa (int value, unsigned int base)
 
std::string OpenMD::getPrefix (const std::string &str)
 
template<class ContainerType >
std::string OpenMD::containerToString (const ContainerType &cont)
 
template<typename InputIt , typename OutputIt >
constexpr OutputIt OpenMD::copyWithoutComments (InputIt first, InputIt last, OutputIt out)
 

Detailed Description

Author
Dan Gezelter
Date
10/18/2004
Version
1.0

Definition in file StringUtils.hpp.