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

non-owning, constant reference to null-terminated string More...

#include <sysc/utils/sc_string_view.h>

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

Public Member Functions

 sc_zstring_view ()
 
 sc_zstring_view (const char *s)
 
 sc_zstring_view (const std::string &s)
 
void swap (sc_zstring_view &s)
 
const char * c_str () const
 
- Public Member Functions inherited from sc_core::sc_string_view
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 null-terminated string

Definition at line 82 of file sc_string_view.h.

Constructor & Destructor Documentation

◆ sc_zstring_view() [1/3]

sc_core::sc_zstring_view::sc_zstring_view ( )
inline

Definition at line 87 of file sc_string_view.h.

◆ sc_zstring_view() [2/3]

sc_core::sc_zstring_view::sc_zstring_view ( const char *  s)
inline

Definition at line 90 of file sc_string_view.h.

◆ sc_zstring_view() [3/3]

sc_core::sc_zstring_view::sc_zstring_view ( const std::string &  s)
inline

Definition at line 93 of file sc_string_view.h.

Member Function Documentation

◆ c_str()

const char * sc_core::sc_zstring_view::c_str ( ) const
inline

Definition at line 99 of file sc_string_view.h.

◆ swap()

void sc_core::sc_zstring_view::swap ( sc_zstring_view s)
inline

Definition at line 96 of file sc_string_view.h.


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