9#include "MantidKernel/DllConfig.h"
11#include <boost/regex.hpp>
18template <
typename T> MANTID_KERNEL_DLL
int StrComp(
const char *,
const boost::regex &, T &,
const int = 0);
21template <
typename T> MANTID_KERNEL_DLL
int StrComp(
const std::string &,
const boost::regex &, T &,
const int = 0);
24MANTID_KERNEL_DLL
int StrLook(
const std::string &,
const boost::regex &);
27MANTID_KERNEL_DLL std::vector<std::string>
StrParts(std::string,
const boost::regex &);
30template <
typename T>
int StrFullSplit(
const std::string &,
const boost::regex &, std::vector<T> &);
32template <
typename T>
int StrFullSplit(
const char *,
const boost::regex &, std::vector<T> &);
34template <
typename T>
int StrSingleSplit(
const std::string &,
const boost::regex &, std::vector<T> &);
36template <
typename T>
int StrSingleSplit(
const char *,
const boost::regex &, std::vector<T> &);
39template <
typename T>
int StrFullCut(std::string &,
const boost::regex &, T &,
const int = -1);
41template <
typename T>
int StrFullCut(std::string &,
const boost::regex &, std::vector<T> &);
44template <
typename T> MANTID_KERNEL_DLL
int findComp(std::istream &,
const boost::regex &, T &);
47MANTID_KERNEL_DLL
int findPattern(std::istream &,
const boost::regex &, std::string &);
Holds support functions for strings.
MANTID_KERNEL_DLL int findPattern(std::istream &, const boost::regex &, std::string &)
Finds a pattern in a file.
MANTID_KERNEL_DLL int findComp(std::istream &, const boost::regex &, T &)
Find a compmonent in a Regex in a file.
MANTID_KERNEL_DLL int StrComp(const char *, const boost::regex &, T &, const int=0)
Find if a pattern matches a string.
int StrSingleSplit(const std::string &, const boost::regex &, std::vector< T > &)
Split a line searched parts.
int StrFullCut(std::string &, const boost::regex &, T &, const int=-1)
Cut out the searched section and returns component.
int StrFullSplit(const std::string &, const boost::regex &, std::vector< T > &)
Split a line searched parts.
MANTID_KERNEL_DLL int StrLook(const std::string &, const boost::regex &)
Find is a pattern matches.
MANTID_KERNEL_DLL std::vector< std::string > StrParts(std::string, const boost::regex &)
Split a line into component parts.
Helper class which provides the Collimation Length for SANS instruments.