summaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix rounding when fractional part is close to 1.John Mark Bell2008-11-241-3/+4
| | | | | | Add testcase to exercise this. svn path=/trunk/libcss/; revision=5766
* Fix number parsing and make test code automatically determine correctness.John Mark Bell2008-11-241-2/+3
| | | | | | | More test data, which covers everything. Fix includes in libcss/types.h svn path=/trunk/libcss/; revision=5764
* All numerical values are represented in 22:10 fixed point.John Mark Bell2008-11-232-7/+104
| | | | svn path=/trunk/libcss/; revision=5762
* Make integer_from_css_string return the number of input bytes processed.John Mark Bell2008-11-201-2/+5
| | | | svn path=/trunk/libcss/; revision=5758
* Really stop on first non-digitJohn Mark Bell2008-10-271-1/+1
| | | | svn path=/trunk/libcss/; revision=5647
* Function to extract an integer from a css_string.John Mark Bell2008-10-261-1/+43
| | | | | | | | | | Use this in font-weight parsing. TODO: NUMBER tokens may contain [-+]? ([0-9]+ | [0-9]* '.' [0-9]+). The lexer currently doesn't cater for the [-+]? part. This is a bug (inherited from the grammar in the spec), and must be fixed. TODO: integer_from_css_string probably wants to pass out the number of characters processed so that the client can determine if the input was valid for their context. svn path=/trunk/libcss/; revision=5645
* Import beginnings of a CSS parsing library.John Mark Bell2008-05-014-0/+183
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112