The following mask types are available in the Blueriq library:
Mask type | Base type | Description |
---|---|---|
AQ_DatePattern | date, dateTime | Applies a date(-time) format with a specific pattern to a date(-time) value. |
AQ_FirstToUpperCase | string | Converts the first character of a string to upper case and the rest of the string to lowercase. |
AQ_NumberPattern | integer, number, currency, percentage | Applies a number format with a specific pattern to an numerical value. |
AQ_OrdinalNumber | integer | Displays an ordinal number for an integer value. |
AQ_RegularExpression | string, number, integer, currency, percentage | Replaces each substring of a string value that matches a given regular expression with the given replacement. |
AQ_RomanInteger | integer | Displays an integer value in roman numerals. |
AQ_SetCase | string | Displays a string value in upper or lower |
AQ_SpelledBoolean | boolean | Displays a boolean value in words. |
AQ_SpelledCurrency | currency | Displays a currency value in words. |
AQ_SpelledDayOfWeek | integer | Displays a weekday in words. |
AQ_SpelledDeltaDate | date, dateTime | Displays the difference between a date and today in words and integers. |
AQ_SpelledInteger | integer | Displays an integer value in words. |
AQ_SpelledMonth | integer | Displays a month in words. |
AQ_SpelledNumber | number | Displays a number value in words. |
AQ_DatePatternUse this mask type to change the way a date or dateTime value is displayed in Blueriq Studio documents. Parameters
To define your own date mask you must compose a date pattern using the following options:
The following characters are allowed to be used as separators in a date pattern:
Supported attribute types
Supported languages
Examples
|
AQ_FirstToUpperCaseUse this mask type to capitalize the first letter of (part of) a string and make the remaining characters lowercase. Parameters
Supported attribute types
Examples
|
AQ_NumberPatternUse this mask type to change the way a number value is displayed in Blueriq Studio documents. Parameters
Pattern The pattern syntax: {options}format;negative-spec;positive-spec
Supported attribute types
Examples
Note that the comma and dot in the pattern are not taken literally; they are just stand-in symbols for the decimal separator and the grouping separator. The actual symbols used depend on the language (locale). For example, the number 1234567.89 with pattern #,##0.00 results in the following numbers, depending on the language used:
The locale can also be fixed in the pattern, so that the pattern is no longer locale-sensitive. In case you want to have a space as the grouping separator for the number 1234567.89 you should use the {locale=fr-FR}#,##0.00 as pattern, which will result in 1 234 567,89 no matter what language is used for the rest of the project.
|
AQ_OrdinalNumberUse this mask type to display integers in words as ordinal numbers, e.g. “1” will be displayed as “first”. Parameters
Supported attribute types
Supported languages
Examples
|
AQ_RegularExpressionUse this mask type to apply special formatting to numbers or strings. The specified regular expression is used to select parts of the input and replace that with the string that you define in the replace parameter. Parameters
Supported attribute types
While parsing a mask of this type the initial input string is transformed in the following order:
Examples
|
AQ_RomanIntegerUse this mask type to display positive integer values as roman numerals. Parameters
Supported attribute types
Examples
|
AQ_SetCaseUs this mask type to make the characters of the selected part of the string uppercase or lowercase. Parameters
Supported attribute types
Examples
|
AQ_SpelledBooleanUse this mask type to display a boolean value in words. Parameters
Supported attribute types
Supported languages
Examples
|
AQ_SpelledCurrencyUse this mask type to display a currency value in words. Parameters
Supported attribute types
Supported languages
Examples
|
AQ_SpelledDayOfWeekUse this mask type to display an integer value that represents a weekday in words. Parameters
Supported attribute types
Supported languages
Examples
|
AQ_SpelledDeltaDateUse this mask type to display the difference between a date and today in words and integers. Parameters
Supported attribute types
Supported languages
Examples Let's go back to 2010-03-26.
|
AQ_SpelledIntegerUse this mask type to display an integer value in words. Parameters
Supported attribute types
Supported languages
Examples
|
AQ_SpelledMonthUse this mask type to display an integer value representing a month, in words. Parameters
Supported attribute types
Supported languages
Examples
|
AQ_SpelledNumberUse this mask type to display a number value in words. Parameters
Supported attribute types
Supported languages
Examples
|