mtext_replace(3m17n)

mtext_replace3m17n

Usage

int mtext_replace (MText * mt1, int from1, int to1, MText * mt2, int from2, int to2)

Overview

Replace sub-text of M-text with another. The mtext_replace() function replaces sub-text of M-text mt1 between from1 (inclusive) and to1 (exclusive) with the sub-text of M-text mt2 between from2 (inclusive) and to2 (exclusive). The new sub-text inherits text properties of the old sub-text.

Return value

If the operation was successful, mtext_replace() returns 0. Otherwise, it returns -1 and assigns an error code to the external variable merror_code.

Errors

MERROR_MTEXT, MERROR_RANGE

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–12
  2. 13

From m17n-docs 1.8.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.