1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| class String // just an extract !
{
friend class Buffer;
public:
// Searching (return starting index, or 0 if not found)
// like "C" strstr
int Find(String& s, FindFlags ff = ffNone, Long iStart = -1) const;
int Find(LPCWSTR wsz, FindFlags ff = ffNone, Long iStart = -1) const;
int Find(LPCSTR sz, FindFlags ff = ffNone, Long iStart = -1) const;
// Like "C" strchr
int Find(WCHAR wch, FindFlags ff = ffNone, Long iStart = -1) const;
int Find(CHAR ch, FindFlags ff = ffNone, Long iStart = -1) const;
};
inline int String::Find(String& s, FindFlags ff, Long iStart) const
{
return (Find(s.m_bs, ff, iStart));
}
inline int String::Find(LPCSTR sz, FindFlags ff, Long iStart) const
{
return (Find(String(sz), ff, iStart)); // <----- ERROR !!!!!!!!!!!!!
}
inline int String::Find(CHAR ch, FindFlags ff, Long iStart) const
{
return (Find(CharToWChar(ch), ff, iStart));
} |
Partager