Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
RegexStrings.cpp File Reference
#include "MantidKernel/RegexStrings.h"
#include "MantidKernel/Logger.h"
#include "MantidKernel/Strings.h"
#include <algorithm>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Kernel
 
namespace  Mantid::Kernel::Strings
 Holds support functions for strings.
 

Functions

template<>
DLLExport int Mantid::Kernel::Strings::findComp (std::istream &fh, const boost::regex &Re, std::string &Out)
 Finds the start of the tally. More...
 
template<typename T >
int Mantid::Kernel::Strings::findComp (std::istream &fh, const boost::regex &Re, T &Out)
 Finds the start of the tally. More...
 
MANTID_KERNEL_DLL int Mantid::Kernel::Strings::findPattern (std::istream &, const boost::regex &, std::string &)
 Finds a pattern in a file. More...
 
template<typename T >
int Mantid::Kernel::Strings::StrComp (const char *Text, const boost::regex &Re, T &Aout, const int compNum)
 Find the match in regular expression and places number in Aout. More...
 
template<typename T >
int Mantid::Kernel::Strings::StrComp (const std::string &Text, const boost::regex &Re, T &Aout, const int compNum)
 Find the match in regular expression and places number in Aout. More...
 
template<typename T >
int Mantid::Kernel::Strings::StrFullCut (std::string &, const boost::regex &, std::vector< T > &)
 Cut out the searched section and returns component. More...
 
template<typename T >
int Mantid::Kernel::Strings::StrFullCut (std::string &, const boost::regex &, T &, const int=-1)
 Cut out the searched section and returns component. More...
 
template<>
int Mantid::Kernel::Strings::StrFullCut (std::string &Text, const boost::regex &Re, std::vector< std::string > &Aout)
 Find the match, return the disected items: Then remove the whole of the match The regexpression must have one ( ) around the area to extract This is specialised for string and thus does not need a convert. More...
 
template<typename T >
int Mantid::Kernel::Strings::StrFullSplit (const std::string &, const boost::regex &, std::vector< T > &)
 Split a line searched parts. More...
 
MANTID_KERNEL_DLL int Mantid::Kernel::Strings::StrLook (const std::string &, const boost::regex &)
 Find is a pattern matches. More...
 
MANTID_KERNEL_DLL std::vector< std::string > Mantid::Kernel::Strings::StrParts (std::string, const boost::regex &)
 Split a line into component parts. More...
 
template<typename T >
int Mantid::Kernel::Strings::StrSingleSplit (const std::string &, const boost::regex &, std::vector< T > &)
 Split a line searched parts. More...
 
template<>
int Mantid::Kernel::Strings::StrSingleSplit (const std::string &text, const boost::regex &Re, std::vector< std::string > &Aout)
 Find the match, return the disected items The regexpression must have ( ) around the area to extract. More...