You are here: C++ Support Classes > dtSearch Namespace > Classes > DString Class > find Method
> DString::find Method (const char *, ptrdiff_t)
DString::find Method (const char *, ptrdiff_t)
Close
dtSearch Text Retrieval Engine Programmer's Reference
DString::find Method (const char *, ptrdiff_t)
Syntax
C++
ptrdiff_t find(const char * s, ptrdiff_t offset = 0) const;

Starting offset of the string if found, or -1 if not found

Find a substring, with an optional starting offset

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.