All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.icu.impl.number.range.PrefixInfixSuffixLengthHelper Maven / Gradle / Ivy

Go to download

International Component for Unicode for Java (ICU4J) is a mature, widely used Java library providing Unicode and Globalization support

There is a newer version: 76.1
Show newest version
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
package com.ibm.icu.impl.number.range;

/**
 * A small, mutable internal helper class for keeping track of offsets on range patterns.
 */
public class PrefixInfixSuffixLengthHelper {
    public int lengthPrefix = 0;
    public int length1 = 0;
    public int lengthInfix = 0;
    public int length2 = 0;
    public int lengthSuffix = 0;

    public int index0() {
        return lengthPrefix;
    }

    public int index1() {
        return lengthPrefix + length1;
    }

    public int index2() {
        return lengthPrefix + length1 + lengthInfix;
    }

    public int index3() {
        return lengthPrefix + length1 + lengthInfix + length2;
    }

    public int index4() {
        return lengthPrefix + length1 + lengthInfix + length2 + lengthSuffix;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy