MCPcopy Index your code
hub / github.com/benfry/processing4 / parseStyleAttributes

Method parseStyleAttributes

core/src/processing/core/PShapeSVG.java:1416–1429  ·  view source on GitHub ↗
(String style)

Source from the content-addressed store, hash-verified

1414
1415 //static protected Map<String, String> parseStyleAttributes(String style) {
1416 static protected StringDict parseStyleAttributes(String style) {
1417 //Map<String, String> table = new HashMap<String, String>();
1418 StringDict table = new StringDict();
1419// if (style == null) return table;
1420 if (style != null) {
1421 String[] pieces = style.split(";");
1422 for (int i = 0; i < pieces.length; i++) {
1423 String[] parts = pieces[i].split(":");
1424 //table.put(parts[0], parts[1]);
1425 table.set(parts[0], parts[1]);
1426 }
1427 }
1428 return table;
1429 }
1430
1431
1432 /**

Callers 1

GradientMethod · 0.80

Calls 2

setMethod · 0.95
splitMethod · 0.80

Tested by

no test coverage detected