Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.bst.util

public Class BstWidthCalculator

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
org.jspecify.annotations.NullMarked, .Nullable, org.slf4j.Logger, .LoggerFactory

The |built_in| function {.{purify$}} pops the top (string) literal, removes nonalphanumeric characters except for |white_space| and |sep_char| characters (these get converted to a |space|) and removes certain alphabetic characters contained in the control sequences associated with a special character, and pushes the resulting string. If the literal isn't a string, it complains and pushes the null string.

Field Summary

Modifier and TypeField and Description
private static final Logger
private static @Nullable int[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static int
getCharWidth(char c)

private static int
getSpecialCharWidth(char[] c, int pos)

public static int
width(String toMeasure)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
widthsback to summary
private static @Nullable int[] widths

Constructor Detail

BstWidthCalculatorback to summary
private BstWidthCalculator()

Method Detail

getCharWidthback to summary
public static int getCharWidth(char c)
getSpecialCharWidthback to summary
private static int getSpecialCharWidth(char[] c, int pos)
widthback to summary
public static int width(String toMeasure)