Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 991 Bytes

File metadata and controls

43 lines (34 loc) · 991 Bytes

LenEncoding

Description

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

Parameters

Name Type Description
v DYNARRAY[] of CHAR Source string.
encoding INTEGER 0 – mac; 1 – win; 2 – system; 3 – UTF8; 4 – UTF16

Examples

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))

Version

Availability: from Vectorworks 2018

Category