stringFunc.hh File Reference

#include <string>
#include <vector>
#include <iomanip>
#include "basics/outputOperator.hh"
#include "basics/typedefs.hh"
#include "toolbox/sequence.hh"
#include "toolbox/set.hh"

Go to the source code of this file.

Classes

class  concepts::ParseObjectFromString< F >
 Class for parsing objects like "Circle(1.0)" or "Edge(1,2)" from a string. More...
 

Namespaces

 concepts
 Basic namespace for Concepts-2.
 

Functions

std::string concepts::getDirectory (const std::string str)
 Returns the directory of a given full filename. More...
 
std::string concepts::getFilename (const std::string str)
 Returns the filename (with ending) of a given full filename. More...
 
std::string concepts::getFilenamePrefix (const std::string str)
 Returns the prefix of a given full filename, e.g. More...
 
Sequence< Real > concepts::realSeqFromStringWithPower (const std::string s)
 Converts a string to a sequence of real numbers, where a power may be allowed to express, e.g., negative powers of 2. More...
 
std::string concepts::removeAllWhite (const std::string str)
 Removes all white space in the string str. More...
 
std::vector< std::string > concepts::splitString (const std::string text, const std::string separators)
 Split the string text string into words, where the separation token are included in separators. More...
 
std::vector< std::string > concepts::splitStringByComma (const std::string text)
 Split a strings in words separated by commas while respecting the bracket hierachies. More...
 
std::vector< std::string > concepts::splitStringNameParams (const std::string text)
 Split a string like "Ellipse(1.0, 4)" into "Ellipse", "1.0", "4". More...
 
template<class F >
std::string concepts::stringSubs (const std::string str, const std::string var, F value)
 Substitute all occurances of a substring var of a string str by value which may be for example a real or another string. More...
 
std::string concepts::stringtolower (const std::string s)
 
char concepts::tolower (const char ch)
 
Sequence< concepts::Set< uint > > concepts::uintSeqSets (const std::string s)
 Converts a string to a sequence of sets of uint. More...
 

Detailed Description

String functions

Definition in file stringFunc.hh.

Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich