# utf8_cstrhas

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L584
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-utf8_cstrhas/

```c
int utf8_cstrhas(const char *s, const struct utf8_data *ud)
```

## Parameters

- `s` (`const char *`)
- `ud` (`const struct utf8_data *`)

## Called by

- [`format_grid_word`](/en/tmux/3.2a/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L4812)
- [`grid_reader_in_set`](/en/tmux/3.2a/reference/c-function-grid_reader_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-reader.c#L165)
- [`window_copy_in_set`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4263)

## Calls

- [`utf8_fromcstr`](/en/tmux/3.2a/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/utf8.c#L589)

## Referenced by

- [`session_new`](/en/tmux/3.2a/reference/c-function-session_new/) (function)

## Referenced declarations

- [`utf8_data.data`](/en/tmux/3.2a/reference/c-struct-utf8_data-data/) (attribute)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
- [`utf8_data`](/en/tmux/3.2a/reference/c-struct-utf8_data/) (struct)
