HPDFXFALocaleJavaScript

Unit: HPDFXFALocale

Declaration

function HPDFXFALocaleJavaScript(const Locale: TXFALocaleData): AnsiString;

Behavior

Returns an ASCII-safe JavaScript object literal containing the resolved locale data

Escapes every non-ASCII code unit and control character as a Unicode escape, preserving surrogate pairs and avoiding system ANSI conversion

The object contains name, decimal, group, currency, currencyCode, am, pm, shortDate, longDate, time, month and weekday arrays, date/time pattern arrays and numeric patterns

Related APIs

TXFALocaleData, HPDFXFALoadDocumentLocale and FormCalc Functions