7 int length = data.size();
12 int testlength = type.size();
14 string teststring =
"";
17 while (counter < length) {
18 if (data[counter] ==
'=') {
20 int tempcounter = counter;
22 while (tempcounter > 0) {
24 tempcounter = tempcounter-1;
25 testchar = data[tempcounter];
26 if ( (testchar ==
'"') || (tempcounter == 0) || (testchar ==
' ') ) {
29 teststring = testchar+teststring;
36 int endspaces = teststring.size()-1;
37 string possibletype =
"";
38 while (teststring[startspaces] ==
' ')
40 while (teststring[endspaces] ==
' ')
42 for (
int j = startspaces;
j <= endspaces;
j++)
43 possibletype = possibletype+teststring[
j];
47 if (possibletype == type) {
49 size_t returncounter = counter;
50 string returnstring =
"";
52 while (data[returncounter] ==
' ')
55 while (data[returncounter] ==
' ')
57 while ( returncounter < (data.size()-1) ) {
58 if ( (data[returncounter] ==
'"') || (data[returncounter] ==
' ') )
60 returnstring = returnstring+data[returncounter];
71 teststring = testchar+teststring;