FormatExtension extension

on

Properties

arabicNumbers String

Available on String, provided by the FormatExtension extension

Converts English numeric characters to Arabic numeric characters.
no setter
englishNumbers String

Available on String, provided by the FormatExtension extension

Converts Arabic numeric characters to English numeric characters.
no setter
forceLTR String

Available on String, provided by the FormatExtension extension

Adds a Left-To-Right Mark (LRM) to the string to force Left-To-Right text direction. Returns the string with the LRM added at the beginning and end. If the string contains only English letters and numbers, it returns the string unchanged.
no setter
forceLTRWithPlus String

Available on String, provided by the FormatExtension extension

Adds a Left-To-Right Mark (LRM) and a plus sign to the string to force Left-To-Right text direction. Returns the string with the LRM added at the beginning and a plus sign. If the string contains only English letters and numbers, it returns the string unchanged.
no setter
formatPrice String

Available on String, provided by the FormatExtension extension

Formats a numeric string into a price format with commas and removes trailing zeroes.
no setter
maskSensitiveInfo String

Available on String, provided by the FormatExtension extension

Masks sensitive information such as emails and phone numbers.
no setter
removeWhitespace String

Available on String, provided by the FormatExtension extension

Removes all whitespace from the string.
no setter
toCamelCase String

Available on String, provided by the FormatExtension extension

Converts a string to camelCase.
no setter

Methods

truncate(int maxLength) String

Available on String, provided by the FormatExtension extension

Trims the string to a maximum length, adding ... if truncated.