Opened 4 years ago

Last modified 4 years ago

#14124 new enhancement

Some string functions in MapCSS

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


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


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
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 (7)

comment:1 Changed 4 years ago by Klumbumbus

What's your use case?

comment:2 Changed 4 years ago by bastiK

What is title supposed to do?

comment:3 Changed 4 years ago by naoliv

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 Changed 4 years ago by Don-vip

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

comment:5 Changed 4 years ago by naoliv

comment:6 Changed 4 years ago by naoliv

Partially fixed in [11756]

comment:7 Changed 4 years ago by michael2402

I'd change URL_decode -> urldecode

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

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to naoliv
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.