39 #include "csv2sc.help"
47 while (s[i]==
' ') i++;
48 if (((s[i]<
'0')||(s[i]>
'9'))&&(s[i]!=
'.')&&(s[i]!=
'-')&&(s[i]!=
'+'))
62 if (((s[i]<
'0')||(s[i]>
'9'))&&(s[i]!=
'.'))
76 int main(
int argc,
char** argv)
90 std::string d(args.OptionArg());
94 delim = args.OptionArg()[0];
96 else if (args.OptionId() ==
OPT_ROW)
98 std::istringstream i(args.OptionArg());
101 else if (args.OptionId() ==
OPT_COL)
103 std::istringstream i(args.OptionArg());
111 std::cerr <<
"Invalid argument: " << args.OptionText() << std::endl;
112 return error(args.LastError());
117 std::cout <<
"set color" << std::endl;
118 std::cout <<
"color 1 = @white;@black" << std::endl;
123 std::istringstream in(s);
137 std::cout <<
"let " << vs << u <<
" = " << s2 << std::endl;
139 std::cout <<
"leftstring " << vs << u <<
" = " <<
"\"" << s2 <<
"\"" << std::endl;
A cross-platform command line library which can parse almost any of the standard command line formats...
#define SO_END_OF_OPTIONS
this option definition must be the last entry in the table
#define CSimpleOpt
TCHAR version dependent on if _UNICODE is defined.
std::cin getline(buf, 256)
CSimpleOpt::SOption g_rgOptions[]
int main(int argc, char **argv)
bool isnumeric(const std::string &s)