Builtin macro search replace

0 votes
asked Mar 18, 2019 in Wanted features by andi

Hi all,

is there any possibility to implement a simple search_reaplace functionality in a macro.

E.g. I want to replace all '::' sequences by a '/' to convert a full qualified classname to a filepath for inclusion.

\startuml

!definelong provide_interface(comp, interface)

!include search_replace(interface, '::', '/')##.plantuml

comp ..|> interface

!enddefinelong

component example

provide_interface(example, example::Example_interface)

\enduml

where the file example/Example_interface.plantuml contains the plantuml fragment for the interface.

Thank you in advance. Plantuml is a great tool.

1 Answer

0 votes
answered Mar 21, 2019 by plantuml (294,960 points)
This is not possible with current release.

However, we are currently completely redesigning the preprocessor (see http://wiki.plantuml.net/site/plantumlshell ) so this is something we could think about.

Thanks for the idea
...