> For the complete documentation index, see [llms.txt](https://docs.play.cronos.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.play.cronos.org/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md).

# rust::cxxbridge1::Str

`#include <cxx.h>`

## Public Types

|                     | Name                                         |
| ------------------- | -------------------------------------------- |
| using const char \* | [**iterator**](#using-iterator)              |
| using const char \* | [**const\_iterator**](#using-const-iterator) |
| using const char \* | [**iterator**](#using-iterator)              |
| using const char \* | [**const\_iterator**](#using-const-iterator) |
| using const char \* | [**iterator**](#using-iterator)              |
| using const char \* | [**const\_iterator**](#using-const-iterator) |
| using const char \* | [**iterator**](#using-iterator)              |
| using const char \* | [**const\_iterator**](#using-const-iterator) |

## Public Functions

|                                                               | Name                                                                                                                |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|                                                               | [**Str**](#function-str)()                                                                                          |
|                                                               | [**Str**](#function-str)(const [String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) & )                |
|                                                               | [**Str**](#function-str)(const std::string & )                                                                      |
|                                                               | [**Str**](#function-str)(const char \* )                                                                            |
|                                                               | [**Str**](#function-str)(const char \* , std::size\_t )                                                             |
| [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & | [**operator=**](#function-operator=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default |
| const char \*                                                 | [**data**](#function-data)() const                                                                                  |
| std::size\_t                                                  | [**size**](#function-size)() const                                                                                  |
| std::size\_t                                                  | [**length**](#function-length)() const                                                                              |
| bool                                                          | [**empty**](#function-empty)() const                                                                                |
|                                                               | [**Str**](#function-str)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default             |
|                                                               | [**\~Str**](#function-~str)() =default                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**begin**](#function-begin)() const                                                                                |
| [const\_iterator](#using-const-iterator)                      | [**end**](#function-end)() const                                                                                    |
| [const\_iterator](#using-const-iterator)                      | [**cbegin**](#function-cbegin)() const                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**cend**](#function-cend)() const                                                                                  |
| bool                                                          | [**operator==**](#function-operator==)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator!=**](#function-operator!=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator<**](#function-operator<)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator<=**](#function-operator<=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator>**](#function-operator>)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator>=**](#function-operator>=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| void                                                          | [**swap**](#function-swap)([Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & )                          |
|                                                               | [**Str**](#function-str)()                                                                                          |
|                                                               | [**Str**](#function-str)(const [String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) & )                |
|                                                               | [**Str**](#function-str)(const std::string & )                                                                      |
|                                                               | [**Str**](#function-str)(const char \* )                                                                            |
|                                                               | [**Str**](#function-str)(const char \* , std::size\_t )                                                             |
| [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & | [**operator=**](#function-operator=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default |
| const char \*                                                 | [**data**](#function-data)() const                                                                                  |
| std::size\_t                                                  | [**size**](#function-size)() const                                                                                  |
| std::size\_t                                                  | [**length**](#function-length)() const                                                                              |
| bool                                                          | [**empty**](#function-empty)() const                                                                                |
|                                                               | [**Str**](#function-str)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default             |
|                                                               | [**\~Str**](#function-~str)() =default                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**begin**](#function-begin)() const                                                                                |
| [const\_iterator](#using-const-iterator)                      | [**end**](#function-end)() const                                                                                    |
| [const\_iterator](#using-const-iterator)                      | [**cbegin**](#function-cbegin)() const                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**cend**](#function-cend)() const                                                                                  |
| bool                                                          | [**operator==**](#function-operator==)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator!=**](#function-operator!=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator<**](#function-operator<)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator<=**](#function-operator<=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator>**](#function-operator>)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator>=**](#function-operator>=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| void                                                          | [**swap**](#function-swap)([Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & )                          |
|                                                               | [**Str**](#function-str)()                                                                                          |
|                                                               | [**Str**](#function-str)(const [String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) & )                |
|                                                               | [**Str**](#function-str)(const std::string & )                                                                      |
|                                                               | [**Str**](#function-str)(const char \* )                                                                            |
|                                                               | [**Str**](#function-str)(const char \* , std::size\_t )                                                             |
| [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & | [**operator=**](#function-operator=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default |
| const char \*                                                 | [**data**](#function-data)() const                                                                                  |
| std::size\_t                                                  | [**size**](#function-size)() const                                                                                  |
| std::size\_t                                                  | [**length**](#function-length)() const                                                                              |
| bool                                                          | [**empty**](#function-empty)() const                                                                                |
|                                                               | [**Str**](#function-str)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default             |
|                                                               | [**\~Str**](#function-~str)() =default                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**begin**](#function-begin)() const                                                                                |
| [const\_iterator](#using-const-iterator)                      | [**end**](#function-end)() const                                                                                    |
| [const\_iterator](#using-const-iterator)                      | [**cbegin**](#function-cbegin)() const                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**cend**](#function-cend)() const                                                                                  |
| bool                                                          | [**operator==**](#function-operator==)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator!=**](#function-operator!=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator<**](#function-operator<)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator<=**](#function-operator<=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator>**](#function-operator>)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator>=**](#function-operator>=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| void                                                          | [**swap**](#function-swap)([Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & )                          |
|                                                               | [**Str**](#function-str)()                                                                                          |
|                                                               | [**Str**](#function-str)(const [String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) & )                |
|                                                               | [**Str**](#function-str)(const std::string & )                                                                      |
|                                                               | [**Str**](#function-str)(const char \* )                                                                            |
|                                                               | [**Str**](#function-str)(const char \* , std::size\_t )                                                             |
| [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & | [**operator=**](#function-operator=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default |
| const char \*                                                 | [**data**](#function-data)() const                                                                                  |
| std::size\_t                                                  | [**size**](#function-size)() const                                                                                  |
| std::size\_t                                                  | [**length**](#function-length)() const                                                                              |
| bool                                                          | [**empty**](#function-empty)() const                                                                                |
|                                                               | [**Str**](#function-str)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) =default             |
|                                                               | [**\~Str**](#function-~str)() =default                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**begin**](#function-begin)() const                                                                                |
| [const\_iterator](#using-const-iterator)                      | [**end**](#function-end)() const                                                                                    |
| [const\_iterator](#using-const-iterator)                      | [**cbegin**](#function-cbegin)() const                                                                              |
| [const\_iterator](#using-const-iterator)                      | [**cend**](#function-cend)() const                                                                                  |
| bool                                                          | [**operator==**](#function-operator==)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator!=**](#function-operator!=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator<**](#function-operator<)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator<=**](#function-operator<=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| bool                                                          | [**operator>**](#function-operator>)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const    |
| bool                                                          | [**operator>=**](#function-operator>=)(const [Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & ) const  |
| void                                                          | [**swap**](#function-swap)([Str](/readme-1/classes/classrust_1_1cxxbridge1_1_1_str.md) & )                          |

## Public Types Documentation

### using iterator

```cpp
using rust::cxxbridge1::Str::iterator =  const char *;
```

### using const\_iterator

```cpp
using rust::cxxbridge1::Str::const_iterator =  const char *;
```

### using iterator

```cpp
using rust::cxxbridge1::Str::iterator =  const char *;
```

### using const\_iterator

```cpp
using rust::cxxbridge1::Str::const_iterator =  const char *;
```

### using iterator

```cpp
using rust::cxxbridge1::Str::iterator =  const char *;
```

### using const\_iterator

```cpp
using rust::cxxbridge1::Str::const_iterator =  const char *;
```

### using iterator

```cpp
using rust::cxxbridge1::Str::iterator =  const char *;
```

### using const\_iterator

```cpp
using rust::cxxbridge1::Str::const_iterator =  const char *;
```

## Public Functions Documentation

### function Str

```cpp
Str()
```

### function Str

```cpp
Str(
    const String & 
)
```

### function Str

```cpp
Str(
    const std::string & 
)
```

### function Str

```cpp
Str(
    const char * 
)
```

### function Str

```cpp
Str(
    const char * ,
    std::size_t 
)
```

### function operator=

```cpp
Str & operator=(
    const Str & 
) =default
```

### function data

```cpp
const char * data() const
```

### function size

```cpp
std::size_t size() const
```

### function length

```cpp
std::size_t length() const
```

### function empty

```cpp
bool empty() const
```

### function Str

```cpp
Str(
    const Str & 
) =default
```

### function \~Str

```cpp
~Str() =default
```

### function begin

```cpp
const_iterator begin() const
```

### function end

```cpp
const_iterator end() const
```

### function cbegin

```cpp
const_iterator cbegin() const
```

### function cend

```cpp
const_iterator cend() const
```

### function operator==

```cpp
bool operator==(
    const Str & 
) const
```

### function operator!=

```cpp
bool operator!=(
    const Str & 
) const
```

### function operator<

```cpp
bool operator<(
    const Str & 
) const
```

### function operator<=

```cpp
bool operator<=(
    const Str & 
) const
```

### function operator>

```cpp
bool operator>(
    const Str & 
) const
```

### function operator>=

```cpp
bool operator>=(
    const Str & 
) const
```

### function swap

```cpp
void swap(
    Str & 
)
```

### function Str

```cpp
Str()
```

### function Str

```cpp
Str(
    const String & 
)
```

### function Str

```cpp
Str(
    const std::string & 
)
```

### function Str

```cpp
Str(
    const char * 
)
```

### function Str

```cpp
Str(
    const char * ,
    std::size_t 
)
```

### function operator=

```cpp
Str & operator=(
    const Str & 
) =default
```

### function data

```cpp
const char * data() const
```

### function size

```cpp
std::size_t size() const
```

### function length

```cpp
std::size_t length() const
```

### function empty

```cpp
bool empty() const
```

### function Str

```cpp
Str(
    const Str & 
) =default
```

### function \~Str

```cpp
~Str() =default
```

### function begin

```cpp
const_iterator begin() const
```

### function end

```cpp
const_iterator end() const
```

### function cbegin

```cpp
const_iterator cbegin() const
```

### function cend

```cpp
const_iterator cend() const
```

### function operator==

```cpp
bool operator==(
    const Str & 
) const
```

### function operator!=

```cpp
bool operator!=(
    const Str & 
) const
```

### function operator<

```cpp
bool operator<(
    const Str & 
) const
```

### function operator<=

```cpp
bool operator<=(
    const Str & 
) const
```

### function operator>

```cpp
bool operator>(
    const Str & 
) const
```

### function operator>=

```cpp
bool operator>=(
    const Str & 
) const
```

### function swap

```cpp
void swap(
    Str & 
)
```

### function Str

```cpp
Str()
```

### function Str

```cpp
Str(
    const String & 
)
```

### function Str

```cpp
Str(
    const std::string & 
)
```

### function Str

```cpp
Str(
    const char * 
)
```

### function Str

```cpp
Str(
    const char * ,
    std::size_t 
)
```

### function operator=

```cpp
Str & operator=(
    const Str & 
) =default
```

### function data

```cpp
const char * data() const
```

### function size

```cpp
std::size_t size() const
```

### function length

```cpp
std::size_t length() const
```

### function empty

```cpp
bool empty() const
```

### function Str

```cpp
Str(
    const Str & 
) =default
```

### function \~Str

```cpp
~Str() =default
```

### function begin

```cpp
const_iterator begin() const
```

### function end

```cpp
const_iterator end() const
```

### function cbegin

```cpp
const_iterator cbegin() const
```

### function cend

```cpp
const_iterator cend() const
```

### function operator==

```cpp
bool operator==(
    const Str & 
) const
```

### function operator!=

```cpp
bool operator!=(
    const Str & 
) const
```

### function operator<

```cpp
bool operator<(
    const Str & 
) const
```

### function operator<=

```cpp
bool operator<=(
    const Str & 
) const
```

### function operator>

```cpp
bool operator>(
    const Str & 
) const
```

### function operator>=

```cpp
bool operator>=(
    const Str & 
) const
```

### function swap

```cpp
void swap(
    Str & 
)
```

### function Str

```cpp
Str()
```

### function Str

```cpp
Str(
    const String & 
)
```

### function Str

```cpp
Str(
    const std::string & 
)
```

### function Str

```cpp
Str(
    const char * 
)
```

### function Str

```cpp
Str(
    const char * ,
    std::size_t 
)
```

### function operator=

```cpp
Str & operator=(
    const Str & 
) =default
```

### function data

```cpp
const char * data() const
```

### function size

```cpp
std::size_t size() const
```

### function length

```cpp
std::size_t length() const
```

### function empty

```cpp
bool empty() const
```

### function Str

```cpp
Str(
    const Str & 
) =default
```

### function \~Str

```cpp
~Str() =default
```

### function begin

```cpp
const_iterator begin() const
```

### function end

```cpp
const_iterator end() const
```

### function cbegin

```cpp
const_iterator cbegin() const
```

### function cend

```cpp
const_iterator cend() const
```

### function operator==

```cpp
bool operator==(
    const Str & 
) const
```

### function operator!=

```cpp
bool operator!=(
    const Str & 
) const
```

### function operator<

```cpp
bool operator<(
    const Str & 
) const
```

### function operator<=

```cpp
bool operator<=(
    const Str & 
) const
```

### function operator>

```cpp
bool operator>(
    const Str & 
) const
```

### function operator>=

```cpp
bool operator>=(
    const Str & 
) const
```

### function swap

```cpp
void swap(
    Str & 
)
```

***

Updated on 2023-01-11 at 18:25:19 +0800
