ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:strcapitalize

Table of Contents

StrCapitalize

str StrCapitalize(str s)

Description

Returns s with the first character uppercase and the rest lowercase.

To capitalize each word, use StrCapitalizeWords.

Examples

StrCapitalize("hello world") -> "Hello"
StrCapitalize("HELLO WORLD") -> "Hello world"
functions/strcapitalize.txt · Last modified: 2017/04/15 18:56 by korshun