stringManipulation.h File Reference

Header file declaring routines for working with strings. More...

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <dlrCommon/exception.h>
#include <dlrCommon/tags.h>
#include <dlrUtilities/exception.h>

Include dependency graph for stringManipulation.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  dlr
namespace  dlr::utilities

Functions

std::string dlr::utilities::cleanString (const std::string &inputString, const std::string &specialCharacters="\"~#$&*()\\|[]{};'`<>/?", char quoteCharacter='\\', bool alreadyQuoted=false)
 This function takes an input string and returns a string in which all special shell characters have been escaped.
template<class Type>
Type dlr::utilities::convertString (const std::string &inputString)
 This function converts the string inputString to Type.
template<class Type>
Type dlr::utilities::convertString (const std::string &inputString, type_tag< Type >)
 This function converts the string inputString to Type.
std::string dlr::utilities::joinString (const std::vector< std::string > &inputStringVector, const std::string &separator="")
 This function returns a single string comprising copies of all of the strings in inputStringVector, interposed by the copies of separator.
std::string dlr::utilities::lowerCaseString (const std::string &inputString)
 This function returns a copy of the input argument in which every uppercase character has been replaced with its lowercase equivalent.
std::string dlr::utilities::replaceString (const std::string &inputString, const std::string &target, const std::string &replacement)
 This function copies a string, replacing non-overlapping occurrences of a target string with the specified replacement.
std::vector< std::string > dlr::utilities::splitString (const std::string &inputString, const std::string &delimiter, bool includeNullStrings=false, size_t maxSplit=0)
 This function divides inputString around instances of delimiter.
std::string dlr::utilities::stripString (const std::string &inputString, const std::string &whiteSpace=" \t\n")
 This function removes whitespace from the beginning and end of a string.
std::string dlr::utilities::upperCaseString (const std::string &inputString)
 This function returns a copy of the input argument in which every lowercase character has been replaced with its uppercase equivalent.
std::string dlr::utilities::wrapString (const std::string &inputString, const std::string &fillPrefix="", size_t width=78, const std::string &whitespace=" \t\n", const std::string &eolString="\n")
 This function returns a copy of the input argument in which end-of-line markers have been inserted to wrap the string at a specified line length.
std::string dlr::utilities::wrapString (const std::string &inputString, size_t width, const std::string &whitespace=" \t\n", const std::string &eolString="\n")


Detailed Description

Header file declaring routines for working with strings.

Copyright (C) 2003-2007, David LaRose, dlr@cs.cmu.edu See accompanying file, LICENSE.TXT, for details.

Revision
946
Date
2007-07-09 20:24:50 -0400 (Mon, 09 Jul 2007)

Definition in file stringManipulation.h.


Generated on Mon Jul 9 20:34:16 2007 for dlrLibs Utility Libraries by  doxygen 1.5.2