/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterDefinition } from "../MatterDefinition.js";
import { DatatypeElement as Datatype } from "../../elements/index.js";
const string = Datatype({
  name: "string",
  type: "octstr",
  description: "Character String",
  isSeed: true,
  metatype: "string",
  details: "The character string data type is derived from an octet string. The octets shall be characters with UTF-8 encoding. An instance of this data type shall NOT contain truncated code points.\nNote that the character string type is a bounded sequence of characters whose size bound format is not specified in the data model, but rather a property of the underlying encoding. Therefore, no assumptions are to be made about the presence or absence of a length prefix or null-terminator byte, or other implementation considerations.\nIt is recommended to define constraints on the maximum possible string length.\nIf at least one of the code points within the string has value 31 (0x1F), which is Unicode INFORMATION SEPARATOR 1 and ASCII Unit Separator, then any client making use of the string shall only consider the code points that appear before the first INFORMATION SEPARATOR 1 as being the textual information carried by the string. Any comparison between such a string and other strings shall use the textual component before the first INFORMATION SEPARATOR 1. The remainder of the character string after a first INFORMATION SEPARATOR 1 is reserved for future use by this specification. Implementations of this version of the specification shall NOT produce character strings containing INFORMATION SEPARATOR 1.",
  xref: { document: "core", section: "7.18.2.36" }
});
MatterDefinition.children.push(string);
export {
  string
};
//# sourceMappingURL=string.js.map
