head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.41; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.58; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.54.05; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.22.02; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# strutils.hxx

Go to the documentation of this file.

    00001
    00006 // Written by Bernie Bright, started 1998
    00007 //
    00008 // Copyright (C) 1998  Bernie Bright - bbright@@bigpond.net.au
    00009 //
    00010 // This library is free software; you can redistribute it and/or
    00011 // modify it under the terms of the GNU Library General Public
    00012 // License as published by the Free Software Foundation; either
    00013 // version 2 of the License, or (at your option) any later version.
    00014 //
    00015 // This library is distributed in the hope that it will be useful,
    00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00018 // Library General Public License for more details.
    00019 //
    00020 // You should have received a copy of the GNU Library General Public
    00021 // License along with this library; if not, write to the
    00022 // Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00023 // Boston, MA  02111-1307, USA.
    00024 //
    00025 // $Id: strutils.hxx,v 1.6 2002/05/10 13:32:44 curt Exp $
    00026
    00027
    00028 #ifndef STRUTILS_H
    00029 #define STRUTILS_H
    00030
    00031 #include <simgear/compiler.h>
    00032
    00033 #include STL_STRING
    00034
    00035 #include <vector>
    00036 SG_USING_STD(vector);
    00037
    00038 #ifdef SG_HAVE_STD_INCLUDES
    00039 #  include <cstdlib>
    00040 #else
    00041 #  include <stdlib.h>
    00042 #endif
    00043
    00044 SG_USING_STD(string);
    00045
    00046 namespace simgear {
    00047     namespace strutils {
    00048
    00049 //      /**
    00050 //       * atof() wrapper for "string" type
    00051 //       */
    00052 //      inline double
    00053 //      atof( const string& str )
    00054 //      {
    00055 //          return ::atof( str.c_str() );
    00056 //      }
    00057
    00058 //      /**
    00059 //       * atoi() wrapper for "string" type
    00060 //       */
    00061 //      inline int
    00062 //      atoi( const string& str )
    00063 //      {
    00064 //          return ::atoi( str.c_str() );
    00065 //      }
    00066
    00072         string lstrip( const string& s );
    00073         string rstrip( const string& s );
    00074         string strip( const string& s );
    00075
    00087         vector<string>
    00088         split( const string& s,
    00089                const char* sep = 0,
    00090                int maxsplit = 0 );
    00091
    00092     } // end namespace strutils
    00093 } // end namespace simgear
    00094
    00095 #endif // STRUTILS_H
    00096

@ 1.3 log @Oops, try again. @ text @d85 1 a85 1