Lines Matching refs:StringRef
16 #include "llvm/ADT/StringRef.h"
66 Expected<StringRef> NameOrErr = getName(Size);
80 OS.write_escaped(StringRef(ArMemHdr->Terminator,
86 Expected<StringRef> NameOrErr = getName(Size);
100 Expected<StringRef> ArchiveMemberHeader::getRawName() const {
116 StringRef::size_type end =
117 StringRef(ArMemHdr->Name, sizeof(ArMemHdr->Name)).find(EndCond);
118 if (end == StringRef::npos)
122 return StringRef(ArMemHdr->Name, end);
128 Expected<StringRef> ArchiveMemberHeader::getName(uint64_t Size) const {
142 Expected<StringRef> NameOrErr = getRawName();
145 StringRef Name = NameOrErr.get();
182 if (End == StringRef::npos || End < 1 ||
214 return StringRef(reinterpret_cast<const char *>(ArMemHdr) + getSizeOf(),
228 if (StringRef(ArMemHdr->Size,
232 OS.write_escaped(StringRef(ArMemHdr->Size,
246 if (StringRef(ArMemHdr->AccessMode,
250 OS.write_escaped(StringRef(ArMemHdr->AccessMode,
265 if (StringRef(ArMemHdr->LastModified,
270 OS.write_escaped(StringRef(ArMemHdr->LastModified,
285 StringRef User = StringRef(ArMemHdr->UID, sizeof(ArMemHdr->UID)).rtrim(' ');
304 StringRef Group = StringRef(ArMemHdr->GID, sizeof(ArMemHdr->GID)).rtrim(' ');
321 Archive::Child::Child(const Archive *Parent, StringRef Data,
350 Data = StringRef(Start, Size);
364 Data = StringRef(Start, Size);
370 Expected<StringRef> NameOrErr = getRawName();
375 StringRef Name = NameOrErr.get();
405 Expected<StringRef> NameOrErr = Header.getRawName();
408 StringRef Name = NameOrErr.get();
417 Expected<StringRef> NameOrErr = getName();
420 StringRef Name = *NameOrErr;
430 Expected<StringRef> Archive::Child::getBuffer() const {
439 return StringRef(Data.data() + StartOfFile, Size.get());
468 Expected<StringRef> NameOrErr = getName();
491 Expected<StringRef> Archive::Child::getName() const {
496 Expected<StringRef> NameOrErr = Header.getName(Header.getSizeOf() + RawSize);
499 StringRef Name = NameOrErr.get();
504 Expected<StringRef> NameOrErr = getName();
507 StringRef Name = NameOrErr.get();
508 Expected<StringRef> Buf = getBuffer();
542 StringRef Buffer = Data.getBuffer();
582 Expected<StringRef> NameOrErr = C->getRawName();
587 StringRef Name = NameOrErr.get();
615 Expected<StringRef> BufOrErr = C->getBuffer();
632 Expected<StringRef> NameOrErr = C->getName();
641 Expected<StringRef> BufOrErr = C->getBuffer();
654 Expected<StringRef> BufOrErr = C->getBuffer();
676 Expected<StringRef> BufOrErr = C->getBuffer();
691 Expected<StringRef> NameOrErr = C->getRawName();
703 Expected<StringRef> BufOrErr = C->getBuffer();
731 Expected<StringRef> BufOrErr = C->getBuffer();
757 Expected<StringRef> BufOrErr = C->getBuffer();
791 StringRef Archive::Symbol::getName() const {
972 Expected<Optional<Archive::Child>> Archive::findSym(StringRef name) const {
977 StringRef SymName = bs->getName();