Home
last modified time | relevance | path

Searched refs:StrLen (Results 1 – 25 of 57) sorted by relevance

123

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMisplacedOperatorInStrlenInAllocCheck.cpp83 const auto *StrLen = Result.Nodes.getNodeAs<CallExpr>("StrLen"); in check() local
87 CharSourceRange::getTokenRange(StrLen->getSourceRange()), in check()
90 CharSourceRange::getTokenRange(StrLen->getArg(0)->getSourceRange()), in check()
104 StrLen->getSourceRange(), in check()
110 << StrLen->getDirectCallee()->getName() << Hint; in check()
/external/rust/crates/libz-sys/src/zlib/contrib/pascal/
Dexample.pas61 len := StrLen(hello)+1;
90 len := StrLen(hello)+1;
162 uncomprLen := StrLen(PChar(uncompr));
189 len := StrLen(hello)+1;
373 len := StrLen(hello)+1;
461 err := deflateSetDictionary(c_stream, dictionary, StrLen(dictionary));
469 c_stream.avail_in := StrLen(hello)+1;
513 err := inflateSetDictionary(d_stream, dictionary, StrLen(dictionary));
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.cons/
Dfrom_literal.pass.cpp24 size_t StrLen ( const CharT *s ) { in StrLen() function
37 assert ( sv1.size() == StrLen( s )); in test()
/external/libcxx/test/std/strings/string.view/string.view.cons/
Dfrom_literal.pass.cpp25 size_t StrLen ( const CharT *s ) { in StrLen() function
38 assert ( sv1.size() == StrLen( s )); in test()
/external/llvm-project/llvm/unittests/Remarks/
DBitstreamRemarksParsingTest.cpp138 unsigned StrLen = Str.size(); in checkStr() local
139 EXPECT_EQ(StrLen, ExpectedLen); in checkStr()
140 return StringRef(StrData, StrLen); in checkStr()
228 unsigned StrLen = LLVMRemarkStringGetLen(Str); in checkStr() local
229 EXPECT_EQ(StrLen, ExpectedLen); in checkStr()
230 return StringRef(StrData, StrLen); in checkStr()
DYAMLRemarksParsingTest.cpp380 unsigned StrLen = Str.size(); in checkStr() local
381 EXPECT_EQ(StrLen, ExpectedLen); in checkStr()
382 return StringRef(StrData, StrLen); in checkStr()
470 unsigned StrLen = LLVMRemarkStringGetLen(Str); in checkStr() local
471 EXPECT_EQ(StrLen, ExpectedLen); in checkStr()
472 return StringRef(StrData, StrLen); in checkStr()
/external/pdfium/third_party/lcms/src/
Dcmsnamed.c377 cmsUInt32Number StrLen = 0; in cmsMLUgetASCII() local
387 Wide = _cmsMLUgetWide(mlu, &StrLen, Lang, Cntry, NULL, NULL); in cmsMLUgetASCII()
390 ASCIIlen = StrLen / sizeof(wchar_t); in cmsMLUgetASCII()
422 cmsUInt32Number StrLen = 0; in cmsMLUgetWide() local
430 Wide = _cmsMLUgetWide(mlu, &StrLen, Lang, Cntry, NULL, NULL); in cmsMLUgetWide()
434 if (Buffer == NULL) return StrLen + sizeof(wchar_t); in cmsMLUgetWide()
440 if (BufferSize < StrLen + sizeof(wchar_t)) in cmsMLUgetWide()
441 StrLen = BufferSize - + sizeof(wchar_t); in cmsMLUgetWide()
443 memmove(Buffer, Wide, StrLen); in cmsMLUgetWide()
444 Buffer[StrLen / sizeof(wchar_t)] = 0; in cmsMLUgetWide()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/
Dpath.concat.pass.cpp93 std::size_t ReserveSize = StrLen(E) + 1; in doConcatSourceAllocTest()
255 assert(StrLen(RStr) == 1); in doConcatECharTest()
358 PathReserve(LHS, StrLen(E) + 5); in main()
370 PathReserve(LHS, StrLen(E) + 5); in main()
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/
Dpath.concat.pass.cpp95 std::size_t ReserveSize = StrLen(E) + 1; in doConcatSourceAllocTest()
257 assert(StrLen(RStr) == 1); in doConcatECharTest()
360 PathReserve(LHS, StrLen(E) + 5); in main()
372 PathReserve(LHS, StrLen(E) + 5); in main()
/external/clang/include/clang/Basic/
DIdentifierTable.h92 template <std::size_t StrLen>
93 bool isStr(const char (&Str)[StrLen]) const { in isStr() argument
94 return getLength() == StrLen-1 && !memcmp(getNameStart(), Str, StrLen-1); in isStr()
/external/llvm-project/clang/include/clang/Basic/
DIdentifierTable.h140 template <std::size_t StrLen>
141 bool isStr(const char (&Str)[StrLen]) const { in isStr() argument
142 return getLength() == StrLen-1 && in isStr()
143 memcmp(getNameStart(), Str, StrLen-1) == 0; in isStr()
/external/swiftshader/third_party/subzero/src/
DIceGlobalInits.h248 size_t StrLen) in DataInitializer() argument
249 : Initializer(DataInitializerKind), ContentsSize(StrLen), in DataInitializer()
251 for (size_t i = 0; i < StrLen; ++i) in DataInitializer()
/external/clang/include/clang/Sema/
DTypoCorrection.h194 template<std::size_t StrLen>
195 bool isKeyword(const char (&Str)[StrLen]) const { in isKeyword() argument
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringMap.h40 unsigned StrLen; variable
43 explicit StringMapEntryBase(unsigned Len) : StrLen(Len) {} in StringMapEntryBase()
45 unsigned getKeyLength() const { return StrLen; } in getKeyLength()
/external/llvm/include/llvm/ADT/
DStringMap.h33 unsigned StrLen; variable
36 explicit StringMapEntryBase(unsigned Len) : StrLen(Len) {} in StringMapEntryBase()
38 unsigned getKeyLength() const { return StrLen; } in getKeyLength()
/external/llvm-project/clang/include/clang/Sema/
DTypoCorrection.h207 template<std::size_t StrLen>
208 bool isKeyword(const char (&Str)[StrLen]) const { in isKeyword() argument
/external/llvm-project/llvm/lib/Target/BPF/
DBTF.h85 uint32_t StrLen; ///< Length of string section member
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBTF.h85 uint32_t StrLen; ///< Length of string section member
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringMap.h39 size_t StrLen; variable
42 explicit StringMapEntryBase(size_t Len) : StrLen(Len) {} in StringMapEntryBase()
44 size_t getKeyLength() const { return StrLen; } in getKeyLength()
/external/clang/lib/Basic/
DDiagnostic.cpp411 template <std::size_t StrLen>
413 const char (&Str)[StrLen]) { in ModifierIs() argument
414 return StrLen-1 == ModifierLen && !memcmp(Modifier, Str, StrLen-1); in ModifierIs()
/external/llvm-project/clang/lib/Basic/
DDiagnostic.cpp559 template <std::size_t StrLen>
561 const char (&Str)[StrLen]) { in ModifierIs() argument
562 return StrLen-1 == ModifierLen && memcmp(Modifier, Str, StrLen-1) == 0; in ModifierIs()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp342 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStpCpy() local
343 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStpCpy()
571 Value *StrLen = emitStrLen(CI->getArgOperand(1), B, DL, TLI); in optimizeStrStr() local
572 if (!StrLen) in optimizeStrStr()
575 StrLen, B, DL, TLI); in optimizeStrStr()
2254 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStrpCpyChk() local
2255 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStrpCpyChk()
/external/avb/examples/uefi/
Duefi_avb_ops.c134 partition_name_ucs2_len = StrLen(partition_name_ucs2); in find_partition_entry_by_name()
158 if ((partition_name_ucs2_len == StrLen(all_gpt_entries[n].name)) && in find_partition_entry_by_name()
/external/libbrillo/brillo/dbus/
Ddbus_object_test.cc66 int StrLen(const std::string& str) { in StrLen() function
132 itf2->AddSimpleMethodHandler(kTestMethod_StrLen, StrLen); in SetUp()
/external/llvm-project/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp344 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI)) in optimizeStrChr() local
345 return B.CreateGEP(B.getInt8Ty(), SrcStr, StrLen, "strchr"); in optimizeStrChr()
551 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStpCpy() local
552 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStpCpy()
829 Value *StrLen = emitStrLen(CI->getArgOperand(1), B, DL, TLI); in optimizeStrStr() local
830 if (!StrLen) in optimizeStrStr()
833 StrLen, B, DL, TLI); in optimizeStrStr()
3317 Value *StrLen = emitStrLen(Src, B, DL, TLI); in optimizeStrpCpyChk() local
3318 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStrpCpyChk()

123