[Aptitude-svn-commit] r3680 - in branches/aptitude-0.3/aptitude: . src/generic

Daniel Burrows dburrows at costa.debian.org
Tue Jul 26 00:15:56 UTC 2005


Author: dburrows
Date: Tue Jul 26 00:15:54 2005
New Revision: 3680

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/generic/tags.h
Log:
Add a routine to retrieve the text of a single tag entry.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Jul 26 00:15:54 2005
@@ -1,5 +1,9 @@
 2005-07-25  Daniel Burrows  <dburrows at debian.org>
 
+	* src/generic/tags.h:
+
+	  Add a routine to retrieve the plain text of a single tag.
+
 	* src/cmdline/cmdline_changelog.cc:
 
 	  Add heuristics to guess where the changelog of a package that we

Modified: branches/aptitude-0.3/aptitude/src/generic/tags.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/tags.h	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/tags.h	Tue Jul 26 00:15:54 2005
@@ -122,6 +122,11 @@
   {
     return const_iterator(finish, finish, finish);
   }
+
+  std::string str() const
+  {
+    return std::string(start, finish-start);
+  }
 };
 
 class tag_list



More information about the Aptitude-svn-commit mailing list