Lines Matching refs:StringRef
13 #include "llvm/ADT/StringRef.h"
79 /// StringRef) codegen as desired.
99 /// A pointer to a StringRef instance.
141 const StringRef *stringRef;
286 /// Construct from a StringRef.
287 /*implicit*/ Twine(const StringRef &Str) : LHSKind(StringRefKind) {
356 /// Construct as the concatenation of a C string and a StringRef.
357 /*implicit*/ Twine(const char *LHS, const StringRef &RHS)
364 /// Construct as the concatenation of a StringRef and a C string.
365 /*implicit*/ Twine(const StringRef &LHS, const char *RHS)
405 /// StringRef value with getSingleStringRef().
437 /// This returns the twine as a single StringRef. This method is only valid
439 StringRef getSingleStringRef() const {
443 case EmptyKind: return StringRef();
444 case CStringKind: return StringRef(LHS.cString);
445 case StdStringKind: return StringRef(*LHS.stdString);
448 return StringRef(LHS.smallString->data(), LHS.smallString->size());
452 /// This returns the twine as a single StringRef if it can be
454 /// SmallVector and a StringRef to the SmallVector's data is returned.
455 StringRef toStringRef(SmallVectorImpl<char> &Out) const {
459 return StringRef(Out.data(), Out.size());
462 /// This returns the twine as a single null terminated StringRef if it
464 /// given SmallVector and a StringRef to the SmallVector's data is returned.
466 /// The returned StringRef's size does not include the null terminator.
467 StringRef toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const;
524 inline Twine operator+(const char *LHS, const StringRef &RHS) {
531 inline Twine operator+(const StringRef &LHS, const char *RHS) {