What is the equivalent QM code for the following C++ code 
#1 (For statement section)
#2 (Char type variable definition section)

#1 (For statement section)
int pos = SendEditor(SCI_GETCURRENTPOS);
int nPrevLinePos = SendEditor(SCI_POSITIONFROMLINE,line-1);
int c = ' ';
for(int p = pos-2;
p>=nPrevLinePos && isspace(c);
p--, c=SendEditor(SCI_GETCHARAT,p));
#2 (Char type variable definition section)