Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/datacage/templating/CompiledStatement.java @ 1716:3ca999f507b7
flys/issue314: Variables in datacage are now case insensitive.
flys-artifacts/trunk@2994 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 15:53:03 +0000 |
parents | 94df49614d92 |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
1715:a70e0cbc5e02 | 1716:3ca999f507b7 |
---|---|
186 Matcher m = VAR.matcher(original); | 186 Matcher m = VAR.matcher(original); |
187 | 187 |
188 int index = 0; | 188 int index = 0; |
189 | 189 |
190 while (m.find()) { | 190 while (m.find()) { |
191 String key = m.group(1); | 191 String key = m.group(1).toUpperCase(); |
192 List<Integer> indices = positions.get(key); | 192 List<Integer> indices = positions.get(key); |
193 if (indices == null) { | 193 if (indices == null) { |
194 indices = new ArrayList<Integer>(); | 194 indices = new ArrayList<Integer>(); |
195 positions.put(key, indices); | 195 positions.put(key, indices); |
196 } | 196 } |