---
name: "mtext_titlecase"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtext_titlecase"
---

# mtext\_titlecase(3m17n)

## NAME

mtext\_titlecase -

## SYNOPSIS

int **mtext\_titlecase** (**MText** \* *mt*)

## DESCRIPTION

Titlecase an M-text. The **mtext\_titlecase()** function destructively converts the first character with the cased property in M-text **mt** to titlecase and the others to lowercase. The length of **mt** may change. If the character cannot be converted to titlecase, it is left unchanged. All the text properties are inherited.

## RETURN VALUE

This function returns the length of the updated **mt**.

## SEE ALSO

**mtext\_lowercase()**, **mtext\_uppercase()**

## COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)\
 Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)\
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License  \<http://www.gnu.org/licenses/fdl.html\>.
