# fidl::StringView

## Summary

### Inheritance

Inherits from: [fidl::VectorView\< const char \>](https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1a3a361476ea609dafbdaeee0b430596c2()` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1afca5d063ed31708f7f4fe42c4762effd(const https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< char > & vector_view)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1af3c1124b9efa5e6722233dc5ac754371(const https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< const char > & vector_view)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1a802f141ccc1a5cba7a7b71af8e863a0a(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, std::string_view from)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1ab26b5356c266acfa148a52d34487add8(T(&) literal[N])` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1ace2ff429fa6d9f2ddf2123244782a3ae(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, std::string_view from)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1a71f3b271fd8adac94a93bb0f1741575c() const ` | `constexpr std::string_view` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1a0f61b5ad62009e089acdd550ef054d07(std::string_view from)` | `constexpr https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view` |
| `https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view_1a64123fa9fcf25323859a8d2283ce86eb(const char *data, size_t size)` | `constexpr https://fuchsia.dev/reference/cpp/class/fidl/string-view#classfidl_1_1_string_view` |

## Public functions

### Set

```c++
void Set(
  AnyArena & allocator,
  std::string_view from
)
```

### StringView

```c++
constexpr StringView() noexcept=default
```

### StringView

```c++
constexpr StringView(
  const VectorView< char > & vector_view
)
```

### StringView

```c++
constexpr StringView(
  const VectorView< const char > & vector_view
)
```

### StringView

```c++
 StringView(
  AnyArena & allocator,
  std::string_view from
)
```

### StringView

```c++
constexpr StringView(
  T(&) literal[N]
)
```

### get

```c++
constexpr std::string_view get() const 
```

## Public static functions

### FromExternal

```c++
constexpr StringView FromExternal(
  std::string_view from
)
```

### FromExternal

```c++
constexpr StringView FromExternal(
  const char *data,
  size_t size
)
```