First page Back Continue Last page Overview Graphics
YANG String Encoding
Strings can be specified in several ways:
- Double Quoted String: whitespace allowed, but it is adjusted (escape character sequences replaces, whitespace trimmed)
- Single Quoted String: whitespace allowed, and is preserved
(this form is safest for pattern strings)
- Unquoted String: no whitespace allowed
(Language tokens like ‘{‘ and ‘}’ are not allowed.)
Strings can be specified in fragments if desired:
- “foobarbaz” is the same as “foo” + “bar” + “baz”
- Mixing forms is allowed: “foo” + bar + ‘baz’
For comparison purposes, the quotes are ignored
- “foo” is equivalent to foo or ‘foo’
- “foo bar “ is not the same as ‘foo bar ‘ (extra space)