00001 #ifndef GRAL_GB_SEQUENCE_STRING_UTILS_H
00002 #define GRAL_GB_SEQUENCE_STRING_UTILS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "Container/sequence-algorithms.h"
00019
00020 #include <string>
00021 #include <istream>
00022 #include <ostream>
00023
00024
00025 namespace GrAL {
00026
00040 std::string get_non_empty_line(std::istream& in, std::string line_end_chars = "\n");
00041
00045 inline bool is_whitespace_only(std::string const& s) { return s.find_first_not_of(" \t\n\r\f") == std::string::npos; }
00046
00047
00048
00052 inline std::string commandline(int argc, char* argv[])
00053 { return sequence::concat(argv, argv+argc, " ");}
00054
00055
00056
00057 }
00058
00059 #endif
00060