Modify

Opened 8 years ago

Closed 4 years ago

Last modified 4 years ago

#14124 closed enhancement (fixed)

Some string functions in MapCSS

Reported by: naoliv Owned by: simon04
Priority: normal Milestone: 21.03
Component: Core Version:
Keywords: mapcss Cc:

Description

Could we have an upper, lower and title string functions in MapCSS, please?

JOSM:

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-12-15 21:36:30 +0100 (Thu, 15 Dec 2016)
Build-Date:2016-12-17 02:32:22
Revision:11405
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11405 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 247 MB / 4029 MB (48 MB allocated, but free)
Java version: 1.8.0_111-8u111-b14-3-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-8-jre:amd64-8u111-b14-3
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

Attachments (0)

Change History (11)

comment:1 by Klumbumbus, 8 years ago

What's your use case?

comment:2 by bastiK, 8 years ago

What is title supposed to do?

comment:3 by naoliv, 8 years ago

Will use it both for displaying data and in validation.
For example, suppose some kind of information should be converted to all upper case.

For title I will steal python's explanation: Return a titlecased version of the string where words start with an uppercase character and the remaining characters are lowercase

title is also the function name that QGIS uses, for example.

comment:4 by Don-vip, 8 years ago

Similar to WordUtils.capitalize. This method is available in apache-commons plugin.

comment:6 by naoliv, 8 years ago

Partially fixed in [11756]

comment:7 by michael2402, 8 years ago

I'd change URL_decode -> urldecode

That's the way it is called in SASS and PHP ;-)

comment:8 by simon04, 4 years ago

Milestone: 21.03
Owner: changed from team to simon04
Status: newassigned

comment:9 by simon04, 4 years ago

Resolution: fixed
Status: assignedclosed

In 17613/josm:

fix #14124 - Add MapCSS function title

Returns a title-cased version of the string where words start with an uppercase character and the remaining characters are lowercase.

comment:11 by simon04, 4 years ago

In 17614/josm:

see #14124 - Checkstyle

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.