Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

whitespacescrub.h

Go to the documentation of this file.
00001 
00002 //
00003 //  whitespacescrub.h
00004 //
00005 //  
00006 //  begin       : Tue Jan 29 2002
00007 //  copyright   : (C) 2002 by Solstice
00008 //  email       : solstice@deninet.com
00009 //
00011 
00012 #ifndef WHITESPACESCRUB_H
00013 #define WHITESPACESCRUB_H
00014 
00015 #include <string>
00016 #include <vector>
00017 
00018 namespace deml{
00019 
00025 class WhitespaceScrub {
00026 public: 
00027 
00028 
00030   static string leading(string str);
00031     
00032 
00033 
00035   static string trailing(string str);
00036 
00041   static string zealous(string str);
00042 
00046   static vector<string> tokens(string str);
00047 
00052   static string all(string str);
00053 
00057   static inline string leading(char* str)
00058   { return leading(string(str)); }
00059 
00063     static inline string trailing(char* str)
00064     {   return trailing(string(str));   }
00065 
00069     static inline vector<string> tokens(char* str)
00070     {   return tokens(string(str)); }
00071         
00075     static inline string all(char* str)
00076     {   return all(string(str));    }
00077     
00081     static inline string zealous(char* str)
00082     {   return zealous(string(str));    }
00083 
00084 };
00085 
00086 };
00087 
00088 #endif

Generated at Sun Mar 3 20:34:56 2002 for Chroma by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001