Link Search Menu Expand Document

length

Explanation Find the length of the string.
Call format var s = length( character string, length [, processing unit ]
Return value The length of the specified string
Arguments String string String to check the length
Integer processing unit 0: Treat as one character without distinguishing between half-width and full-width
1: Half-width characters are treated as one character, and full-width characters are treated as two characters. If omitted, half-width and full-width characters will not be distinguished.
*AI does not distinguish between half-width and full-width characters regardless of the argument*
Exception None
Example of use
var s = "アクシスソフト株式会社";
print(length(s), length(s, 1), "\n");
Related item