Sample code for 30+ languages & platforms
Unicode C++

StringBuilder GetBetween

Demonstrates the GetBetween method.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkStringBuilderW.h>

void ChilkatSample(void)
    {
    CkStringBuilderW sb;
    sb.Append(L"<company><name>Chilkat Software</name></company>");

    //  For example, to get the company name in the string above...
    const wchar_t *companyName = sb.getBetween(L"<name>",L"</name>");
    wprintf(L"Company Name = %s\n",companyName);
    }