Lines Matching full:part
99 * MessagePattern::Part type constants.
109 * There is always a later MSG_LIMIT part.
125 * would be indicated with such a part.
139 * When formatting, replace this part's substring with the
150 * This part is followed by either an ARG_NUMBER or ARG_NAME,
152 * and finally an ARG_LIMIT part.
195 * The part value is the integer value.
202 * The part value is an index into an internal array of numeric values;
215 * Returned by Part.getArgType() for ARG_START and ARG_LIMIT parts.
228 * The argument has a "simple" type which is provided by the ARG_TYPE part.
229 * An ARG_STYLE part might follow that.
244 * that value is provided by the ARG_INT or ARG_DOUBLE part preceding the message.
268 * Returns true if the argument type has a plural style part sequence and semantics,
294 * Special value that is returned by getNumericValue(Part) when no
295 * numeric value is defined for a part.
326 * For every _START "part", MessagePattern.getLimitPartIndex() efficiently returns
327 * the index of the corresponding _LIMIT "part".
347 * between parts of a message, from one part's getLimit() to the next part's getIndex().
348 * <li><code>ARG_START.CHOICE</code> stands for an ARG_START Part with ArgType CHOICE.
351 * <li>In the pluralStyle, the first, optional numeric Part has the "offset:" value.
352 * The optional numeric Part between each (ARG_SELECTOR, message) pair
355 * <li>The REPLACE_NUMBER Part can occur only in an immediate sub-message of the pluralStyle.
608 class Part; variable
621 * Gets the i-th pattern "part".
622 * @param i The index of the Part data. (0..countParts()-1)
623 * @return the i-th pattern "part".
626 const Part &getPart(int32_t i) const { in getPart()
631 * Returns the UMessagePatternPartType of the i-th pattern "part".
633 * @param i The index of the Part data. (0..countParts()-1)
634 * @return The UMessagePatternPartType of the i-th Part.
642 * Returns the pattern index of the specified pattern "part".
644 * @param partIndex The index of the Part data. (0..countParts()-1)
645 * @return The pattern index of this Part.
653 * Returns the substring of the pattern string indicated by the Part.
654 * Convenience method for getPatternString().substring(part.getIndex(), part.getLimit()).
655 * @param part a part of this MessagePattern.
656 * @return the substring associated with part.
659 UnicodeString getSubstring(const Part &part) const { in getSubstring() argument
660 return msg.tempSubString(part.index, part.length); in getSubstring()
664 * Compares the part's substring with the input string s.
665 * @param part a part of this MessagePattern.
667 * @return true if getSubstring(part).equals(s).
670 UBool partSubstringMatches(const Part &part, const UnicodeString &s) const { in partSubstringMatches() argument
671 return 0==msg.compare(part.index, part.length, s); in partSubstringMatches()
676 * @param part a part of this MessagePattern.
677 * @return the part's numeric value, or UMSGPAT_NO_NUMERIC_VALUE if this is not a numeric part.
680 double getNumericValue(const Part &part) const;
684 … * @param pluralStart the index of the first PluralFormat argument style part. (0..countParts()-1)
691 * Returns the index of the ARG|MSG_LIMIT part corresponding to the ARG|MSG_START at start.
692 * @param start The index of some Part data (0..countParts()-1);
693 * this Part should be of Type ARG_START or MSG_START.
707 * A message pattern "part", representing a pattern parsing event.
708 * There is a part for the start and end of a message or argument,
713 class Part : public UMemory {
719 Part() {} in Part() function
722 * Returns the type of this part.
723 * @return the part type.
731 * Returns the pattern string index associated with this Part.
732 * @return this part's pattern string index.
740 * Returns the length of the pattern substring associated with this Part.
742 * @return this part's pattern substring length.
750 * Returns the pattern string limit (exclusive-end) index associated with this Part.
752 * @return this part's pattern string limit index, same as getIndex()+getLength().
760 * Returns a value associated with this part.
761 * See the documentation of each part type for details.
762 * @return the part value.
770 * Returns the argument type if this part is of type ARG_START or ARG_LIMIT,
772 * @return the argument type for this part.
785 * Indicates whether the Part type has a numeric value.
787 * @param type The Part type to be tested.
788 * @return true if the Part type has a numeric value.
800 bool operator==(const Part &other) const;
807 inline bool operator!=(const Part &other) const {
931 // ArrayList<Part> parts=new ArrayList<Part>();
933 Part *parts;