@Test public void parseParams_quotedMultiple() { Map<String, String> out = new HashMap<>(); ParameterizedTag.parseParams("tag test=`value is a string` test2=`this is another string`", out); assertEquals("value is a string", out.get("test")); assertEquals("this is another string", out.get("test2")); }
static void parseParams(String tagStr, Map<String, String> out) { Matcher m = PARAMS_PATTERN.matcher(tagStr); while (m.find()) { String paramName = m.group(2); String paramValue = m.group(4); if (paramValue == null) { paramValue = m.group(5); } out.put(paramName, paramValue); } }
ParameterizedTag extends Tag { static void parseParams(String tagStr, Map<String, String> out) { Matcher m = PARAMS_PATTERN.matcher(tagStr); while (m.find()) { String paramName = m.group(2); String paramValue = m.group(4); if (paramValue == null) { paramValue = m.group(5); } out.put(paramName, paramValue); } } }
ParameterizedTag extends Tag { static void parseParams(String tagStr, Map<String, String> out) { Matcher m = PARAMS_PATTERN.matcher(tagStr); while (m.find()) { String paramName = m.group(2); String paramValue = m.group(4); if (paramValue == null) { paramValue = m.group(5); } out.put(paramName, paramValue); } } ParameterizedTag(String tagStr, int taggedTextStart); }
ParameterizedTag extends Tag { static void parseParams(String tagStr, Map<String, String> out) { Matcher m = PARAMS_PATTERN.matcher(tagStr); while (m.find()) { String paramName = m.group(2); String paramValue = m.group(4); if (paramValue == null) { paramValue = m.group(5); } out.put(paramName, paramValue); } } ParameterizedTag(String tagStr, int taggedTextStart);  }
ParameterizedTag extends Tag { static void parseParams(String tagStr, Map<String, String> out) { Matcher m = PARAMS_PATTERN.matcher(tagStr); while (m.find()) { String paramName = m.group(2); String paramValue = m.group(4); if (paramValue == null) { paramValue = m.group(5); } out.put(paramName, paramValue); } } ParameterizedTag(String tagStr, int taggedTextStart);   }