void Analyzer::print_table() const
{
- vector<unsigned> col_width;
+ vector<string::size_type> col_width;
// Determine column widths
for(Table::const_iterator i=table.begin(); i!=table.end(); ++i)
const vector<string> &args=getopt.get_args();
for(vector<string>::const_iterator i=args.begin(); i!=args.end(); ++i)
{
- unsigned equal=i->find('=');
+ string::size_type equal=i->find('=');
if(equal!=string::npos)
cmdline_options.insert(StringMap::value_type(i->substr(0, equal), i->substr(equal+1)));
else
cxx_ver=Regex("[0-9]\\.[0-9.]+").match(run_command(argv))[0].str;
while(!cxx_ver.empty() && !FS::is_dir(FS::Path("/usr/include/c++")/cxx_ver))
{
- unsigned dot=cxx_ver.rfind('.');
+ string::size_type dot=cxx_ver.rfind('.');
if(dot==string::npos)
break;
cxx_ver.erase(dot);
if(*i=="and")
continue;
- unsigned token=i->find_first_of("=!");
+ string::size_type token=i->find_first_of("=!");
if(token==string::npos)
expression.insert(StringMap::value_type(*i, "!0"));
else if(token==0 && (*i)[0]=='!')
for(OptionMap::iterator i=options.begin(); i!=options.end(); ++i)
{
Option &opt=i->second;
- unsigned dollar=0;
+ string::size_type dollar=0;
while((dollar=opt.value.find('$', dollar))!=string::npos)
{
- unsigned end;
+ string::size_type end;
string var;
if(opt.value[dollar+1]=='{')
{