src/nodejs/tlid/tlid.js
function
  tlid__xtro(str) {
  var r = new Object();
  r.tlid = "-1";
  r.src = str;
  r.txt = "";
  // r.deco = "";

  if (tlid__has(str)) {
    r.tlid = tlid__xtr(str);
    r.txt = str.replace(r.tlid + " ", "") // try to clear out the double space
      .replace(r.tlid, "") // if ending the string, well we remove it
      .replace("@tlid ", ""); //remove the decorator

  }

  return r;
}
function
  tlid__xtro(str) {
  var r = new Object();
  r.tlid = "-1";
  r.src = str;
  r.txt = "";
  // r.deco = "";

  if (tlid__has(str)) {
    r.tlid = tlid__xtr(str);
    r.txt = str.replace(r.tlid + " ", "") // try to clear out the double space
      .replace(r.tlid, "") // if ending the string, well we remove it
      .replace("@tlid ", ""); //remove the decorator

  }

  return r;
}
function tlid__xtro ( str ) { var r = new Object ( ) ; r . tlid = "-1" ; r . src = str ; r . txt = "" ; // r.deco = ""; if ( tlid__has ( str ) ) { r . tlid = tlid__xtr ( str ) ; r . txt = str . replace ( r . tlid + " " , "" ) // try to clear out the double space . replace ( r . tlid , "" ) // if ending the string, well we remove it . replace ( "@tlid " , "" ) ; //remove the decorator } return r ; }
Extract a structure from the string

@param {*} str
Extract a structure from the string