ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:strcapitalize

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
functions:strcapitalize [2017/04/15 18:55] – created korshunfunctions:strcapitalize [2017/04/15 18:56] (current) korshun
Line 5: Line 5:
 ===== Description ===== ===== Description =====
 Returns s with the first character uppercase and the rest lowercase. Returns s with the first character uppercase and the rest lowercase.
 +
 +To capitalize each word, use [[StrCapitalizeWords]].
  
 ===== Examples ===== ===== Examples =====
 <code> <code>
-StrCapitalize("hello") -> "Hello" +StrCapitalize("hello world") -> "Hello" 
-StrCapitalize("HeLlo") -> "Hello"+StrCapitalize("HELLO WORLD") -> "Hello world"
 </code> </code>
functions/strcapitalize.txt · Last modified: 2017/04/15 18:56 by korshun