std-string-capitalize


Synopsis

(std-string-capitalize '<str>)

Description

STD-STRING-CAPITALIZE "destructivly" converts the first not whitespace letter of a string to uppercase, the rest to lowercase.

Note

It depends on the codepage for STD-STRING-UPCASE and STD-STRING-DOWNCASE.

Example

(std-string-capitalize "testname name") => "Testname Name"

(setq s " testname Name")
(std-string-capitalize 's) => " Testname Name"
!s => " Testname Name"

Arguments

string: a string or a symbol evaluating to a string.

Return Value

A string of capitalized substrings delimited by whitespace.

Side Effects

If the argument is a symbol, then the value of the symbol is changed.

Module

(std-require 'STDSTR)

Defined in STDSTR, it might be influenced by loading STDLOCAL

#- SMALL