orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydroutil/stringutils.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef HYDROUTIL_STRING_UTILITIES_H
00012 #define HYDROUTIL_STRING_UTILITIES_H
00013 
00014 #include <string>
00015 #include <vector>
00016 #include <map>
00017 
00018 namespace hydroutil
00019 {
00020 
00025 
00027 std::vector<std::string> toStringSeq( const std::string& s, const char delim=':' );
00029 std::string toString( const std::vector<std::string>& seq, const char delim=':' );
00030 
00032 std::string toLowerCase( const std::string& s );
00033 
00035 std::string toUpperCase( const std::string& s );
00036 
00039 int toIntVector( const std::string &, std::vector<int>& );
00040 
00043 int toDoubleVector( const std::string &, std::vector<double>& );
00044 
00077 void substitute( std::string& s, const std::vector<std::string>& parameters, 
00078                 const std::map<std::string,std::string>& values, 
00079                 const std::map<std::string,std::string>& defaults );
00080 
00085 std::string toFixedWidth( const std::string& s, int width, char filler=' ', 
00086                             bool adjustLeft=false );
00087 
00089 std::string orcaVersion();
00090 
00100 std::string basename( const std::string& path, bool removeExtension=false );
00101 
00106 std::string dirname( const std::string& path );
00107 
00109 } // namespace
00110 
00111 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5