Settings
in package
Parser settings class.
Configure parser behaviour here.
Table of Contents
- $bLenientParsing : mixed
- Lenient parsing. When used (which is true by default), the parser will not choke on unexpected tokens but simply ignore them.
- $bMultibyteSupport : mixed
- Multi-byte string support. If true (mbstring extension must be enabled), will use (slower) mb_strlen, mb_convert_case, mb_substr and mb_strpos functions. Otherwise, the normal (ASCII-Only) functions will be used.
- $sDefaultCharset : mixed
- The default charset for the CSS if no `@charset` rule is found. Defaults to utf-8.
- beStrict() : mixed
- create() : mixed
- withDefaultCharset() : mixed
- withLenientParsing() : mixed
- withMultibyteSupport() : mixed
- __construct() : mixed
Properties
$bLenientParsing
Lenient parsing. When used (which is true by default), the parser will not choke on unexpected tokens but simply ignore them.
public
mixed
$bLenientParsing
= true
$bMultibyteSupport
Multi-byte string support. If true (mbstring extension must be enabled), will use (slower) mb_strlen, mb_convert_case, mb_substr and mb_strpos functions. Otherwise, the normal (ASCII-Only) functions will be used.
public
mixed
$bMultibyteSupport
$sDefaultCharset
The default charset for the CSS if no `@charset` rule is found. Defaults to utf-8.
public
mixed
$sDefaultCharset
= 'utf-8'
Methods
beStrict()
public
beStrict() : mixed
Return values
mixed —create()
public
static create() : mixed
Return values
mixed —withDefaultCharset()
public
withDefaultCharset(mixed $sDefaultCharset) : mixed
Parameters
- $sDefaultCharset : mixed
Return values
mixed —withLenientParsing()
public
withLenientParsing([mixed $bLenientParsing = true ]) : mixed
Parameters
- $bLenientParsing : mixed = true
Return values
mixed —withMultibyteSupport()
public
withMultibyteSupport([mixed $bMultibyteSupport = true ]) : mixed
Parameters
- $bMultibyteSupport : mixed = true
Return values
mixed —__construct()
private
__construct() : mixed