| 279 | } |
| 280 | |
| 281 | Result<Value> TextAttributeValueParser::parse(const ColorPalette& colorPalette, |
| 282 | const Value& value, |
| 283 | ILogger& logger, |
| 284 | bool strict) { |
| 285 | auto parsed = doParse(&colorPalette, value, &logger, strict); |
| 286 | if (!parsed) { |
| 287 | return parsed.moveError(); |
| 288 | } |
| 289 | |
| 290 | return Value(parsed.value()); |
| 291 | } |
| 292 | |
| 293 | StringBox TextAttributeValueParser::toString(const Value& value) { |
| 294 | auto parsed = doParse(nullptr, value, nullptr, false); |
no test coverage detected