/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }
/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Creates NumericShaper with specified parameters. * * @param ranges specified ranges to be shaped * @param defaultContext default context range * @param isContextual specifies if the instance is contextual */ private NumericShaper(int ranges, int defaultContext, boolean isContextual){ this.fRanges = ranges; this.fDefaultContextIndex = getIndexFromRange(defaultContext); this.fContextual = isContextual; if (!fContextual){ fSingleRangeIndex = getIndexFromRange(ranges); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }
/** * Transforms the encoding of the text, starting from the character * at index start and transforming count characters, * using the specified context. * * @param text the text to be shaped. * @param start the start offset of the text. * @param count the number of characters to be shaped. * @param context the context to be used for shaping. */ public void shape(char[] text, int start, int count, int context) { if (isContextual()){ contextualShape(text, start, count, getIndexFromRange(context)); } else { nonContextualShape(text, start, count); } }