Lines Matching refs:Str
48 /// NameNeedsEscaping - Return true if the identifier \p Str needs quotes
50 static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo *MAI) {
51 assert(!Str.empty() && "Cannot create an empty MCSymbol");
55 if (!MAI->doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9')
62 for (unsigned i = 0, e = Str.size(); i != e; ++i)
63 if (!isAcceptableChar(Str[i], AllowPeriod, AllowUTF8))
70 static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str,
74 if (!MAI->doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') {
75 MangleLetter(OutName, Str[0]);
76 Str = Str.substr(1);
81 for (unsigned i = 0, e = Str.size(); i != e; ++i) {
82 if (!isAcceptableChar(Str[i], AllowPeriod, AllowUTF8))
83 MangleLetter(OutName, Str[i]);
85 OutName.push_back(Str[i]);
94 StringRef Str) {
95 for (unsigned i = 0, e = Str.size(); i != e; ++i) {
96 if (Str[i] == '"' || Str[i] == '\n')
97 MangleLetter(OutName, Str[i]);
99 OutName.push_back(Str[i]);