Ticket #3254 (new task)

Opened 3 years ago

Last modified 3 years ago

Make template and variable substitutions case insensitive

Reported by: pramsey Owned by: pramsey
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: svn-trunk (development)
Severity: normal Keywords: case
Cc: sdlime

Description

In discussing ticket #3250, Steve said:

I was kinda wondering the same thing too, but even broader. The substitution code from mapstring.c is used primarily in 3 places:

  • the runtime subs
  • templates subs
  • logical expression subs

There's already a case insensitive version of msReplaceSubstring() available in mapstring.c (as msCaseReplaceSubstring()). I don't know why we don't use that instead of the case sensitive version everywhere- unless there are big performance penalties. I wouldn't think that would break apps.

This isn't a RFC-able enhancement although running the msCaseReplaceSubstring() for msReplaceSubstring() by mapserver-devs would be a good idea.

Attachments

3254.patch Download (49.3 KB) - added by pramsey 2 years ago.
case insensitive template handling

Change History

Changed 3 years ago by pramsey

  • type changed from defect to task

Changed 2 years ago by pramsey

case insensitive template handling

Note: See TracTickets for help on using tickets.