Mercurial > hg > ltpda
annotate m-toolbox/classes/+utils/@xml/recoverString.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
rev | line source |
---|---|
0 | 1 |
2 function s = recoverString(jString) | |
3 | |
4 s = utils.xml.mchar(jString); | |
5 if ~isempty(s) | |
6 % Recover the new line character. | |
7 s = strrep(s, utils.xml.WILDCARD_NEWLINE, sprintf('\n')); | |
8 | |
9 % Recover the cvs tag characters | |
10 nWILDCARD = numel(utils.xml.WILDCARD_CVS); | |
11 if strncmp(s, utils.xml.WILDCARD_CVS, nWILDCARD) && (s(end) == '$') | |
12 s = utils.xml.recoverVersionString(s); | |
13 end | |
14 end | |
15 | |
16 end |