|
| MANTID_KERNEL_DLL int | Mantid::Kernel::Strings::confirmStr (const std::string &S, const std::string &fullPhrase) |
| | determine if a character group exists in a string
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::convert (const char *A, T &out) |
| | Convert a char* into a number.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::convert (const std::string &A, T &out) |
| | Convert a string into a number.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::convPartNum (const std::string &A, T &out) |
| | Takes a character string and evaluates the first [typename T] object.
|
| |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::Strings::endsWith (std::string const &str, std::string const &suffix) |
| | Checks if string ends with a suffix.
|
| |
| MANTID_KERNEL_DLL int | Mantid::Kernel::Strings::endsWithInt (const std::string &word) |
| | Get an int from the end of a word.
|
| |
| MANTID_KERNEL_DLL std::istream & | Mantid::Kernel::Strings::extractToEOL (std::istream &is, std::string &str) |
| | Extract a line from input stream, discarding any EOL characters encountered.
|
| |
| MANTID_KERNEL_DLL int | Mantid::Kernel::Strings::extractWord (std::string &Line, const std::string &Word, const int cnt=4) |
| | Get a word from a string.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::fullBlock (const std::string &A) |
| | strip pre/post spaces
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::getLine (std::istream &fh) |
| | Get a line and strip comments Use only for a single call.
|
| |
| MANTID_KERNEL_DLL void | Mantid::Kernel::Strings::getLine (std::istream &fh, std::string &Line) |
| | Get a line and strip comments Use within a loop.
|
| |
| MANTID_KERNEL_DLL int | Mantid::Kernel::Strings::getPartLine (std::istream &fh, std::string &Out, std::string &Excess, const int spc=256) |
| | get a part of a long line
|
| |
| float | Mantid::Kernel::Strings::getVAXnum (const float A) |
| | Convert a VAX number to x86 little eindien.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::getWord (std::istream &in, bool consumeEOL) |
| | Returns the next word in the stream.
|
| |
| MANTID_KERNEL_DLL int | Mantid::Kernel::Strings::isEmpty (const std::string &A) |
| | Determines if a string is only spaces.
|
| |
| MANTID_KERNEL_DLL int | Mantid::Kernel::Strings::isMember (const std::vector< std::string > &group, const std::string &candidate) |
| | checks if the candidate is the member of the group
|
| |
| template<typename ITERATOR_TYPE > |
| DLLExport std::string | Mantid::Kernel::Strings::join (ITERATOR_TYPE begin, ITERATOR_TYPE end, const std::string &separator, typename std::enable_if<!(std::is_same< typename std::iterator_traits< ITERATOR_TYPE >::iterator_category, std::random_access_iterator_tag >::value)>::type *=nullptr) |
| | Join a set or vector of (something that turns into a string) together into one string, separated by a string.
|
| |
| template<typename ITERATOR_TYPE > |
| DLLExport std::string | Mantid::Kernel::Strings::join (ITERATOR_TYPE begin, ITERATOR_TYPE end, const std::string &separator, typename std::enable_if<(std::is_same< typename std::iterator_traits< ITERATOR_TYPE >::iterator_category, std::random_access_iterator_tag >::value)>::type *=nullptr) |
| | Join a set or vector of (something that turns into a string) together into one string, separated by a string.
|
| |
| template<typename ITERATOR_TYPE > |
| DLLExport std::string | Mantid::Kernel::Strings::joinCompress (ITERATOR_TYPE begin, ITERATOR_TYPE end, const std::string &separator=",", const std::string &listSeparator="-") |
| | Join a set or vector of (something that turns into a string) together into one string, separated by a separator, adjacent items that are precisely 1 away from each other will be compressed into a list syntax e.g.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::loadFile (const std::string &filename) |
| | Loads the entire contents of a text file into a string.
|
| |
| template<typename Integer > |
| std::vector< std::vector< Integer > > | Mantid::Kernel::Strings::parseGroups (const std::string &str) |
| | Parses unsigned integer groups, e.g.
|
| |
| MANTID_KERNEL_DLL std::vector< int > | Mantid::Kernel::Strings::parseRange (const std::string &str, const std::string &elemSep=",", const std::string &rangeSep="-") |
| | Parses a number range, e.g.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::peekLine (std::istream &fh) |
| | Peek at a line without extracting it from the stream.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::randomString (const size_t len) |
| | Generates random alpha-numeric string.
|
| |
| MANTID_KERNEL_DLL void | Mantid::Kernel::Strings::readToEndOfLine (std::istream &in, bool ConsumeEOL) |
| | Eat everything from the stream until the next EOL.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::removeSpace (const std::string &CLine) |
| | strip all spaces
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::replace (const std::string &input, const std::string &find_what, const std::string &replace_with) |
| | Return a string with all matching occurence-strings.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::replaceAll (const std::string &input, const std::string &charStr, const std::string &substitute) |
| | Return a string with all occurrences of the characters in the input replaced by the replace string.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::replaceAll (std::string const &input, char const to_replace, char const substitute) |
| | Return a string with all occurrences of indicated character replaced by the new character.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::section (char *cA, T &out) |
| | Convert and cut a char*.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::section (std::string &A, T &out) |
| | Convert and cut a string.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::sectionMCNPX (std::string &A, T &out) |
| | Convert and cut a string for MCNPX.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::sectPartNum (std::string &A, T &out) |
| | Convert and cut a string.
|
| |
| template<typename T > |
| int | Mantid::Kernel::Strings::setValues (const std::string &Line, const std::vector< int > &Index, std::vector< T > &Out) |
| | Call to read in various values in position x1,x2,x3 from the line.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::shorten (const std::string &input, const size_t max_length) |
| | Converts long strings into "start ... end".
|
| |
| template<typename ITERATOR_TYPE > |
| DLLExport std::string | Mantid::Kernel::Strings::simpleJoin (ITERATOR_TYPE begin, ITERATOR_TYPE end, const std::string &separator) |
| | Join a set or vector of (something that turns into a string) together into one string, separated by a string.
|
| |
| MANTID_KERNEL_DLL bool | Mantid::Kernel::Strings::skipLine (const std::string &line) |
| | Determines if a string starts with a #.
|
| |
| MANTID_KERNEL_DLL size_t | Mantid::Kernel::Strings::split_path (const std::string &path, std::vector< std::string > &path_components) |
| | function parses a path, found in input string "path" and returns vector of the folders contributed into the path */
|
| |
| MANTID_KERNEL_DLL std::map< std::string, std::string > | Mantid::Kernel::Strings::splitToKeyValues (const std::string &input, const std::string &keyValSep="=", const std::string &listSep=",") |
| | Splits a string into key value pairs.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::strip (const std::string &A) |
| | strip pre/post spaces
|
| |
| MANTID_KERNEL_DLL void | Mantid::Kernel::Strings::stripComment (std::string &A) |
| | strip trailling comments
|
| |
| MANTID_KERNEL_DLL void | Mantid::Kernel::Strings::stripInPlace (std::string &A) |
| | strip pre/post spaces
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::strmakef (char const *const fmt,...) |
| | This is the constructor that std::string needed to have.
|
| |
| MANTID_KERNEL_DLL std::vector< std::string > | Mantid::Kernel::Strings::StrParts (const std::string &Ln) |
| | Split tring into spc deliminated components.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::toLower (const std::string &input) |
| | Converts string to all lowercase.
|
| |
| template<typename T > |
| std::string | Mantid::Kernel::Strings::toString (const std::set< T > &value) |
| | Convert a set to a string.
|
| |
| template<typename T > |
| std::string | Mantid::Kernel::Strings::toString (const std::vector< T > &value) |
| | Convert a vector to a string.
|
| |
| template<typename T > |
| std::string | Mantid::Kernel::Strings::toString (const T &value) |
| | Convert a number to a string.
|
| |
| MANTID_KERNEL_DLL std::string | Mantid::Kernel::Strings::toUpper (const std::string &input) |
| | Converts string to all uppercase.
|
| |
| template<template< typename T, typename A > class V, typename T , typename A > |
| int | Mantid::Kernel::Strings::writeFile (const std::string &Fname, const T &step, const V< T, A > &Y) |
| | Write a set of containers to a file.
|
| |
| template<template< typename T, typename A > class V, typename T , typename A > |
| int | Mantid::Kernel::Strings::writeFile (const std::string &Fname, const V< T, A > &X, const V< T, A > &Y) |
| | Write out the three vectors into a file of type dc 9.
|
| |
| template<template< typename T, typename A > class V, typename T , typename A > |
| int | Mantid::Kernel::Strings::writeFile (const std::string &Fname, const V< T, A > &X, const V< T, A > &Y, const V< T, A > &Err) |
| | Write out the three container into a file with column free-formated data in the form :
|
| |
| MANTID_KERNEL_DLL void | Mantid::Kernel::Strings::writeMCNPX (const std::string &Line, std::ostream &OX) |
| | Write file in standard MCNPX input form.
|
| |