• Home
  • Raw
  • Download

Lines Matching refs:MaxLen

21 std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) {  in truncateStringBack()  argument
22 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringBack()
25 assert(MaxLen >= 3); in truncateStringBack()
26 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringBack()
31 std::string llvm::pdb::truncateStringMiddle(StringRef S, uint32_t MaxLen) { in truncateStringMiddle() argument
32 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringMiddle()
35 assert(MaxLen >= 3); in truncateStringMiddle()
36 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringMiddle()
42 std::string llvm::pdb::truncateStringFront(StringRef S, uint32_t MaxLen) { in truncateStringFront() argument
43 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringFront()
46 assert(MaxLen >= 3); in truncateStringFront()
47 S = S.take_back(MaxLen - 3); in truncateStringFront()
52 uint32_t MaxLen) { in truncateQuotedNameFront() argument
54 if (MaxLen == 0 || RequiredExtraChars + Name.size() <= MaxLen) in truncateQuotedNameFront()
57 assert(MaxLen >= RequiredExtraChars); in truncateQuotedNameFront()
58 std::string TN = truncateStringFront(Name, MaxLen - RequiredExtraChars); in truncateQuotedNameFront()
63 uint32_t MaxLen) { in truncateQuotedNameBack() argument
65 if (MaxLen == 0 || RequiredExtraChars + Name.size() <= MaxLen) in truncateQuotedNameBack()
68 assert(MaxLen >= RequiredExtraChars); in truncateQuotedNameBack()
69 std::string TN = truncateStringBack(Name, MaxLen - RequiredExtraChars); in truncateQuotedNameBack()