Home
last modified time | relevance | path

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

/external/zlib/src/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/libcxx/test/std/experimental/string.view/string.view.cons/
Dfrom_literal.pass.cpp24 size_t StrLen ( const CharT *s ) { in StrLen() function
33 assert ( sv1.size() == StrLen( s )); in test()
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmsnamed.c350 cmsUInt32Number StrLen = 0; in cmsMLUgetASCII() local
360 Wide = _cmsMLUgetWide(mlu, &StrLen, Lang, Cntry, NULL, NULL); in cmsMLUgetASCII()
363 ASCIIlen = StrLen / sizeof(wchar_t); in cmsMLUgetASCII()
395 cmsUInt32Number StrLen = 0; in cmsMLUgetWide() local
403 Wide = _cmsMLUgetWide(mlu, &StrLen, Lang, Cntry, NULL, NULL); in cmsMLUgetWide()
407 if (Buffer == NULL) return StrLen + sizeof(wchar_t); in cmsMLUgetWide()
413 if (BufferSize < StrLen + sizeof(wchar_t)) in cmsMLUgetWide()
414 StrLen = BufferSize - + sizeof(wchar_t); in cmsMLUgetWide()
416 memmove(Buffer, Wide, StrLen); in cmsMLUgetWide()
417 Buffer[StrLen / sizeof(wchar_t)] = 0; in cmsMLUgetWide()
[all …]
/external/clang/include/clang/Basic/
DIdentifierTable.h88 template <std::size_t StrLen>
89 bool isStr(const char (&Str)[StrLen]) const { in isStr() argument
90 return getLength() == StrLen-1 && !memcmp(getNameStart(), Str, StrLen-1); in isStr()
/external/llvm/include/llvm/ADT/
DStringMap.h32 unsigned StrLen; variable
34 explicit StringMapEntryBase(unsigned Len) : StrLen(Len) {} in StringMapEntryBase()
36 unsigned getKeyLength() const { return StrLen; } in getKeyLength()
/external/clang/include/clang/Sema/
DTypoCorrection.h188 template<std::size_t StrLen>
189 bool isKeyword(const char (&Str)[StrLen]) const { in isKeyword() argument
/external/clang/lib/Basic/
DDiagnostic.cpp397 template <std::size_t StrLen>
399 const char (&Str)[StrLen]) { in ModifierIs() argument
400 return StrLen-1 == ModifierLen && !memcmp(Modifier, Str, StrLen-1); in ModifierIs()
/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp48 Constant *StrLen = M->getOrInsertFunction( in EmitStrLen() local
51 CallInst *CI = B.CreateCall(StrLen, CastToCStr(Ptr, B), "strlen"); in EmitStrLen()
52 if (const Function *F = dyn_cast<Function>(StrLen->stripPointerCasts())) in EmitStrLen()
DSimplifyLibCalls.cpp478 Value *StrLen = EmitStrLen(Src, B, DL, TLI); in optimizeStpCpy() local
479 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStpCpy()
701 Value *StrLen = EmitStrLen(CI->getArgOperand(1), B, DL, TLI); in optimizeStrStr() local
702 if (!StrLen) in optimizeStrStr()
705 StrLen, B, DL, TLI); in optimizeStrStr()
2278 Value *StrLen = EmitStrLen(Src, B, DL, TLI); in optimizeStrpCpyChk() local
2279 return StrLen ? B.CreateInBoundsGEP(B.getInt8Ty(), Dst, StrLen) : nullptr; in optimizeStrpCpyChk()
/external/llvm/lib/Analysis/
DConstantFolding.cpp558 unsigned StrLen = Str.size(); in ConstantFoldLoadFromConstPtr() local
563 if ((NumBits >> 3) == StrLen + 1 && (NumBits & 7) == 0 && in ConstantFoldLoadFromConstPtr()
568 for (signed i = StrLen-1; i >= 0; i--) { in ConstantFoldLoadFromConstPtr()
573 for (unsigned i = 0; i < StrLen; i++) { in ConstantFoldLoadFromConstPtr()
/external/clang/lib/Sema/
DSemaInit.cpp2267 uint64_t StrLen = SL->getLength(); in CheckDesignatedInitializer() local
2268 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
2269 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue(); in CheckDesignatedInitializer()
2270 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer()
2274 for (unsigned i = 0, e = StrLen; i != e; ++i) { in CheckDesignatedInitializer()
2289 uint64_t StrLen = Str.size(); in CheckDesignatedInitializer() local
2290 if (cast<ConstantArrayType>(AT)->getSize().ult(StrLen)) in CheckDesignatedInitializer()
2291 StrLen = cast<ConstantArrayType>(AT)->getSize().getZExtValue(); in CheckDesignatedInitializer()
2292 StructuredList->resizeInits(Context, StrLen); in CheckDesignatedInitializer()
2296 for (unsigned i = 0, e = StrLen; i != e; ++i) { in CheckDesignatedInitializer()
DSemaChecking.cpp4208 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in CheckFormatString() local
4224 if (StrLen == 0 && numDataArgs > 0) { in CheckFormatString()
4239 if (!analyze_format_string::ParsePrintfString(H, Str, Str + StrLen, in CheckFormatString()
4249 if (!analyze_format_string::ParseScanfString(H, Str, Str + StrLen, in CheckFormatString()
4264 size_t StrLen = std::min(std::max(TypeSize, size_t(1)) - 1, StrRef.size()); in FormatStringHasSArg() local
4265 return analyze_format_string::ParseFormatStringHasSArg(Str, Str + StrLen, in FormatStringHasSArg()
/external/clang/lib/AST/
DItaniumMangle.cpp3716 template <std::size_t StrLen>
3718 const char (&Str)[StrLen]) { in isStreamCharSpecialization() argument
/external/clang/lib/Serialization/
DASTReader.cpp7552 unsigned StrLen = (((unsigned) StrLenPtr[0]) in DecodeIdentifierInfo() local
7555 = &PP.getIdentifierTable().get(StringRef(Str, StrLen)); in DecodeIdentifierInfo()