Home | History | Annotate | Download | only in unicode

Lines Matching full:part

97  * MessagePattern::Part type constants.
107 * There is always a later MSG_LIMIT part.
123 * would be indicated with such a part.
137 * When formatting, replace this part's substring with the
148 * This part is followed by either an ARG_NUMBER or ARG_NAME,
150 * and finally an ARG_LIMIT part.
193 * The part value is the integer value.
200 * The part value is an index into an internal array of numeric values;
213 * Returned by Part.getArgType() for ARG_START and ARG_LIMIT parts.
226 * The argument has a "simple" type which is provided by the ARG_TYPE part.
227 * An ARG_STYLE part might follow that.
242 * that value is provided by the ARG_INT or ARG_DOUBLE part preceding the message.
266 * Returns TRUE if the argument type has a plural style part sequence and semantics,
292 * Special value that is returned by getNumericValue(Part) when no
293 * numeric value is defined for a part.
324 * For every _START "part", MessagePattern.getLimitPartIndex() efficiently returns
325 * the index of the corresponding _LIMIT "part".
345 * between parts of a message, from one part's getLimit() to the next part's getIndex().
346 * <li><code>ARG_START.CHOICE</code> stands for an ARG_START Part with ArgType CHOICE.
349 * <li>In the pluralStyle, the first, optional numeric Part has the "offset:" value.
350 * The optional numeric Part between each (ARG_SELECTOR, message) pair
353 * <li>The REPLACE_NUMBER Part can occur only in an immediate sub-message of the pluralStyle.
606 class Part;
619 * Gets the i-th pattern "part".
620 * @param i The index of the Part data. (0..countParts()-1)
621 * @return the i-th pattern "part".
624 const Part &getPart(int32_t i) const {
629 * Returns the UMessagePatternPartType of the i-th pattern "part".
631 * @param i The index of the Part data. (0..countParts()-1)
632 * @return The UMessagePatternPartType of the i-th Part.
640 * Returns the pattern index of the specified pattern "part".
642 * @param partIndex The index of the Part data. (0..countParts()-1)
643 * @return The pattern index of this Part.
651 * Returns the substring of the pattern string indicated by the Part.
652 * Convenience method for getPatternString().substring(part.getIndex(), part.getLimit()).
653 * @param part a part of this MessagePattern.
654 * @return the substring associated with part.
657 UnicodeString getSubstring(const Part &part) const {
658 return msg.tempSubString(part.index, part.length);
662 * Compares the part's substring with the input string s.
663 * @param part a part of this MessagePattern.
665 * @return TRUE if getSubstring(part).equals(s).
668 UBool partSubstringMatches(const Part &part, const UnicodeString &s) const {
669 return 0==msg.compare(part.index, part.length, s);
674 * @param part a part of this MessagePattern.
675 * @return the part's numeric value, or UMSGPAT_NO_NUMERIC_VALUE if this is not a numeric part.
678 double getNumericValue(const Part &part) const;
682 * @param pluralStart the index of the first PluralFormat argument style part. (0..countParts()-1)
689 * Returns the index of the ARG|MSG_LIMIT part corresponding to the ARG|MSG_START at start.
690 * @param start The index of some Part data (0..countParts()-1);
691 * this Part should be of Type ARG_START or MSG_START.
705 * A message pattern "part", representing a pattern parsing event.
706 * There is a part for the start and end of a message or argument,
711 class Part : public UMemory {
717 Part() {}
720 * Returns the type of this part.
721 * @return the part type.
729 * Returns the pattern string index associated with this Part.
730 * @return this part's pattern string index.
738 * Returns the length of the pattern substring associated with this Part.
740 * @return this part's pattern substring length.
748 * Returns the pattern string limit (exclusive-end) index associated with this Part.
750 * @return this part's pattern string limit index, same as getIndex()+getLength().
758 * Returns a value associated with this part.
759 * See the documentation of each part type for details.
760 * @return the part value.
768 * Returns the argument type if this part is of type ARG_START or ARG_LIMIT,
770 * @return the argument type for this part.
783 * Indicates whether the Part type has a numeric value.
785 * @param type The Part type to be tested.
786 * @return TRUE if the Part type has a numeric value.
798 UBool operator==(const Part &other) const;
805 inline UBool operator!=(const Part &other) const {
928 // ArrayList<Part> parts=new ArrayList<Part>();
930 Part *parts;