Function cedar_policy_core::parser::parse_internal_string
source · pub fn parse_internal_string(val: &str) -> Result<SmolStr, ParseErrors>
Expand description
parse a string into an internal Cedar string
This performs unescaping and validation, returning a String suitable for an attr, eid, or literal.
Quote handling is as if the input is surrounded by double quotes (“{val}”).
It does not return a string suitable for a pattern. Use the full expression parser for those.