#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 , 8 years ago
comment:3 by , 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 , 8 years ago
Similar to WordUtils.capitalize. This method is available in apache-commons plugin.
comment:7 by , 8 years ago
I'd change URL_decode
-> urldecode
That's the way it is called in SASS and PHP ;-)
comment:8 by , 4 years ago
Milestone: | → 21.03 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
What's your use case?