13#include "MantidKernel/DllConfig.h"
39 std::vector<std::vector<unsigned int>> parse(
const std::string &userString);
43 std::vector<std::string> separateComma(
const std::string &);
46 std::vector<std::vector<unsigned int>> separateColon(
const std::string &input);
49 std::vector<unsigned int> separateDelimiters(
const std::string &input,
const std::string &delimiters);
52 unsigned int toUInt(
const std::string &input);
54 bool Contains(
const std::string &input,
char ch);
58 void Tokenize(
const std::string &input,
const std::string &delimiter,
unsigned int &start,
unsigned int &end,
62 void parse(
const std::string &userString, std::vector<std::vector<unsigned int>> &numbers);
64 bool isValid(
const std::string &input, std::vector<std::string> &tokens);
66 void convertToNumbers(
const std::string &input,
const std::vector<std::string> &tokens,
unsigned int &start,
67 unsigned int &end,
unsigned int &step);
69 bool isValidStepSeparator(
const std::string &input,
const std::vector<std::string> &tokens);
This class parses a given string into vector of vectors of numbers.
bool isValid(const std::string &input, std::vector< std::string > &tokens)
validates the input string
Helper class which provides the Collimation Length for SANS instruments.