dlangui.core.cssparser

Undocumented in source.

Members

Functions

joinPropertyValueList
string joinPropertyValueList(string[] list)

joins list of items into comma separated string, each item in quotation marks

parseCssDeclaration
CssDeclaration parseCssDeclaration(string src, bool mustBeInBrackets)

Parse css properties declaration either in {} or w/o {} - e.g. { width: 40%; margin-top: 3px } -- returns null if parse error occured or property list is empty

parseCssSelector
CssSelector parseCssSelector(string str, Document doc)

parse Css selector, return selector object if parsed ok, null if error occured

parseStyleSheet
bool parseStyleSheet(StyleSheet sheet, Document doc, string str)

parse stylesheet text

splitPropertyValueList
bool splitPropertyValueList(string str, string[] list)

splits string like "Arial", Times New Roman, Courier; into list, stops on ; and } returns true if at least one item added to list; moves str to new position

Meta