aboutsummaryrefslogtreecommitdiffstats
path: root/include/litehtml/html_microsyntaxes.h
blob: 04c7445ee511a4afdb896f7d053ca18b695d2b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LH_HTML_MICROSYNTAXES_H
#define LH_HTML_MICROSYNTAXES_H

#include "types.h"

namespace litehtml
{

	bool html_parse_integer(const string& str, int& val);
	bool html_parse_non_negative_integer(const string& str, int& val);

	enum html_dimension_type
	{
		html_length,
		html_percentage
	};

	bool html_parse_dimension_value(const string& str, float& val, html_dimension_type& type);
	bool html_parse_nonzero_dimension_value(const string& str, float& val, html_dimension_type& type);

} // namespace litehtml

#endif // LH_HTML_MICROSYNTAXES_H