#366 closed defect (fixed)
Description of the FirstToUpper function
Reported by: | rcsoto | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | Text | Version: | head |
Severity: | trivial | Keywords: | |
Cc: |
Description
The FirstToUpper function has a description that erroneous and can cause errors.
Description of FirstToUpper
"
Changes the first character of a text to upper case and makes lower case the rest.
"
When the function the only thing that does is to put the first character to capital
letters.
Thanks
Change History (4)
comment:1 Changed 19 years ago by
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Problem has been fixed conserving the compatibility backwards, by adding an
optional argument specifying what to do with rest characters but first one.
Text FirstToUpper(Text txt [, Real restToLower=FALSE])
DESCRIPTION: Changes the first character of a text to upper case and makes
lower case the rest if restToLower is TRUE.
DESCRIPCIÓN: Cambia el primer caracter a mayúsculas y el resto a minúsculas si
restToLower es CIERTO.
For example:
Text FirstToUpper("aAAAAAAAAAA"); -> "AAAAAAAAAAA"
Text FirstToUpper("aAAAAAAAAAA",TRUE); -> "Aaaaaaaaaaa"
comment:3 Changed 19 years ago by
In addition, deprecated ToFirstUpper has been eliminated because the behaviour is
the same like FirstToUpper(···,TRUE)
comment:4 Changed 18 years ago by
bug_file_loc: | → http://www.tol-project.org |
---|
I think