My Project
|
Split a string with the delimiter string key into an array. More...
#include <SplitString.hh>
Public Member Functions | |
SplitString () | |
~SplitString () | |
vector< string > | Split (string Source, string SplitKey) |
vector< UInt4 > | PutUInt4 (string Source, string SplitKey) |
vector< Double > | PutDouble (string Source, string SplitKey) |
vector< string > | PutStringArray (string Source, string SplitKey) |
vector< string > | PutStringArrayWithSpace (string Source, string SplitKey) |
vector< Int2 > | PutInt2Array (string Source, string SplitKey) |
vector< Int4 > | PutInt4Array (string Source, string SplitKey) |
vector< UInt2 > | PutUInt2Array (string Source, string SplitKey) |
vector< UInt4 > | PutUInt4Array (string Source, string SplitKey) |
vector< Float > | PutFloatArray (string Source, string SplitKey) |
vector< Double > | PutDoubleArray (string Source, string SplitKey) |
Split a string with the delimiter string key into an array.
An input string of "Source" is splited by "SplitKey". "SplitKey" is used as the delimiter string. The "PutSize()" should be called just after getting the array to get its size.
Dynamic arrays produced in this class should be delete in the user functions, because this class does not have the delete function. In most cases, the arrays will be installed into data containers, and they have already possessed the delete functions.
Constructor, this method does not have the argument.
Destructor. This method should be called at the end of using this class.
vector< Double > SplitString::PutDoubleArray | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an Double type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method.
vector< Float > SplitString::PutFloatArray | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an Float type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method.
vector< Int2 > SplitString::PutInt2Array | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an Int2 type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method.
vector< Int4 > SplitString::PutInt4Array | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an Int4 type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method.
vector< string > SplitString::PutStringArray | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an string type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method. If spaces exist at the ends of the each string, this method will delete them.
vector< UInt2 > SplitString::PutUInt2Array | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an UInt2 type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method.
vector< UInt4 > SplitString::PutUInt4Array | ( | string | Source, |
string | SplitKey | ||
) |
Split the string of the first argument and return an UInt4 type array. "SplitKey" is used as a delimiter string. The size of the array can be gotton from "PutSize()", it should be called just after executing of this method.