Subversion Repositories Kolibri OS

Rev

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

Rev 7754 Rev 7755
Line 1... Line 1...
1
struct _anchors {
1
struct _anchors {
-
 
2
	char current[256];
2
	collection anchor_name;
3
	collection anchor_name;
3
	collection anchor_position;
4
	collection anchor_position;
4
	void add();
5
	void add();
5
	int get_pos_by_name();
6
	int get_pos_by_name();
6
	void clear();
7
	void clear();
-
 
8
	void take_anchor_from();
7
} anchors;
9
} anchors;
Line 8... Line 10...
8
 
10
 
9
void _anchors::add(dword _name, _pos)
11
void _anchors::add(dword _name, _pos)
10
{
12
{
Line 28... Line 30...
28
	anchor_name.drop();
30
	anchor_name.drop();
29
	anchor_position.drop();
31
	anchor_position.drop();
30
}
32
}
31
33
 
Line -... Line 34...
-
 
34
void _anchors::take_anchor_from(dword _URL)
-
 
35
{
-
 
36
	int anchor_pos;
-
 
37
	if (!current) && (_URL) && (anchor_pos = strrchr(_URL, '#')) {
-
 
38
		strncpy(#current, _URL+anchor_pos-1, sizeof(_anchors.current)-1);
-
 
39
		ESBYTE[_URL+anchor_pos-1] = EOS;
-
 
40
	}
-
 
41
}
-
 
42