@COUNTSAFEX — Attempts to expand an internal variable, function, or array element, and then returns the number of “safe” characters in the resulting string.

Syntax:
%@COUNTSAFEX[text]

text:the variable, function, or array element to expand

This function performs variable expansion on the variable, function, or array element named by text, and then counts the number of characters in the range U+FF00 through U+FF5F in the resulting string. Whether these were “dangerous” characters remapped by this plugin, or whether they were present to begin with, is unknown.

Note: Do not type a percent sign before the variable or function name. If you do, TCC’s parser will expand the argument before @COUNTSAFEX gets to see it.