Adapter implementing ValueParsers\Normalizers\StringNormalizer based on \Wikibase\Lib\StringNormalizer.
More...
|
| __construct (WikibaseLibStringNormalizer $normalizer) |
|
| normalize ( $value) |
| Trims leading and trailing whitespace and performs unicode normalization by calling \Wikibase\Lib\StringNormalizer::trimToNFC(). More...
|
|
Adapter implementing ValueParsers\Normalizers\StringNormalizer based on \Wikibase\Lib\StringNormalizer.
Used to perform string normalization in StringParser.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Parsers\WikibaseStringValueNormalizer::__construct |
( |
WikibaseLibStringNormalizer |
$normalizer | ) |
|
- Parameters
-
WikibaseLibStringNormalizer | $normalizer | |
◆ normalize()
Wikibase\Repo\Parsers\WikibaseStringValueNormalizer::normalize |
( |
|
$value | ) |
|
Trims leading and trailing whitespace and performs unicode normalization by calling \Wikibase\Lib\StringNormalizer::trimToNFC().
- See also
- StringNormalizer::normalize()
-
\Wikibase\Lib\StringNormalizer::trimToNFC()
- Parameters
-
string | $value | the value to normalize |
- Exceptions
-
InvalidArgumentException | if $value is not a string |
- Returns
- string the normalized value
◆ $normalizer
Wikibase\Repo\Parsers\WikibaseStringValueNormalizer::$normalizer |
|
private |
The documentation for this class was generated from the following file: