Function LenEncoding returns the length of the specified string value in the specified encoding: 0 – mac; 1 – win; 2 – system; 3 – UTF8; 4 – UTF16
FUNCTION LenEncoding(
v : DYNARRAY[] of CHAR;
encoding : INTEGER): INTEGER;def vs.LenEncoding(v, encoding):
return INTEGER| Name | Type | Description |
|---|---|---|
| v | DYNARRAY[] of CHAR | Source string. |
| encoding | INTEGER | 0 – mac; 1 – win; 2 – system; 3 – UTF8; 4 – UTF16 |
resultN := LenEncoding(v, 1);import vs
# Function LenEncoding returns the length of the specified string value in
# the specified encoding: 0 – mac; 1 – win; 2 – system; 3 – UTF8; 4 – UTF16.
v = 'Example'
encoding = 1
resultN = vs.LenEncoding(v, encoding)
vs.Message('LenEncoding returned: ' + str(resultN))Availability: from Vectorworks 2018