Borrar filtros
Borrar filtros

Extract docblock contents externally

3 visualizaciones (últimos 30 días)
Kent Schonert
Kent Schonert el 13 de Dic. de 2019
I want to write an external program to (quickly) display contents of a doc block at the top level of an .mdl library. I intend to call it from GIT Extensions to get more details pushed changes without actually opening the file from Matlab.
I think I can do this by looking for sourceType: "DocBlock" in the plaintext of the .mdl and then looking at the associated DataTag in it's UserData. However, I do not know how to convert the DataRecord from DocBlock encoding to text.
For example the following is the DataTag of a doc block that just has abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . . $ 8 ( @ % \" $ ! 0 % 0 \" $ 8 =F5R<"
"VEO;@!C;VYT96YT &9O<FUA= #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ S,S,S,S/S/"
"PX !H !@ @ $ 4 ( 0 #, ! ! S 86)C9&5F9VAI:FML;6YO<'%R<W1U=G=X>7I!0D-"
"$149'2$E*2TQ-3D]045)35%565UA9 . , 8 ( ! % \" $ # 0 0 , 5%A4 "
}
}

Respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by