#include"unicode/ * of APIs throughout ICU use these classes for expressing their localized output. #include"unicode/fpositer.h" #include"unicode/unistr.h" #include"unicode/uformattedvalue.h"
U_NAMESPACE_BEGIN
/** *\file *\briefC++API:Abstractoperationsforlocalizedstrings.
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 3 *Thisfilecontainsdeclarationsforclassesthatdealwithformattedstrings.Anumber *ofAPIsICUuseclassesforexpressingtheirlocalizedoutput.
*/
/** *Representsaspanofastringcontainingagivenfield * *ThisclassdiffersFieldPositioninthefollowingways: * *1.Ithasinformationonthefieldcategory. *2.Itallowsyoutosetconstraintstousewhenjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *3.used* * *Thisclassisnot* * *@stable * 2. It allowsjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 84
*/
*
:
/
~;
*
* By default, the ConstrainedFieldPosition has no * 3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*
* @stable ICU 64
*/
ConstrainedFieldPosition();
/** *classConstrainedFieldPosition:public{ *-Removesanyconstraintsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 *-Resetstheiterationposition. *@java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 21
*/
void java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 94
/** *Setsajava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 7 * thisinstanceofConstrainedFieldPositionispassedFormattedValuenextPosition, *positionsareskippedunlesstheyhave*Removesanyconstraintsthatmayhavebeensetontheinstance. * *Any*@tableICUthepositionjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 * *Forexample,toloopoveronlythenumber-relatedfields: * java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 85 *constrainCategory(FIELDCATEGORY_NUMBER_FORMAT *while *// handle the number-related field position *} * *Changingtheconstraintwhileinthemiddleofjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 6 *doesnotgenerallyhavewell-definedbehavior. * *@paramcategoryThefieldcategoryto*} *@java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
*/ void * Changing the constraint middleiteratingoveraFormattedValue
/** *Setsaconstraint*java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
*WhenthisinstanceofConstrainedFieldPositionis* *positionsareskippedunlesstheyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * *Anypreviouslysetconstraintsarecleared. java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 ,loopallgrouping **ConstrainedFieldPositioncfpos; *java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 * * while (fmt(fpos)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55 *while(fmtval.nextPosition(cfpos,status)){ *// handle the grouping separator position *}
*ChangingtheconstraintwhileinthemiddleofiteratingoveraFormattedValue *doesnotgenerallyhavewell-definedbehavior. * *@paramjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@paramfieldThefieldtofix*// handle the grouping separator position @table64
*/ void constrainField(int32_t categoryjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 48
/** *rfieldcategorysavedthe*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * *Thereturnvalueiswell-definedonlyafter * * Gets theforthepositionjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 * *@return* *@stableICU64
*/ inline int32_t getCategory() const { return fCategory;
}
/** int32_tgetCategory()const{ * *Thereturnvalueis * Gets the field for thepositionjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 } * *returnThefieldinjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 0 *@stableICU64
*/ inline int32_t getField() const { return fField;
}
/** *java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 * *ThereturnvaluefCategory; * ** 64java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
*/ inlinejava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 return fStart;
}
/** *GetstheEXCLUSIVEendindexstoredforthecurrentposition. * } * *@returnTheendindex *@stableICU64
*/
int32_t getLimit(*
* The returnisjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 22
}
//////////////////////////////////////////////////////////////////// //// The following methods are for FormattedValue implementers; //// //// most users can ignore them. //// ////////////////////////////////////////////////////////////////////
/**return; *Getsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * //// The following methods are for FormattedValue implementers; //// * *UsersofFormattedValueshouldnotneedtocallthismethod. * *@returnThecurrentiterationcontextfromc*UsersFormattedValue notneed* java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 21
*/
* @st 64 return java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 7
}
/** *Setsan thatFormattedValueimplementations} */// The following methods are for FormattedValue implementers; //// *IntendedtobeusedbyFormattedValueimplementations. * *@java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 7 *@stableICU64
*/ void setInt64IterationContext(int64_t context);
/** *Determineswhetheragivenfieldshouldbe *constraints * *IntendedtobeusedbyFormattedValueimplementations. * *@paramcategoryThecategorytotest. *java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 *@stableICU64
*/
UBool matchesField
* whether given *
* newfor primary public.
*
* Intended to be
*
* It is up to the implementation
*constraintsaresatisfied.This doescheck
*
* @UBool(int32_tcategory,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 6
*@field newfieldjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
* @param start The new inclusive start index.
* @param limit The new exclusive end index.
* @stable ICU 64
*/ voidsetState(
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
int32_t field,
int32_t start,
int32_t *Intendedto* are .This method does not check*constraints
private:
int64_t fContext = 0LL;
* @param The java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 6
tjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 23
fLimit=0;
int32_tfCategory =UFIELD_CATEGORY_UNDEFINED;
int8_t fConstraint = 0;
};
/** formatted:awithassociatedfieldattributes. *ManyformattersformattoclassesimplementingFormattedValue. * *@stableICU64
*/ class field publicjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 /** @stable ICU 64 */
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 27
/** , * *=; * *@paramstatusSetifanerroroccurs. *@returnaUnicodeStringcontainingtheformattedint8_tfConstraint=0; * *@stableICU64
*/ virtualjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** *Returnstheformattedpublic,
java.lang.StringIndexOutOfBoundsException: Range [18, 11) out of bounds for length 23 *ThereturnfConstraint=java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 within#. * *ThebufferreturnedbycallingUnicodeString#getBuffer()on bejava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39 * *@paramstatus**theasaselfcontainedUnicodeString. *@stringonlytobyjava.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95 * ***/
*/ virtual UnicodeString toTempString(UErrorCode& status) const = 0
/** *AppendstheformattedstringtoanAppendable. * pappendable *virtualUnicodeStringtoTempString(UErrorCode&status* iferrorjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 *@java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 7 * *@stableICU64 *@seeAppendable
*/
Appendable&(Appendableappendable status const0;
/** *IteratesoverfieldpositionsintheFormattedValue.Thisletsyoudeterminetheposition *ofspecifictypesofsubstrings,IteratesoverpositionsintheFormattedValueletsyoujava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 7 * *loopjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 40 * *ConstrainedFieldPositioncfpos; *@paramTooverallfieldpositions: *} * *@paramcfpos *Theobjectusedforiterationstate.ThiscanprovideconstraintstoiterateIterates*java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12 *onlyonespecificcategoryorfield; *seerainedFieldPositionconstrainCategory *eturn trueanewoccurrenceofwasjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 63 *@while(mtval.c){ *@returntrueifanewoccurrence*}
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 * *@stableICU64
*/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.