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: stringsstart1: optional integer starting position instr1;0if omittedstart2: optional integer starting position instr2;0if omittedignore-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.
Source Notes
- [vl-string-mismatch (AutoLISP)](https://help.autodesk.com/cloudhelp/2024/ENU/AutoCAD-MAC-AutoLISP-Reference/files/GUID-D1EA6F47-146E-44BC-BBCA-40B7A874C0B8.htm)
- Status: documented.
Notes
- Autodesk documents that the function returns the length of the longest common prefix of the compared suffixes.
- Autodesk documents zero-based positions for
start1andstart2. - Autodesk documents that AutoCAD 2021 changed the accepted text model from ASCII-oriented to Unicode-aware behavior.