DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | List of all members
Diades::Utils::StringDelimiter< CharT, left, right, Traits, Alloc > Class Template Reference

#include <StringTools.hh>

Public Types

typedef std::basic_string< CharT, Traits, Alloc > String
 

Public Member Functions

String operator() (String str) const
 

Detailed Description

template<typename CharT, CharT left, CharT right, typename Traits, typename Alloc>
class Diades::Utils::StringDelimiter< CharT, left, right, Traits, Alloc >

This is a functor that is used to encapsulate a string s with a couple of delimiter left and right

For example StringDelimiter<char,'(',')'>()("toto") returns the string "(toto)". This function is used to design delimitations of state labels (like Braces, Parentheses, ....) of state labels

Definition at line 164 of file StringTools.hh.

Member Typedef Documentation

◆ String

template<typename CharT, CharT left, CharT right, typename Traits, typename Alloc>
typedef std::basic_string<CharT, Traits, Alloc> Diades::Utils::StringDelimiter< CharT, left, right, Traits, Alloc >::String

Definition at line 167 of file StringTools.hh.

Member Function Documentation

◆ operator()()

template<typename CharT, CharT left, CharT right, typename Traits, typename Alloc>
String Diades::Utils::StringDelimiter< CharT, left, right, Traits, Alloc >::operator() ( String  str) const
inline
Returns
the string left + str + right

Definition at line 172 of file StringTools.hh.


The documentation for this class was generated from the following file: