Function Entry: VL-STRING-MISMATCH

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

Function Entry: VL-STRING-MISMATCH

Name

vl-string-mismatch

Class

Visual LISP Function

Syntax

(vl-string-mismatch str1 str2 [start1 [start2 [ignore-case]]])

Arguments and Values

  • str1, str2: strings
  • start1: optional integer starting position in str1; 0 if omitted
  • start2: optional integer starting position in str2; 0 if omitted
  • ignore-case: optional T or nil

Description

Compares two strings and returns the position of the first mismatch.

Return Values

Index of mismatch, or nil if the compared regions match.

Side Effects

None.

Compatibility

Case and character-unit behavior should be treated as Unicode-sensitive.

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.

Notes

  • Autodesk documents that the function returns the length of the longest common prefix of the compared suffixes.
  • Autodesk documents zero-based positions for start1 and start2.
  • Autodesk documents that AutoCAD 2021 changed the accepted text model from ASCII-oriented to Unicode-aware behavior.