Subversion Repositories Kolibri OS

Rev

Rev 8440 | Rev 8444 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8440 Rev 8443
Line 120... Line 120...
120
	// "q"  - quote char
120
	// "q"  - quote char
121
	char q = NULL;
121
	char q = NULL;
122
	dword fixeq;
122
	dword fixeq;
123
	unsigned char  val[6000];
123
	unsigned char  val[6000];
124
	unsigned char attr[6000];
124
	dword attr;
125
	
125
	
Line 126... Line 126...
126
	if (ESBYTE[pe] == '/') pe--;
126
	if (ESBYTE[pe] == '/') pe--;
127
	while (pe>ps) && (__isWhite(ESBYTE[pe])) pe--;
127
	while (pe>ps) && (__isWhite(ESBYTE[pe])) pe--;
Line 128... Line 128...
128
 
128
 
Line 153... Line 153...
153
	}
153
	}
154
 
154
 
Line 155... Line 155...
155
	//find ATTR start and copy
155
	//find ATTR start and copy
156
	while (pe>ps) && (!__isWhite(ESBYTE[pe])) pe--;
156
	while (pe>ps) && (!__isWhite(ESBYTE[pe])) pe--;
157
	strlcpy(#attr, pe + 1, sizeof(attr)-1);
157
	attr = pe + 1;
158
	ESBYTE[pe] = '\0';
158
	ESBYTE[pe] = '\0';
Line 159... Line 159...
159
 
159
 
160
	//fix case: src=./images/KolibriOS_logo2.jpg?sid=e8ece8b38b
160
	//fix case: src=./images/KolibriOS_logo2.jpg?sid=e8ece8b38b
161
	fixeq = strchr(#attr,'=');
161
	fixeq = strchr(attr,'=');
162
	if (!q) && (fixeq) {
162
	if (!q) && (fixeq) {
163
		strlcpy(#val, fixeq+1, sizeof(val)-1);
163
		strlcpy(#val, fixeq+1, sizeof(val)-1);
164
		ESBYTE[fixeq+1] = '\0';
164
		ESBYTE[fixeq+1] = '\0';
165
	}
165
	}
166
	strlwr(#attr);
166
	strlwr(attr);
Line 167... Line 167...
167
	strrtrim(#val);
167
	strrtrim(#val);
168
 
168
 
Line 169... Line 169...
169
	attributes.add(#attr);
169
	attributes.add(attr);
170
	values.add(#val);
170
	values.add(#val);
171
 
171
 
172
	if (debug_mode) {
172
	if (debug_mode) {
173
		debug("atr: "); debugln(#attr);
173
		debug("atr: "); debugln(attr);
Line 174... Line 174...
174
		debug("val: "); debugln(#val);
174
		debug("val: "); debugln(#val);