# utf8_item_by_data

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L264
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-utf8-c-utf8_item_by_data/

```c
static struct utf8_item * utf8_item_by_data(const u_char *data, size_t size)
```

## Parameters

- `data` (`const u_char *`)
- `size` (`size_t`)

## Called by

- [`utf8_put_item`](/en/tmux/latest/reference/c-function-utf8-c-utf8_put_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L439)

## Referenced declarations

- [`utf8_item.data`](/en/tmux/latest/reference/c-struct-utf8_item-data/) (attribute)
- [`utf8_item.size`](/en/tmux/latest/reference/c-struct-utf8_item-size/) (attribute)
- [`utf8_item`](/en/tmux/latest/reference/c-struct-utf8_item/) (struct)
