Changeset 13116 for trunk/gsdl/src/recpt/infodbclass.cpp
- Timestamp:
- 2006-10-16T10:59:46+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/infodbclass.cpp
r11259 r13116 365 365 366 366 367 // replaces the .fc, .lc, .pr, . ns and .ps syntax (first child,368 // last child, parent, next sibling, previous sibling)367 // replaces the .fc, .lc, .pr, .rt, .ns and .ps syntax (first child, 368 // last child, parent, root, next sibling, previous sibling) 369 369 // it expects child, parent, etc. to exist if syntax has been used 370 370 // so you should test before using … … 377 377 text_tarray tailarray; 378 378 text_t tail = substr (OID.end()-3, OID.end()); 379 if (tail == ".rt") { 380 get_top (inOID, OID); 381 return OID; 382 } 379 383 while (tail == ".fc" || tail == ".lc" || tail == ".pr" || 380 384 tail == ".ns" || tail == ".ps") { … … 382 386 OID.erase (OID.end()-3, OID.end()); 383 387 tail = substr (OID.end()-3, OID.end()); 388 if (tail == ".rt") { 389 get_top (inOID, OID); 390 return OID; 391 } 384 392 } 385 393
Note:
See TracChangeset
for help on using the changeset viewer.