summaryrefslogtreecommitdiff
path: root/src/utils/utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Port libcss to libwapcaplet.Daniel Silverstone2009-02-141-1/+18
| | | | | | | | | It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517
* Make fpmath stuff public.John Mark Bell2009-02-141-114/+2
| | | | | | Un-inline string->fixed conversion routine. svn path=/trunk/libcss/; revision=6513
* Fix handling of max -ve numbersAdrian Lees2009-01-241-9/+26
| | | | svn path=/trunk/libcss/; revision=6214
* Move isDigit() and isHex() to utils.h.John Mark Bell2009-01-221-0/+10
| | | | | | Fix #rgb/#rrggbb parsing to ensure that the characters are valid hex digits. svn path=/trunk/libcss/; revision=6167
* Make integer parsing more robustJohn Mark Bell2009-01-121-2/+3
| | | | svn path=/trunk/libcss/; revision=6041
* Beginnings of a colour specifier parser.John Mark Bell2009-01-111-0/+40
| | | | svn path=/trunk/libcss/; revision=6037
* css_string is now the same as a parserutils_dict_entry. This allows us to ↵John Mark Bell2008-11-271-2/+2
| | | | | | | | | | use dict entries directly as strings. iChange the way in which selectors are represented. This significantly reduces memory requirements -- reducing the approximate usage count (excludes the string dictionary, which is about 360k) of allzengarden.css from 4,535,400 bytes to 2,414,312 bytes on a 64bit platform. The string dictionary is now created and owned by the stylesheet object. The parser is just given access to this so that it can store strings in it. svn path=/trunk/libcss/; revision=5809
* 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-231-7/+59
| | | | 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-011-0/+28
Currently comprises a lexer. svn path=/trunk/libcss/; revision=4112