Function Entry: STRLEN

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: STRLEN

Name

strlen

Class

Function

Syntax

(strlen [str ...])

Arguments and Values

  • str — zero or more strings

Description

Returns the length of the string.

Return Values

Integer.

Autodesk documents:

  • the sum of the lengths when multiple arguments are supplied
  • 0 if no arguments are supplied
  • 0 for the empty string

Side Effects

None.

Compatibility

Autodesk explicitly documents the Unicode-era counting change.

Notes

This function is one of the places where internal representation and observable character counting must not be conflated.

Autodesk documents that AutoCAD 2021 changed the function so Unicode characters are counted correctly when LISPSYS is 1 or 2.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.