SystemC 3.0.0
Accellera SystemC proof-of-concept library
Classes | Public Member Functions | List of all members
sc_core::sc_string_view Class Reference

non-owning, constant reference to a string More...

#include <sysc/utils/sc_string_view.h>

Inheritance diagram for sc_core::sc_string_view:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_string_view:
Collaboration graph
[legend]

Public Member Functions

template<typename T >
 sc_string_view (const T &s, typename enable_if_convertible< T >::type *=0)
 
std::string str () const
 
bool starts_with (base_type sv) const
 
bool starts_with (char c) const
 
bool starts_with (const char *s) const
 
bool ends_with (base_type sv) const
 
bool ends_with (char c) const
 
bool ends_with (const char *s) const
 

Detailed Description

non-owning, constant reference to a string

Definition at line 44 of file sc_string_view.h.

Constructor & Destructor Documentation

◆ sc_string_view()

template<typename T >
sc_core::sc_string_view::sc_string_view ( const T &  s,
typename enable_if_convertible< T >::type *  = 0 
)
inline

Definition at line 56 of file sc_string_view.h.

Member Function Documentation

◆ ends_with() [1/3]

bool sc_core::sc_string_view::ends_with ( base_type  sv) const
inline

Definition at line 72 of file sc_string_view.h.

◆ ends_with() [2/3]

bool sc_core::sc_string_view::ends_with ( char  c) const
inline

Definition at line 74 of file sc_string_view.h.

◆ ends_with() [3/3]

bool sc_core::sc_string_view::ends_with ( const char *  s) const
inline

Definition at line 76 of file sc_string_view.h.

◆ starts_with() [1/3]

bool sc_core::sc_string_view::starts_with ( base_type  sv) const
inline

Definition at line 65 of file sc_string_view.h.

◆ starts_with() [2/3]

bool sc_core::sc_string_view::starts_with ( char  c) const
inline

Definition at line 67 of file sc_string_view.h.

◆ starts_with() [3/3]

bool sc_core::sc_string_view::starts_with ( const char *  s) const
inline

Definition at line 69 of file sc_string_view.h.

◆ str()

std::string sc_core::sc_string_view::str ( ) const
inline

Definition at line 61 of file sc_string_view.h.


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