BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Public Member Functions | List of all members
bc::string Struct Reference

Inherits from std::string. More...

#include <string.h>

Inheritance diagram for bc::string:
Inheritance graph
[legend]
Collaboration diagram for bc::string:
Collaboration graph
[legend]

Public Member Functions

 string ()=default
 
 string (const string &)=default
 
 string (string &&)=default
 
stringoperator= (const string &)=default
 
stringoperator= (string &&)=default
 
 string (std::string s)
 
int count (char value) const
 
bool startswith (const std::string &str) const
 
bool endswith (const bc::string &str) const
 
bool startswith (char c) const
 
bool endswith (char c) const
 
std::vector< bc::stringsplit (char delim) const
 

Detailed Description

Inherits from std::string.

Simply defines additional "extensions" to std::string.

Constructor & Destructor Documentation

◆ string() [1/4]

bc::string::string ( )
default

◆ string() [2/4]

bc::string::string ( const string )
default

◆ string() [3/4]

bc::string::string ( string &&  )
default

◆ string() [4/4]

bc::string::string ( std::string  s)
inline

Member Function Documentation

◆ count()

int bc::string::count ( char  value) const
inline

◆ endswith() [1/2]

bool bc::string::endswith ( const bc::string str) const
inline

◆ endswith() [2/2]

bool bc::string::endswith ( char  c) const
inline

◆ operator=() [1/2]

string& bc::string::operator= ( const string )
default

◆ operator=() [2/2]

string& bc::string::operator= ( string &&  )
default

◆ split()

std::vector<bc::string> bc::string::split ( char  delim) const
inline

◆ startswith() [1/2]

bool bc::string::startswith ( const std::string &  str) const
inline

◆ startswith() [2/2]

bool bc::string::startswith ( char  c) const
inline

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