Lines Matching refs:Str
394 static inline void StripSpaces(llvm::StringRef &Str) in StripSpaces() argument
396 while (!Str.empty() && isspace(Str[0])) in StripSpaces()
397 Str = Str.substr(1); in StripSpaces()
398 while (!Str.empty() && isspace(Str.back())) in StripSpaces()
399 Str = Str.substr(0, Str.size()-1); in StripSpaces()
401 static inline void LStrip(llvm::StringRef &Str, char c) in LStrip() argument
403 if (!Str.empty() && Str.front() == c) in LStrip()
404 Str = Str.substr(1); in LStrip()
406 static inline void RStrip(llvm::StringRef &Str, char c) in RStrip() argument
408 if (!Str.empty() && Str.back() == c) in RStrip()
409 Str = Str.substr(0, Str.size()-1); in RStrip()
416 llvm::StringRef Str(vector_str); in ParseVectorEncoding() local
417 StripSpaces(Str); in ParseVectorEncoding()
418 LStrip(Str, '{'); in ParseVectorEncoding()
419 RStrip(Str, '}'); in ParseVectorEncoding()
420 StripSpaces(Str); in ParseVectorEncoding()
426 std::pair<llvm::StringRef, llvm::StringRef> Pair = Str.split(Sep); in ParseVectorEncoding()