canEncode static method

bool canEncode(
  1. String value
)

Tests whether the given string can be represented as a multiline basic string.

Multiline basic strings can represent all strings that do only contain scalar Unicode values. While a basic string can contain surrogate pairs, there must be no unpaired high or low surrogate characters.

Implementation

static bool canEncode(String value) => TomlBasicString.canEncode(value);