Skip to content

Commit

Permalink
Split.cpp: new method getStr() for getting the original string
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Oct 22, 2015
1 parent 2c7cb3d commit eae151b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/split.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ class Split
std::string
getLine(void);

//! Is the i-th substring a number?
//! Get the originally input-string
std::string
getStr(void){ return str;}

//! Is the i-th substring a number?
bool isNumber( size_t i );

bool isValid(void){ return is_valid;}
Expand Down Expand Up @@ -199,7 +203,7 @@ class Split
std::string str;
std::string empty;
bool is_valid;

std::vector<std::string> sep;
std::vector<std::string> ignore;
std::vector<std::string> items;
Expand Down

0 comments on commit eae151b

Please sign in to comment.