Home
last modified time | relevance | path

Searched refs:Chars (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/
H A DTrigram.cpp134 std::string Chars; in generateQueryTrigrams() local
138 Chars.push_back(LowercaseQuery[I]); in generateQueryTrigrams()
139 if (Chars.size() > 3) in generateQueryTrigrams()
140 Chars.erase(Chars.begin()); in generateQueryTrigrams()
141 if (Chars.size() == 3) in generateQueryTrigrams()
142 UniqueTrigrams.insert(Token(Token::Kind::Trigram, Chars)); in generateQueryTrigrams()
/llvm-project-15.0.7/llvm/lib/Support/
H A DGlobPattern.cpp85 StringRef Chars = S.substr(1, End - 1); in scan() local
87 if (Chars.startswith("^") || Chars.startswith("!")) { in scan()
88 Expected<BitVector> BV = expand(Chars.substr(1), Original); in scan()
93 return expand(Chars, Original); in scan()
H A DStringRef.cpp234 StringRef::size_type StringRef::find_first_of(StringRef Chars, in find_first_of() argument
237 for (char C : Chars) in find_first_of()
259 StringRef::size_type StringRef::find_first_not_of(StringRef Chars, in find_first_not_of() argument
262 for (char C : Chars) in find_first_not_of()
275 StringRef::size_type StringRef::find_last_of(StringRef Chars, in find_last_of() argument
278 for (char C : Chars) in find_last_of()
300 StringRef::size_type StringRef::find_last_not_of(StringRef Chars, in find_last_not_of() argument
303 for (char C : Chars) in find_last_not_of()
H A DScaledNumber.cpp186 SmallVector<char, 24> Chars; in toStringAPFloat() local
187 Float.toString(Chars, Precision, 0); in toStringAPFloat()
188 return std::string(Chars.begin(), Chars.end()); in toStringAPFloat()
H A Draw_ostream.cpp476 static const char Chars[] = {C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, in write_padding() local
483 if (NumChars < array_lengthof(Chars)) in write_padding()
484 return OS.write(Chars, NumChars); in write_padding()
488 (unsigned)array_lengthof(Chars)-1); in write_padding()
489 OS.write(Chars, NumToWrite); in write_padding()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSmallString.h178 size_t find_first_of(StringRef Chars, size_t From = 0) const {
179 return str().find_first_of(Chars, From);
192 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
193 return str().find_first_not_of(Chars, From);
207 StringRef Chars, size_t From = StringRef::npos) const {
208 return str().find_last_of(Chars, From);
H A DStringRef.h423 size_t find_first_of(StringRef Chars, size_t From = 0) const;
435 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
449 size_t find_last_of(StringRef Chars, size_t From = npos) const;
461 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
853 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
854 return drop_front(std::min(Length, find_first_not_of(Chars)));
867 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
868 return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
881 StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
882 return ltrim(Chars).rtrim(Chars);
/llvm-project-15.0.7/clang/test/Analysis/
H A Dllvm-conventions.cpp89 size_t find_first_of(StringRef Chars, size_t From = 0) const;
91 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
93 size_t find_last_of(StringRef Chars, size_t From = npos) const;
95 size_t find_last_not_of(StringRef Chars, size_t From = npos) const;
140 StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const;
142 StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const;
144 StringRef trim(StringRef Chars = " \t\n\v\f\r") const;
/llvm-project-15.0.7/llvm/tools/llvm-rc/
H A DResourceFileWriter.cpp150 SmallVector<UTF16, 128> Chars; in processString() local
170 for (UTF16 &Ch : Chars) { in processString()
174 Result.swap(Chars); in processString()
177 Result.reserve(Chars.size()); in processString()
219 while (Pos < Chars.size()) { in processString()
220 UTF16 CurChar = Chars[Pos]; in processString()
225 if (Pos == Chars.size() || Chars[Pos] != '"') in processString()
233 UTF16 TypeChar = Chars[Pos]; in processString()
253 while (RemainingChars && Pos < Chars.size() && Chars[Pos] < 0x80) { in processString()
277 while (RemainingChars && Pos < Chars.size() && Chars[Pos] >= '0' && in processString()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp45 tooling::Replacement replaceWithVar(SourceRange Chars,
194 ExtractionContext::replaceWithVar(SourceRange Chars, in replaceWithVar() argument
197 SM.getFileOffset(Chars.getEnd()) - SM.getFileOffset(Chars.getBegin()); in replaceWithVar()
198 return tooling::Replacement(SM, Chars.getBegin(), ExtractionLength, VarName); in replaceWithVar()
/llvm-project-15.0.7/llvm/test/CodeGen/AVR/
H A Drust-avr-bug-95.ll9 define void @"_ZN65_$LT$lib..str..Chars$LT$$u27$a$GT$$u20$as$u20$lib..fmt..Debug$GT$3fmt17h76a537e2…
10 ; CHECK-LABEL: "_ZN65_$LT$lib..str..Chars$LT$$u27$a$GT$$u20$as$u20$lib..fmt..Debug$GT$3fmt17h76a537…
/llvm-project-15.0.7/clang/lib/Format/
H A DBreakableToken.cpp183 for (unsigned Chars = 0;;) { in getStringSplit() local
187 Chars += Advance; in getStringSplit()
190 Chars += encoding::columnWidthWithTabs( in getStringSplit()
191 Text.substr(0, Advance), UsedColumns + Chars, TabWidth, Encoding); in getStringSplit()
194 if (Chars > MaxSplit || Text.size() <= Advance) in getStringSplit()
/llvm-project-15.0.7/bolt/runtime/
H A Dcommon.h240 const char *Chars = "0123456789abcdef"; in intToStr() local
244 *Ptr++ = *(Chars + (Num % Base)); in intToStr()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dloop-convert-basic.cpp835 char Chars[N]; in fundamentalTypesTest() local
837 printf("%d", Chars[i]); in fundamentalTypesTest()
/llvm-project-15.0.7/clang/lib/Lex/
H A DLexer.cpp1966 unsigned Chars = 1; in LexUDSuffix() local
1972 const StringRef CompleteSuffix(Buffer, Chars); in LexUDSuffix()
1978 if (Chars == MaxStandardSuffixLength) in LexUDSuffix()
1982 Buffer[Chars++] = Next; in LexUDSuffix()
/llvm-project-15.0.7/llvm/unittests/FileCheck/
H A DFileCheckTest.cpp164 void checkPerCharWildcardRegexMatchFailure(StringRef Chars) const { in checkPerCharWildcardRegexMatchFailure()
165 for (auto C : Chars) { in checkPerCharWildcardRegexMatchFailure()