HPDFXFALocaleJavaScript

Unit: HPDFXFALocale

Declaration

function HPDFXFALocaleJavaScript(const Locale: TXFALocaleData): AnsiString;

Behaviour

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

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

The object carries 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