Feel.Value.String (feel v0.1.0)

Copy Markdown View Source

The FEEL type string (DMN 1.6, section 10.3.2.3.2).

A string is a sequence of Unicode characters. It is represented as a UTF-8 binary, and a binary that is not valid UTF-8 is not a FEEL string.

Summary

Functions

Returns the type descriptor of string.

Returns true for a valid UTF-8 binary.

Types

t()

@type t() :: String.t()

Functions

type()

@spec type() :: Feel.Type.t()

Returns the type descriptor of string.

value?(term)

@spec value?(term()) :: boolean()

Returns true for a valid UTF-8 binary.

iex> Feel.Value.String.value?("naïve")
true
iex> Feel.Value.String.value?(<<0xFF>>)
false