S
sumit369
I am getting below response from server -
Main stream options:
EncType1=H.264
Resolution1=704*576
KeyInterval1=50
FrameRate1=25
BitflowType1=VBR
NormalBitrate1=2048
Now I need to parse the parameter and its value, I have list of parameter in client, I just need the value of the parameter.
I tried by using string operation and I used -
string::find(), string::substr() and string::find_first_not_of() function
and some how I have complete the code . and its working.
the string for allowed_chars for find_first_not_of() ,
"abcdefghijklmnopqrstuvvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.:=-1234567890*"
but its very bulky code and need every time compare with each characters.
please give me some batter idea for parsing .
this should be my function -
string value = getParamValue(const string& response , const string& paramName)
its returns the value of the parameter .
eg.
if I pass "EncType1" function should returns "H.264"
Thanks
Sumit
Main stream options:
EncType1=H.264
Resolution1=704*576
KeyInterval1=50
FrameRate1=25
BitflowType1=VBR
NormalBitrate1=2048
Now I need to parse the parameter and its value, I have list of parameter in client, I just need the value of the parameter.
I tried by using string operation and I used -
string::find(), string::substr() and string::find_first_not_of() function
and some how I have complete the code . and its working.
the string for allowed_chars for find_first_not_of() ,
"abcdefghijklmnopqrstuvvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.:=-1234567890*"
but its very bulky code and need every time compare with each characters.
please give me some batter idea for parsing .
this should be my function -
string value = getParamValue(const string& response , const string& paramName)
its returns the value of the parameter .
eg.
if I pass "EncType1" function should returns "H.264"
Thanks
Sumit