|
| beStrict () |
| Configures the parser to choke on invalid rules.
|
|
| withDefaultCharset ($sDefaultCharset) |
| Sets the charset to be used if the CSS does not contain an @charset declaration.
|
|
| withLenientParsing ($bLenientParsing=true) |
| Configures whether the parser should silently ignore invalid rules.
|
|
| withMultibyteSupport ($bMultibyteSupport=true) |
| Enables/disables multi-byte string support.
|
|
|
bool | $bLenientParsing = true |
| Whether the parser silently ignore invalid rules instead of choking on them.
|
|
bool | $bMultibyteSupport |
| Multi-byte string support.
|
|
string | $sDefaultCharset = 'utf-8' |
| The default charset for the CSS if no @charset declaration is found.
|
|
◆ beStrict()
Sabberworm\CSS\Settings::beStrict |
( |
| ) |
|
Configures the parser to choke on invalid rules.
- Return values
-
◆ create()
static Sabberworm\CSS\Settings::create |
( |
| ) |
|
|
static |
◆ withDefaultCharset()
Sabberworm\CSS\Settings::withDefaultCharset |
( |
| $sDefaultCharset | ) |
|
Sets the charset to be used if the CSS does not contain an @charset
declaration.
- Parameters
-
- Return values
-
◆ withLenientParsing()
Sabberworm\CSS\Settings::withLenientParsing |
( |
| $bLenientParsing = true | ) |
|
Configures whether the parser should silently ignore invalid rules.
- Parameters
-
- Return values
-
◆ withMultibyteSupport()
Sabberworm\CSS\Settings::withMultibyteSupport |
( |
| $bMultibyteSupport = true | ) |
|
Enables/disables 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.
- Parameters
-
- Return values
-
◆ $bMultibyteSupport
bool Sabberworm\CSS\Settings::$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.
◆ $sDefaultCharset
string Sabberworm\CSS\Settings::$sDefaultCharset = 'utf-8' |
The default charset for the CSS if no @charset
declaration is found.
Defaults to utf-8.
The documentation for this class was generated from the following file:
- lib/php-css-parser/src/Settings.php