| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getDescription()
Implements abstract org. Returns a description of the formatter. |
| public String | getExampleInput()
Implements abstract org. Returns an example input string of the formatter. |
| public String | getKey()
Implements abstract org. Returns a unique key for the formatter that can be used for its identification |
| public String | getName()
Implements abstract org. Returns a human readable name of the formatter usable for e.g. in the GUI |
| SUPERSCRIPT_DETECT_PATTERN | back to summary |
|---|---|
| private static final Pattern SUPERSCRIPT_DETECT_PATTERN | |
| SUPERSCRIPT_REPLACE_PATTERN | back to summary |
|---|---|
| private static final String SUPERSCRIPT_REPLACE_PATTERN | |
| OrdinalsToSuperscriptFormatter | back to summary |
|---|---|
| public OrdinalsToSuperscriptFormatter() | |
| format | back to summary |
|---|---|
| public String format(@NonNull String value) Converts ordinal numbers to superscripts, e.g. 1st, 2nd or 3rd. Will replace ordinal numbers even if they are semantically wrong, e.g. 21rd Example```text 1st Conf. Cloud Computing -> 1\textsuperscript{st} Conf. Cloud Computing ```
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns a description of the formatter.
| |
| getExampleInput | back to summary |
|---|---|
| public String getExampleInput() Implements abstract org. Doc from org. Returns an example input string of the formatter. This example is used as input to the formatter to demonstrate its functionality
| |
| getKey | back to summary |
|---|---|
| public String getKey() Implements abstract org. Doc from org. Returns a unique key for the formatter that can be used for its identification
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns a human readable name of the formatter usable for e.g. in the GUI
| |