stringutils.h File Reference

Provides various routines for use with C++ strings. More...

`#include <string>`
`#include "regina-core.h"`
`#include "utilities/stringutils-impl.h"`

## Classes

class | regina::NIntegerBase< supportInfinity >
| Represents an arbitrary precision integer. More...

## Namespaces

| regina
| Contains the entire Regina calculation engine.

## Functions

REGINA_API char * | regina::duplicate (const std::string &str)
| Creates a new C string that is a duplicate of the given C++ string. More...
REGINA_API bool | regina::startsWith (const std::string &str, const std::string &prefix)
| Determines whether the given C++ string begins with the given prefix. More...
REGINA_API std::string | regina::stripWhitespace (const std::string &str)
| Strips all whitespace from the beginning and end of the given C++ string. More...
REGINA_API 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...
REGINA_API 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...
REGINA_API 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...
REGINA_API 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...
template<bool supportInfinity>
REGINA_API bool | regina::valueOf (const std::string &str, NIntegerBase< supportInfinity > &dest)
| Converts the entire given string to an arbitrary precision integer and reports whether this conversion was successful. More...
REGINA_API 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...
REGINA_API 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...
REGINA_API bool | regina::valueOf (const std::string &str, NTriBool &dest)
| Converts the entire given string to a three-way boolean (true, false or unknown) and reports whether this conversion was successful. More...
REGINA_API bool | regina::valueOf (const std::string &str, NBoolSet &dest)
| Converts the entire given string to a set of booleans and reports whether this conversion was successful. More...
template<class OutputIterator >
REGINA_API unsigned | regina::basicTokenise (OutputIterator results, const std::string &str)
| Decomposes the given string into tokens. More...
REGINA_API std::string | regina::stringToToken (const char *str)
| Returns a token derived from the given string. More...
REGINA_API std::string | regina::stringToToken (const std::string &str)
| Returns a token derived from the given string. More...

## Detailed Description

Provides various routines for use with C++ strings.

Copyright © 1999-2013, The Regina development team
This software is released under the GNU General Public License, with some additional permissions; see the source code for details.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).