Library of Assembled Shared Sources
bulk_add.cpp
1#include "python_common.h"
2#include "bulk_add.h"
3
4namespace lass
5{
6namespace python
7{
8namespace impl
9{
10
11std::string argument(const std::string& iValue, size_t iArg)
12{
13 std::vector<std::string> splits( lass::stde::split( iValue, "," ) );
14 return lass::stde::strip(splits[iArg],std::string(" "));
15}
16
17}
18
19}
20
21} // namespace lass
22
std::vector< std::basic_string< Char, Traits, Alloc > > split(const std::basic_string< Char, Traits, Alloc > &to_be_split)
Reflects the Python function split without seperator argument.
std::basic_string< Char, Traits, Alloc > strip(const std::basic_string< Char, Traits, Alloc > &to_be_stripped, const std::basic_string< Char, Traits, Alloc > &to_be_removed)
Return a copy of the string to_be_stripped with both leading and trailing characters removed.
Comprehensive C++ to Python binding library.
Library for Assembled Shared Sources.
Definition config.h:53