Regina 7.0 Calculation Engine
|
Provides various routines for use with C++ strings. More...
#include <string>
#include <vector>
#include "regina-core.h"
#include "utilities/stringutils-impl.h"
Namespaces | |
namespace | regina |
Contains the entire Regina calculation engine. | |
Functions | |
bool | regina::startsWith (const std::string &str, const std::string &prefix) |
Determines whether the given C++ string begins with the given prefix. More... | |
std::string | regina::stripWhitespace (const std::string &str) |
Strips all whitespace from the beginning and end of the given C++ string. More... | |
bool | regina::valueOf (const std::string &str, int8_t &dest) |
Converts the entire given string to an 8-bit integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, uint8_t &dest) |
Converts the entire given string to an unsigned 8-bit integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, short &dest) |
Converts the entire given string to a short integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, unsigned short &dest) |
Converts the entire given string to an unsigned short integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, int &dest) |
Converts the entire given string to an integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, unsigned &dest) |
Converts the entire given string to an unsigned integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, long &dest) |
Converts the entire given string to a long integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, unsigned long &dest) |
Converts the entire given string to an unsigned long integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, long long &dest) |
Converts the entire given string to a long long integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, unsigned long long &dest) |
Converts the entire given string to an unsigned long long integer and reports whether this conversion was successful. More... | |
template<bool supportInfinity> | |
bool | regina::valueOf (const std::string &str, IntegerBase< supportInfinity > &dest) |
Deprecated routine that converts the entire given string to an arbitrary precision integer and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, double &dest) |
Converts the entire given string to a double precision real number and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, bool &dest) |
Converts the entire given string to a boolean and reports whether this conversion was successful. More... | |
bool | regina::valueOf (const std::string &str, BoolSet &dest) |
Converts the entire given string to a set of booleans and reports whether this conversion was successful. More... | |
std::vector< std::string > | regina::basicTokenise (const std::string &str) |
Decomposes the given string into tokens. More... | |
template<class OutputIterator > | |
unsigned | regina::basicTokenise (OutputIterator results, const std::string &str) |
Deprecated routine to decompose a string into tokens. More... | |
std::string | regina::stringToToken (std::string str) |
Returns a token derived from the given string. More... | |
template<typename T > | |
std::string | regina::superscript (T value) |
Converts the given C++ integer into a unicode superscript string. More... | |
template<typename T > | |
std::string | regina::subscript (T value) |
Converts the given C++ integer into a unicode subscript string. More... | |
Provides various routines for use with C++ strings.