Modify

Opened 5 years ago

Closed 14 months ago

Last modified 14 months 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 Changed 5 years ago by Klumbumbus

What's your use case?

comment:2 Changed 5 years ago by bastiK

What is title supposed to do?

comment:3 Changed 5 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 5 years ago by Don-vip

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

comment:5 Changed 5 years ago by naoliv

comment:6 Changed 5 years ago by naoliv

Partially fixed in [11756]

comment:7 Changed 5 years ago by michael2402

I'd change URL_decode -> urldecode

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

comment:8 Changed 14 months ago by simon04

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

comment:9 Changed 14 months ago by simon04

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 Changed 14 months ago by simon04

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.