Lines Matching refs:std
53 TEMPLATE_INSTANTIATION(class basic_parser<std::string>);
58 TEMPLATE_INSTANTIATION(class opt<std::string>);
66 void OptionValue<std::string>::anchor() {}
76 void parser<std::string>::anchor() {}
88 static ManagedStatic<std::vector<const char*> > MoreHelp;
171 std::reverse(PositionalOpts.begin(), PositionalOpts.end());
209 std::string &NearestString) {
214 std::pair<StringRef, StringRef> SplitArg = Arg.split('=');
241 NearestString = std::string(OptionNames[i]) + "=" + RHS.str();
619 std::string UTF8Buf;
669 std::vector<char*> Dups;
672 for (std::vector<char *>::iterator I = Dups.begin(), E = Dups.end();
736 std::string ProgName = sys::path::filename(argv[0]);
737 size_t Len = std::min(ProgName.size(), size_t(79));
791 SmallVector<std::pair<StringRef,unsigned>, 4> PositionalVals;
803 std::string NearestHandlerString;
830 PositionalVals.push_back(std::make_pair(argv[i],i));
838 PositionalVals.push_back(std::make_pair(argv[i],i));
1081 return std::strlen(ArgStr)+6;
1086 std::pair<StringRef, StringRef> Split = HelpStr.split('\n');
1097 printHelpStr(HelpStr, GlobalWidth, std::strlen(ArgStr) + 6);
1109 size_t Len = std::strlen(O.ArgStr);
1111 Len += std::strlen(getValueStr(O, ValName))+3;
1132 outs().indent(GlobalWidth-std::strlen(O.ArgStr));
1249 size_t Size = std::strlen(O.ArgStr)+6;
1251 Size = std::max(Size, std::strlen(getOption(i))+8);
1256 BaseSize = std::max(BaseSize, std::strlen(getOption(i))+8);
1268 printHelpStr(O.HelpStr, GlobalWidth, std::strlen(O.ArgStr) + 6);
1281 printHelpStr(getDescription(i), GlobalWidth, std::strlen(Option) + 8);
1296 outs().indent(GlobalWidth-std::strlen(O.ArgStr));
1304 size_t L = std::strlen(getOption(i));
1326 std::string Str; \
1350 void parser<std::string>::
1351 printOptionDiff(const Option &O, StringRef V, OptionValue<std::string> D,
1376 typedef std::pair<const char *, Option*> pair_ty;
1384 SmallVectorImpl< std::pair<const char *, Option*> > &Opts,
1402 Opts.push_back(std::pair<const char *, Option*>(I->getKey().data(),
1415 typedef SmallVector<std::pair<const char *, Option*>,128> StrOptionPairVector;
1464 MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth());
1470 for (std::vector<const char *>::iterator I = MoreHelp->begin(),
1499 std::vector<OptionCategory *> SortedCategories;
1500 std::map<OptionCategory *, std::vector<Option *> > CategorizedOptions;
1511 std::sort(SortedCategories.begin(), SortedCategories.end(),
1515 for (std::vector<OptionCategory *>::const_iterator
1519 CategorizedOptions[*I] = std::vector<Option *>();
1532 for (std::vector<OptionCategory *>::const_iterator
1558 for (std::vector<Option *>::const_iterator
1665 SmallVector<std::pair<const char *, Option*>, 128> Opts;
1671 MaxArgLen = std::max(MaxArgLen, Opts[i].second->getOptionWidth());
1679 static std::vector<void (*)()>* ExtraVersionPrinters = 0;
1700 std::string CPU = sys::getHostCPUName();
1722 for (std::vector<void (*)()>::iterator I = ExtraVersionPrinters->begin(),
1771 ExtraVersionPrinters = new std::vector<void (*)()>;