login about faq

Hello

I'm using the CkString package, "split a string using a delimiter char" as follows:

const char * MOBILE_AS_CLIENT_TO_MERCHANT::SplitString(CkString dec_tkn) { const char * s; bool exceptDoubleQuoted = true; bool exceptEscaped = true; // Do not treat characters preceded with a backslash as a delimiter. bool keepEmpty = false; // Do not keep empty fields. char delimiter = ',';

CkStringArray *array = dec_tkn.split(delimiter,exceptDoubleQuoted,exceptEscaped,keepEmpty);
cout<<"\n\n\nSPLITTING THE DECRYPTED TOKEN CONTENTS, TO COMPARE THE PROVIDER'S NAME";
cout<<"\n----------------------------------------------------------------------\n";
int i;
for (i=0; i<array->get_Count(); i++)
{
    const char * e = array->getString(i);
    cout<<i<<":["<<e<<"]\n";
     }

My question is: How can i return all of the items of the array?

Best Regards. Rania

asked Feb 26 '14 at 11:16

rania's gravatar image

rania
45182228

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×65

Asked: Feb 26 '14 at 11:16

Seen: 677 times

Last updated: Feb 26 '14 at 11:16

powered by OSQA