Unicode C++
Unicode C++
Load StringTable from a StringBuilder
Demonstrates how to load a StringTable from the text contained in a Chilkat StringBuilder object.Chilkat Unicode C++ Downloads
#include <CkStringTableW.h>
#include <CkStringBuilderW.h>
void ChilkatSample(void)
{
bool success = false;
CkStringTableW strTab;
CkStringBuilderW sb;
sb.Append(L"This is line 1\r\n");
sb.Append(L"An empty line follows...\r\n");
sb.Append(L"\r\n");
sb.Append(L"This is line 4\r\n");
strTab.AppendFromSb(sb);
int i = 0;
int numStrings = strTab.get_Count();
while (i < numStrings) {
wprintf(L"%d: %s\n",i,strTab.stringAt(i));
i = i + 1;
}
}