pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src string_tokenizer.cxx,1.1,1.2 string_t


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src string_tokenizer.cxx,1.1,1.2 string_tokenizer.hxx,1.1,1.2
Date: 14 Apr 2003 19:40:44 -0000

Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv19211

Modified Files:
        string_tokenizer.cxx string_tokenizer.hxx 
Log Message:
cleanup

Index: string_tokenizer.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/string_tokenizer.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- string_tokenizer.cxx        14 Apr 2003 17:56:36 -0000      1.1
+++ string_tokenizer.cxx        14 Apr 2003 19:40:41 -0000      1.2
@@ -41,15 +41,4 @@
     }
 }
 
-#ifdef TEST_ME
-#include <iostream>
-
-int main()
-{
-  StringTokenizer tokenizer("Hello 
World:aoeu:aoeu:aeu:aeuaoeu::Aoeuaoe123::1", ':');
-  for(StringTokenizer::iterator i = tokenizer.begin(); i != tokenizer.end(); 
++i)
-    std::cout << "Str: '" << *i << "'" << std::endl;
-}
-#endif
-
 /* EOF */

Index: string_tokenizer.hxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/string_tokenizer.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- string_tokenizer.hxx        14 Apr 2003 17:56:36 -0000      1.1
+++ string_tokenizer.hxx        14 Apr 2003 19:40:41 -0000      1.2
@@ -35,8 +35,8 @@
   /** Splits a string at \a split_char, empty tokens are ignored */
   StringTokenizer(const std::string& arg_str, char split_char);
 
-  Token::const_iterator begin() const { return tokens.begin(); }
-  Token::const_iterator end() const { return tokens.end(); }
+  iterator begin() const { return tokens.begin(); }
+  iterator end() const { return tokens.end(); }
 private:
   StringTokenizer (const StringTokenizer&);
   StringTokenizer& operator= (const StringTokenizer&);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]