Changeset 18581 for gsdl/trunk/runtime-src/src/oaiservr/metaformat.cpp
- Timestamp:
- 2009-02-23T12:47:38+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/metaformat.cpp
r17546 r18581 52 52 text_t metaItem; 53 53 text_t::const_iterator start, last; // Use two iterators to go through metaItem 54 54 55 55 while (here != end) { 56 56 start = last = here->first.begin(); … … 61 61 } 62 62 else { 63 last += this->formatPrefix().size() + 1; // Move last so that it is one place beyond where the "." should be. 63 last += this->formatPrefix().size(); // Move last so that it is at the 64 // '.' 64 65 metaItem = substr(start, last); // Gets the substring starting at start and going up to (but 65 // not including) last. This should be "dc ." (for example)66 // not including) last. This should be "dc" (for example) 66 67 } 67 68 68 69 if (metaItem == this->formatPrefix()) { 69 metaItem = substr(last , here->first.end()); // Get the rest of the metadata tag (it's name)70 metaItem = substr(last+1, here->first.end()); // Get the rest of the metadata tag (it's name) but without the '.' 70 71 lc(metaItem); // Convert it to lowercase for putting in the xml tags 71 72
Note:
See TracChangeset
for help on using the changeset viewer.