Lines Matching defs:pchString
541 * @param pchString The string.
546 const char *pchString, uint32_t cchString, uint32_t cbEntry)
641 memcpy(pEntry->szString, pchString, cchString);
657 * @param pchString The string.
661 const char *pchString, uint32_t cchString)
682 memcpy(pBigEntry->Core.szString, pchString, cchString);
695 * @param pchString The string.
700 const char *pchString, uint32_t cchString, uint32_t iFreeList)
752 memcpy(pEntry->szString, pchString, cchString);
767 * @param pchString The string.
773 static PRTSTRCACHEENTRY rtStrCacheLookUp(PRTSTRCACHEINT pThis, uint32_t uHashLen, uint32_t cchString, const char *pchString,
802 if ( !memcmp(pEntry->szString, pchString, cchString)
810 && !memcmp(pBigEntry->Core.szString, pchString, cchString))
829 RTDECL(const char *) RTStrCacheEnterN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString)
838 uint32_t const uHash = sdbmN(pchString, cchString, &cchString);
848 PRTSTRCACHEENTRY pEntry = rtStrCacheLookUp(pThis, uHashLen, cchString32, pchString, &iFreeHashTabEntry, &cCollisions);
861 pEntry = rtStrCacheAllocHeapEntry(pThis, uHash, pchString, cchString32);
864 pEntry = rtStrCacheAllocMergedEntry(pThis, uHash, pchString, cchString32, cbEntry);
867 pEntry = rtStrCacheAllocFixedEntry(pThis, uHash, pchString, cchString32,
923 static const char *rtStrCacheEnterLowerWorker(PRTSTRCACHEINT pThis, const char *pchString, size_t cchString)
933 memcpy(pszStackBuf, pchString, cchString);
946 memcpy(pszHeapBuf, pchString, cchString);
954 RTDECL(const char *) RTStrCacheEnterLowerN(RTSTRCACHE hStrCache, const char *pchString, size_t cchString)
958 return rtStrCacheEnterLowerWorker(pThis, pchString, RTStrNLen(pchString, cchString));