# utf8_cstrhas

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L960
- **Page:** https://libtmux.org/en/tmux/3.7c/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_is_word_separator`](/en/tmux/3.7c/reference/c-function-format-c-format_is_word_separator/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6002)
- [`grid_in_set`](/en/tmux/3.7c/reference/c-function-grid_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1612)

## Calls

- [`utf8_fromcstr`](/en/tmux/3.7c/reference/c-function-utf8_fromcstr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8.c#L965)

## Referenced declarations

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