close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#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 Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

I think

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

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 Víctor de Buen Remiro

In addition, deprecated ToFirstUpper has been eliminated because the behaviour is
the same like FirstToUpper(···,TRUE)

comment:4 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://www.tol-project.org
Note: See TracTickets for help on using tickets.