Unicode C++
Unicode C++
StringBuilder GetAfterBetween
Demonstrates the GetAfterBetween method.Chilkat Unicode C++ Downloads
#include <CkStringBuilderW.h>
void ChilkatSample(void)
{
CkStringBuilderW sb;
sb.Append(L"<abc><person><name>Joe</name></person><company><name>Chilkat Software</name></company></abc>");
// The GetAfterBetween method gets the substring between two arbitrary marker strings, and doesn't
// start searching until the searchAfter string is passed.
// For example, to get the company name in the string above...
const wchar_t *searchAfter = L"<company>";
const wchar_t *companyName = sb.getAfterBetween(searchAfter,L"<name>",L"</name>");
wprintf(L"Company Name = %s\n",companyName);
}