#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 6 years ago by
comment:3 Changed 6 years ago by
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 6 years ago by
Similar to WordUtils.capitalize. This method is available in apache-commons plugin.
comment:7 Changed 6 years ago by
I'd change URL_decode
-> urldecode
That's the way it is called in SASS and PHP ;-)
comment:8 Changed 2 years ago by
Milestone: | → 21.03 |
---|---|
Owner: | changed from team to simon04 |
Status: | new → assigned |
comment:10 Changed 2 years ago by
Documentation: Help/Styles/MapCSSImplementation?action=diff&version=191
What's your use case?