# utf8_should_combine

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

```c
int utf8_should_combine(const struct utf8_data *with, const struct utf8_data *add)
```

## Parameters

- `with` (`const struct utf8_data *`)
- `add` (`const struct utf8_data *`)

## Called by

- [`screen_write_combine`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_combine/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2715)

## Calls

- [`utf8_regional_count`](/en/tmux/latest/reference/c-function-utf8-combined-c-utf8_regional_count/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8-combined.c#L115)
- [`utf8_towc`](/en/tmux/latest/reference/c-function-utf8_towc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/utf8-combined.c#L108)

## Referenced declarations

- [`utf8_data`](/en/tmux/latest/reference/c-struct-utf8_data/) (struct)
- [`UTF8_DONE`](/en/tmux/latest/reference/c-enum-utf8_state-utf8_done/) (constant)
