[strings.byte-count]

strings.byte-count is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Returns the UTF-8 byte length of a string; useful for size checks where multi-byte characters matter.

  • Value (text), required: Text to measure
  • Returns: Resolves to the number of bytes in the string

Guide: How to use [strings.byte-count]

JSON declaration

This is the complete declaration of strings.byte-count, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "strings.byte-count",
  "description": "Returns the UTF-8 byte length of a string; useful for size checks where multi-byte characters matter",
  "signature": {
    "input": {
      "kind": "text",
      "description": "Text to measure",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "integer,number",
      "description": "Resolves to the number of bytes in the string"
    }
  }
}

← strings.builder.append all strings.* slots strings.capitalize →