int parser::funcParser(fA &a, fA &b) {
int cnt;
int i;
int x;
std::string aa;
std::string gg;
string::size_type idx;
char buf[5];
aa= a.getField(35);
if(aa.empty() )
{
return 12345;
}
else{
if(!aa.empty())
{
idx = aa.find("=");
gg= aa.substr(0, idx);
}
}
return 0;
}
that function will give me the value, and that value will be in this format " http://localhost/aa:aa:&codex=gg&a=424"
then i send that to a java application. they demand it to be on a bytes format or an object but what i think is it can be a string since i only added a calue of a gg.
is there some library that has an interpreter that can be used for of bytes or object or string?