1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2018 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 package ohos.global.icu.impl.number.range; 5 6 /** 7 * A small, mutable internal helper class for keeping track of offsets on range patterns. 8 * @hide exposed on OHOS 9 */ 10 public class PrefixInfixSuffixLengthHelper { 11 public int lengthPrefix = 0; 12 public int length1 = 0; 13 public int lengthInfix = 0; 14 public int length2 = 0; 15 public int lengthSuffix = 0; 16 index0()17 public int index0() { 18 return lengthPrefix; 19 } 20 index1()21 public int index1() { 22 return lengthPrefix + length1; 23 } 24 index2()25 public int index2() { 26 return lengthPrefix + length1 + lengthInfix; 27 } 28 index3()29 public int index3() { 30 return lengthPrefix + length1 + lengthInfix + length2; 31 } 32 } 33