Browse Source

fix typos in changelog, make DeEscapeString const, improve description

Michael Vogt 15 years ago
parent
commit
cca2efe60e
3 changed files with 7 additions and 6 deletions
  1. 3 3
      apt-pkg/contrib/strutl.cc
  2. 1 1
      apt-pkg/contrib/strutl.h
  3. 3 2
      debian/changelog

+ 3 - 3
apt-pkg/contrib/strutl.cc

@@ -1240,10 +1240,10 @@ bool CheckDomainList(const string &Host,const string &List)
    return false;
    return false;
 }
 }
 									/*}}}*/
 									/*}}}*/
-// ProcessEscapeSequences        					/*{{{*/
+// DeEscapeString - unescape (\0XX and \xXX) from a string      	/*{{{*/
 // ---------------------------------------------------------------------
 // ---------------------------------------------------------------------
-/* unescape (\0XX and \xXX) from a string */
-string DeEscapeString(string &input)
+/* */
+string DeEscapeString(const string &input)
 {
 {
    char tmp[3];
    char tmp[3];
    string::const_iterator it, escape_start;
    string::const_iterator it, escape_start;

+ 1 - 1
apt-pkg/contrib/strutl.h

@@ -41,7 +41,7 @@ string DeQuoteString(const string &Str);
 string DeQuoteString(string::const_iterator const &begin, string::const_iterator const &end);
 string DeQuoteString(string::const_iterator const &begin, string::const_iterator const &end);
 
 
 // unescape (\0XX and \xXX) from a string
 // unescape (\0XX and \xXX) from a string
-string DeEscapeString(string &input);
+string DeEscapeString(const string &input);
 
 
 string SizeToStr(double Bytes);
 string SizeToStr(double Bytes);
 string TimeToStr(unsigned long Sec);
 string TimeToStr(unsigned long Sec);

+ 3 - 2
debian/changelog

@@ -7,8 +7,9 @@ apt (0.8.15.2) unstable; urgency=high
   * apt-pkg/contrib/cdromutl.cc:
   * apt-pkg/contrib/cdromutl.cc:
     - fix escape problem when looking for the mounted devices
     - fix escape problem when looking for the mounted devices
   * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:
   * apt-pkg/contrib/strutl.{h,cc}, test/libapt/strutil_test.cc:
-    - add new DeEscapeString() similar to DeQuoteQuotedWord but
-      unescape charackter escapes like \0XXX and \xXX (plus add test)
+    - add new DeEscapeString() similar to DeQuoteString but
+      unescape character escapes like \0XX and \xXX (plus added
+      test)
 
 
  -- Michael Vogt <mvo@debian.org>  Tue, 12 Jul 2011 11:54:47 +0200
  -- Michael Vogt <mvo@debian.org>  Tue, 12 Jul 2011 11:54:47 +0200