use toAscii to get 8-bit ASCII representation of the string
use toAscii to get 8-bit ASCII representation of the string
Mithin
www.mithin.in
Thanks 4 d reply, It returns an 8-bit ASCII representation of the string,
but how can i compare this , that the ASCII values is between [0-31] or not.
Pls explain it with me example
Always Believe in Urself![]()
Merry
You may very well write ur own function for that -
Hope u get the logicQt Code:
{ input.clear(); for(int i=0;i<asciiInput.length();i++) { if(asciiInput.at(i) is not between [0-31] // You logic to determine which chars u want input += asciiInput.at(i); } }To copy to clipboard, switch view to plain text mode
Last edited by jpn; 27th July 2008 at 08:49. Reason: missing [code] tags
merry (14th July 2008)
Thanks for d reply, I got the logic, but there is a confusion in a line
Qt Code:
if(asciiInput.at(i) is not between [0-31] You logic to determine which chars u wantTo copy to clipboard, switch view to plain text mode
I want to compare all the characters whose ASCII value lies between [0-31], how can i do this, Is I have to compare ASCII value one by one or is there any other logic
Always Believe in Urself![]()
Merry
Thanks all my problem is solved.
Always Believe in Urself![]()
Merry
Bookmarks