@zxing/library
Version:
TypeScript port of ZXing multi-format 1D/2D barcode image processing library.
20 lines (19 loc) • 854 B
TypeScript
/**
* Ponyfill for Java's Integer class.
*/
export default class Integer {
static MIN_VALUE_32_BITS: number;
static MAX_VALUE: number;
static numberOfTrailingZeros(i: number): number;
static numberOfLeadingZeros(i: number): number;
static toHexString(i: number): string;
static toBinaryString(intNumber: number): string;
static bitCount(i: number): number;
static truncDivision(dividend: number, divisor: number): number;
/**
* Converts A string to an integer.
* @param s A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in numString. If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. All other strings are considered decimal.
*/
static parseInt(num: string, radix?: number): number;
}