Declared in NSScanner+HTML.h

Overview

Extensions for NSScanner to deal with HTML-specific parsing, primarily CSS-related things

Instance Methods

scanCSSAttribute:value:

Scans for a CSS attribute used in CSS style sheets

- (BOOL)scanCSSAttribute:(NSString *__autoreleasing *)name value:(id __autoreleasing *)value

Parameters

name

An optional output parameter that will contain the name of the scanned attribute if successful

value

An optional output parameter that will contain the value of the scanned attribute if successful. This value may be a string or an array.

Return Value

YES if an URL String could be scanned

Declared In

NSScanner+HTML.h

scanCSSURL:

Scans for URLs used in CSS style sheets

- (BOOL)scanCSSURL:(NSString *__autoreleasing *)urlString

Parameters

urlString

An optional output parameter that will contain the scanned URL string if successful

Return Value

YES if an URL String could be scanned

Declared In

NSScanner+HTML.h

scanHTMLColor:

Scans for a typical HTML color, typically either #FFFFFF, rgb(255,255,255) or a HTML color name.

- (BOOL)scanHTMLColor:(DTColor *__autoreleasing *)color

Parameters

color

An optional output parameter that will contain the scanned color if successful

Return Value

YES if a color could be scanned

Declared In

NSScanner+HTML.h

scanHTMLColor:HTMLName:

Scans for a typical HTML color, typically either #FFFFFF, rgb(255,255,255) or a HTML color name.

- (BOOL)scanHTMLColor:(DTColor *__autoreleasing *)color HTMLName:(NSString *__autoreleasing *)name

Parameters

color

An optional output parameter that will contain the scanned color if successful

name

An optional output parameter that will contain the HTML color string

Return Value

YES if a color could be scanned

Declared In

NSScanner+HTML.h