IDL 4.2 · §7.4.1.4.4.4

String & wstring

string and wstring are variable-length character sequences, optionally bounded. A bound becomes a validation limit and informs buffer sizing; unbounded strings are length-prefixed on the wire.

Example

struct Label {
  string<64> name;   // bounded
  string     note;   // unbounded
};

ZeroDDS support

OMG IDL 4.2 section§7.4.1.4.4.4
Implementationidl/src/ast
Testsparse_omg.rs
Status✓ RC3 — parsed, validated and code-generated across all target languages.

See also: IDL construct coverage · idl-4.2 audit · OMG IDL 4.2 spec