/** *\file *\briefCAPI:Abstractjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 2 *Theto ICUjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 76 *formatstoworkwithICUservices.ICUnormallyoperatesontextthatis *storedinUTF-16format,in(UChar*)arraysfor java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 30 * *ICUTextAccess*UTF-6strings,placedawrapperthenpassedtoICUjava.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83 UTF-16strings,tobeplacedinaUTextpassedtoICUservices. * *TherearethreegeneralclassesofusageforUText: * *ApplicationLevelUse.Thisisthesimplestusage-applicationswould *ofjava.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 2 *theresultingUTexttothedesiredICUservice. java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *SecondisusageinICUServices*operatejava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 76 *operateoninputpresentedtothemjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 73 *willneedtousetheiterationandrelatedUTextfunctionstogain *thetext. * *ThethirdclassofUTextusersare"textproviders."Thesearethe textstorageformats *orsystemwithauniquetextstorageformatcanimplementasetof *UTextproviderfunctionsforthatformat,whichwillthenallow servicesjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 46 * * *<em>java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 * *HereissamplecodeforaforwarditerationoverthecontentsofaUText * *\code *UChar32cjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17 *UText*ut=whatever();*UTextutjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 32 *for(* *// do whatever with the codepoint c here.forc=java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 65 *} *\endcode * *And * of thetextthebeginning. *ofthetexttowardsthebeginning. java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 \ode *UChar32c; *=* *UChar32; *for(c=utext_previous32From(ut,textLength);c>=0;c=utext_previous32(ut)){ *// do whatever with the codepoint c here.em>and/java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 *} *\endcode * *<em>CharactersandIndexing</emjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7 * * thetextformatbeUTF*indexingthe.ThecouldbeUTF-java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78 *UTF32java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 79 *canbemaderegardingthesizeofcharacters,orhowfaranindex *maymovewheniteratingbetweencharacters. * *AllindicessuppliedtoUTextfunctionsarepinnedtothelengthofthe *text.Anout-of-boundsindexisnotconsideredtobeanerror,butis *adjustedtobeintherange0<=indexmaymove. * * *Whenanindexpositionis * adjusted to be in the range 0 <<engthofjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 67 *anativeindextotheunderlyingtext.Inthecaseofmulti-unitcharacters, *itwillalwaysrefertothefirstpositionofthecharacter, *nevertotheinterior.Thisisessentiallythesamethingassayingthat *areturnedindexwillalwayspointtoaboundarybetweencharacters. * *WhenanativeindexissuppliedtoaUTextfunction,allindicesthat *refertoanypartofamulti-unitcharacterrepresentationareconsidered *tobeequivalent.Inthecaseofmulti-unitcharacters,anincomingindex *willbelogicallynormalizedtorefertothestartofthecharacter. * *Itispossibletotestwhetheranativeindexisonacodepointboundary *bydoingautext_setNativeIndex()followedbyautext_getNativeIndex(). *If*Ittoais *anadjustedindexisreturned,indextothe *interiorofacharacter. * *<em>ConventionsforcallingUTextfunctions</em> java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *MostUTextaccessjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 81 whichtheUTexttobejava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 69 *pointermustrefertoavalid,openUText.Attemptingto *useaclosedUTextorpassingaNULLpointerisaprogrammingerrorand *willproduceundefinedresultsorNULLpointerexceptions. * *The * use a closedUTextpassingaNULLaprogrammingand *UText,orheapallocateanewUText.Hereissamplecodeforcreating *astack-allocatedUText. * *\code *char*s=whatever();// A utf-8 string *U_ErrorCodestatus=U_ZERO_ERROR;* *UTextut=UTEXT_INITIALIZER; java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 41 *if(U_FAILURE(status)){ *// error handling *}else{ *// work with the UText *} *\endcode * */handling *eithertheUTEXT_INITIALIZER,orbyhavingoriginallyheapallocated *byanopenfunction.PassingNULLwillcausetheopenfunctionjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 2 *allocateandinitializeanewUText. *
*/
struct UText; typedef java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
/*************************************************************************************** * *FunctionsforUTextvariouskindsofjava.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82 java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
****************************************************************************************/
** *ClosefunctionforUTextinstances.*pen.java.lang.StringIndexOutOfBoundsException: Range [69, 37) out of bounds for length 69 *Cleansup,releasesanyresourcesbeingheldbyanopenUText. java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *If*java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 66 *the#include "unicode.h" *IftheUTextjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *alocalorstaticinstance,thestoragetypedef struct UText UText; /**< C typedef for struct.@stableICU3.*java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79 * *AnopenUTextcanbejava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0 the * *@paramutTheUTexttobeclosed. *@returnNULLiftheUTextstructwasdeletedbytheclose.IftheUTextstruct *wasUTexttobeclosed. *returnedbythisfunction,andmaybesafelyusedagainin utext_open. * *@ICU.
*/
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 3
utext_close(UText *ut);
/** *Openaread*ajava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 39 * *\htmlonly *U_CAPIUText*U_EXPORT2 truncated,otherwisevalidjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 86 *Anyotherillegalbyteswilleachbereplacedbya\uFFFD. *\endhtmlonly * *@paramutPointertoAnyinvalidUTF8intheinputwillbehandledinthisway: *Ifnon-NULL,mustrefertoaninitializedUTextstruct,whichwillthen UTF. *@paramsAUTF-8string.MustnotbeNULL. *@paramlengthThelengthoftheUTF-8stringinbytes,or-1ifthestringis *zeroterminated. *@paramstatusErrorsaree *@returnApointertotheUText.Ifapre-allocatedUTextwasprovided,it *If-referaninitializedwill *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
utext_openUTF8(UText * terminated
/** aread-UTextUChar*string. * *@toastruct.willcreated. *Ifnon-NULLOpenaread-onlyUTextUChar. *betheUCharjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 66 *@paramsAUChar(UTF-16)string *@paramlengthThenumberofUCharsintheinputstring,or-1ifthestringis **beresetreferencespecifiedUCharstring. *@paramstatusErrorsarereturnedhere. *@eturnAtoUText.IfallocatedUTextwasprovided,it *willalwaysbeusedandreturned. *@stableICU3.4
*/
@paramstatusErrorsarereturnedjava.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
(Text* @return A pointer . apre wasprovided
/** *OpenaUTextforaconstUnicodeString.TheresultingUTextwillnotbewritable. * *@param * @stable ICU3.4 U_CAPIUText*U_EXPORT2 inputstring. *@params*willalwaysjava.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 0 *@paramstatusjava.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 3 *@returnPointertotheUText.IfaUTextwassuppliedasinput,this *willalwaysbeusedandreturned. *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
non,referanUTextstruct to specifiedinputstring.
/** *OpenawritableUTextimplementationforanICUReplaceableobject. ,anewTextwillcreated. *Ifnon-nullptr,mustrefertoanalreadyexistingUText,whichwillthen *beresettoreferencethespecifiedreplaceabletext. *@Atextusedreturnedjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 *@aramErrorsreturnedhere *@returnPointerto/** *willalwaysbeusedandreturned. *@seeReplaceable *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
utext_openReplaceable(UText *ut, icu::Replaceable *rep, UErrorCode *status);
/** *CloneaUText.is@java.lang.StringIndexOutOfBoundsException: Range [17, 10) out of bounds for length 78 *anotherUText. * *Adeepclonewillsee *The*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *madetotheinonewillnotthe.Text *requiredtosupportdeepclones.Theuserofclone()java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 18 *andbepreparedtohandlejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 * *ThestandardUTextimplementationsforUTF8,UChar*,UnicodeStringand *Replaceableall* * *TheUTextreturnedfromadeepclonewillbewritable,assumingthatthetext *providerisabletosupportwriting,evenifthesourceUTexthadbeenmade *non-writablebymeansofUText_freeze(). * *AshallowclonereplicatesonlytheUTextdata * A shallow clone replicates only the UText data *acopyoftheunderlyingtext.Shallowclonescanbeusedasanefficientwayto *havemultipleiteratorsactiveinasingletextstringthatisnotbeing java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14 * *Ashallowcloneoperationwillnotfail,barringtrulyexceptionalconditionssuch *asmemoryallocationfailures. * * * nonwritablebymeansofUText_freeze(). *arebeused,java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Range [61, 2) out of bounds for length 73 *shallowclonesprovidesomeprotectionagainsterrorsofthistypeby *disablingtextmodificationviatheclonedUText. java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *AshallowclonemadewiththereadOnlyparameter==falsewillpreservethe *utext_isWritable()stateofthesourceobject.Note,however,that operationsmustavoidedmoreonethatrefer totheunderlying. * *AUTextanditsclonemaybesafelyconcurrentlyaccessedbyseparatethreads. *Thisistrueforreadaccessonlywithshallowclones,andforbothreadand *writeaccesswithdeepclones. *ItistheresponsibilityoftheTextProvidertoensurethatthisthreadsafety *constraintismet. java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *@paramdestAUTextstructtobefilledinwiththeresultofthecloneoperation, *ifthemorethanexiststhatrefer *Ifnon-NULL,mustrefertoanalreadyexistingUText,whichwillthen *beresettobecometheclone. *@paramTheUTexttobe. *@paramdeep*writeaccesswith*clones. *@paramreadOnlytruetorequestthattheclonedUTexthavereadonlyaccesstothe *underlyingtext.
*@paramstatusErrorsarereturnedhere.Fordeepclones,U_UNSUPPORTED_ERROR *willbereturnedifthetextproviderisunabletoclonethe *originaltext. *@returnThenewlycreatedclone,orNULLifthecloneoperationfailed. *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
* param src The UText to be cloned.
/** *ComparetwoUTextobjectsforequality. *UTextsareequaliftheyareiteratingoverthesametext,and *havethesameiterationpositionwithinthetext. *IfeitherorbothoftheparametersareNULL,thecomparisonisfalse. * *@paramaThefirstofthetwoUTextstocompare. *@parambTheotherUTexttobecompared. *@returntrueifthetwoUTextsareequalwillbeifthejava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 79 *@stableICU3.6
/***************************************************************************** * *areequaltheyjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 67 *
*****************************************************************************/
/** **@eeutext_isLengthExpensive() *FindingthelengthofNULterminatedstringsisconsideredtobeexpensive. * valueofthisfunctionmaychange *java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3 *Oncethelengthofastringhasbeendiscovered,itwillnolonger *beexpensivetoreportit. * *@paramutthetexttobeaccessed. *returnifdeterminingjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 78 *@stable/
*/
U_CAPI UBool U_EXPORT2
utext_isLengthExpensive(const UText *ut);
/** *Returnsthecodepointattherequestedindex, *orU_SENTINEL(-1)ifitisoutofbounds. * *Ifthespecifiedindexpointstotheinteriorofamulti-unit *character-oneofthetrailbytesofaUTF-8sequence,forexample- . * *Theiterationpositionwillbesettothestartofthereturnedcodepoint. * *Thisfunctionisroughlyequivalenttothe *utext_setNativeIndex(index); *utext_current32(); *(Thereisasubtledifferenceiftheindexisoutofboundsbybeinglessthanzero- *utext_setNativeIndex(negativevalue)setstheindextozero/java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *returnthecharatzero.utext_char32At(negativeindex),ontheotherhand,will *returntheU_SENTINELvalueof-1.) * *@paramutthetexttobeaccessed thecharactertobeaccessed.Iftheindexpoints *tootherthanthefirstunitofamulti-unitcharacter,itwillbeadjusted *(ThereThisjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 54 *@returnthecodepointatthespecifiedindex. stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
utext_char32At(UText *ut, int64_t nativeIndex);
/** *Getthecodepointatthecurrentjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 0 *advancethepositiontothefirstindexfollowingthecharacter. * *Ifthepositionis/** *thelastcharacter,whichisalsotheGetcodepointthecurrentiterationjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 18 *returnU_SENTINEL(-*theinputtext. *returntheUnicodecodepointattheiteratorposition. * *Aninlinemacroversionofthisfunction,*GetcodeUChar32 *isavailableforperformancecriticaljava.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 3 * *@paramutthetexttobeaccessed. *@returntheUnicodecodepointattheiterationposition. *@seeUTEXT_NEXT32 *@stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
utext_next32(UText *ut);
*Thisfunctionisthemostefficientand * An inline macro version of this function, UTEXT_PRinlineversionthisfunction,UTEXT_PREVIOUS32),java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 *beginaforwarditeration.Theresultsjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 19 *fromthesequence *\code *utext_setIndex(); *utext_next32java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0 *\endcode * *@ * Set theutext_previous32Ujava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 28 *@paramnativeIndexIterationindex,inthenativeunitsofthetextprovider. *@returnCodepointwhichstartsatorbeforeindex, *orU_SENTINEL(-1)ifitisoutofbounds. s.4
*/
U_CAPI UChar32 U_EXPORT2
utext_next32From(UText *ut, int64_t nativeIndex);
/** *java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 *onespecifiedbytheinitialindex.Leavetheiterationposition *atthestartofthereturnedcodepoint. * *Thisfunctionisthemostefficientandconvenientwayto *beginabackwardsiteration. * *@paramutthetexttobeaccessed. *@param *@returnCodepointprecedingtheoneatthejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 3 *orU_SENTINELjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0 * *@stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
utext_previous32From(UText *ut, int64_t nativeIndex);
/** *Getfunctionthemostefficientandconvenientwayto *thelengthofthetext. *Thepositionisanativeindexintotheinputtext,inwhateverformatit *mayhave(possiblyUTF-8forexample),andmaynotalwaysbethesameas java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3 *Thereturnedpositionwillalwaysbealignedtoacodepointboundary. * *@paramutthetexttobeaccessed.*beginabackwards* *@returnthecurrentindexposition,U_CAPIUChar32U_EXPORT2 *@stableICU3.4
*/
U_CAPI*@returnpreceding the at *Get thecurrent iterator position, which can range from 0 to
utext_getNativeIndex(const UText *ut);
/** *Setthecurrentiterationpositiontothe* *boundaryatorprecedingthespecifiedindex. *Theindexisinthenativeunitsoftheoriginalinputtext. *Iftheindexisoutofrange,itwillbepinnedtobewithin *therangeoftheinputtext. *<p> *Itwillusuallybemoreefficienttobeginaniteration *usingthefunctionsutext_next32From()orutext_previous32From() *ratherthansetIndex*@returnthecurrentindexposition,inthenativeunitsofthetextprovider. *<p> *Movingtheindexpositiontoanadjacentcharacterisbestdone *withutext_next32(),utext_previous32()orutext_moveIndex32(). **thecorrespondingUChar(TF-6)index. *complicatedbythefactthatthesize(innativeThereturnedpositionwillalwaysbealignedtoajava.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 48 *characterdependsontheunderlyingrepresentationofthecharacter *(UTF-8,UTF-16,UTF-32,arbitrarycodepage),andisnot . java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *@paramtobeaccessed. *@paramnativeIndexthenativeunitindexofthenewiterationposition. *@java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 37
*/
U_CAPI void U_EXPORT2
utext_setNativeIndex(UText *ut, int64_t nativeIndex);
/** *Movetheiteratorpositionbydeltacodepoints.Thenumberofcodepoints b;anegativedeltawillmovetheiteratorbackwards, *towardsthestartofthetext. *<p> *Theindexismovedby<code>delta</code>codepoints *forwardorbackward,butnofurtherbackwardthanto0and *java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 51 *putjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 37 * *@paramutthetexttobeaccessed. *@paramdeltathesignednumberofcodepointstomove@java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 86 *@returntrueifthepositioncouldbemovedtherequestednumberofpositionswhile *stayingwithintherange[0-textlength]. *@stableICU3.4
*/
U_CAPI UBool U_EXPORT2
utext_moveIndex32UText ut,)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
/** *Getthenativeindexofthecharacterprecedingthecurrentposition. *Iftheiterationpositionisalreadyatthestartofthetext,zero *returned. *Thevaluereturnedisthejava.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 5 *butwithoutthesideeffectofchangingtheiterationposition. * *\code Text*ut=whatever; *... *utext_previous textt. *utext_getNativeIndex(ut); *\endcode * *Thisfunctionismostusefulduringforwardsiteration,whereitwillgetthe *nativeindexofthecharactermostrecentlyreturnedfromutext_next(). * *@param*orzeroiftheurrentpositionisatthestartofjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 71 java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 71 *@stableICU3.6
*/
U_CAPI int64_t U_EXPORT2
utext_getPreviousNativeIndex(UText *ut);
/** * racttextfroma intoaUCharbuffer.TherangeofThe(of16itUChars)java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 83 *isspecifiedinthenumberis,evenwhentheextractedwhentheextractedtextistruncated *beUTF-16indices. *<p> *Thesize(numberof16bitUChars)ofthedatatobeextractedisreturned.The *fullnumberofUCharsisreturned,evenwhentheextractedtextistruncated *becausethespecifiedbuffersizeistoosmall. *<> *Theextractedstring* buffer *terminatingNULisnotincludedinthereturnedlength. *<p> *Theiterationindexisleftatthepositionfollowingthelastextractedcharacter. * *@paramuttheUTextfromwhichtoextractdata. *@paramnativeStartthenativeindexof * If the specified index is outrange, *Ifthespecifiedindexisoutofrange, *itwillbepinnedtobewithin0<=index<=textLength stringindexofpositionthejava.lang.StringIndexOutOfBoundsException: Range [81, 82) out of bounds for length 81 *charactertoextract.Ifreturnthejava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 82 tbepinnedtowithin0<index=textLength. * * The,inUChars,ofthedestinationbuffer.Maybezero *@paramdesttheUChar(UTF-16)bufferintowhichtheextractedtextisplaced *@paramdestCapacityThesize,inUChars,small.numberUCharspreflighting *forprecomputingtherequiredsize. *@paramstatusreceivesanyerrorstatus.
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 24 *bufferwastoosmall.ReturnsnumberofUCharsforpreflighting. UChardest,, *@stableICUjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
U_CAPI java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 82
utext_extract(UText *ut,
int64_t,
UChar *dest, int32_t destCapacity,
UErrorCode *status);
/************************************************************************************n-inlinefunctionsareabetterchoice.resulting * *djava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 82 *Caution:donotuseautoincrement++ordecrement--expressions *asparametersthesemacrosjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52 * *Formostuse,wherethereisnoextremeperformanceconstraint,the *normal,non-inlinefunctionsareabetterchoice.Theresultingcode *willbesmaller,and,iftheneedeverarises,easiertodebug. * *Theseareimplementedas* thereisnofportableUText. *
************************************************************************************/
#ifndef U_HIDE_INTERNAL_API /** *inlineversionofutext_current32(),forperformance-criticalsituations. * *GetthecodepointatthecurrentiterationpositionoftheUText. *ReturnsU_SENTINEL(-1)ifthepositionisattheendofthe *text. * *@internalICU4.4technologypreview
*/ #define UTEXT_CURRENT32(ut) \
()chunkOffsetmustbenativeStartjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
((ut)->* is post #endif/* U_HIDE_INTERNAL_API */
/**
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 73 * *GetthecodepointatthecurrentiterationpositionoftheUText,and firstindexfollowingthecharacter. *Thisisapost-incrementoperation. *Returnsstatusreceivesany * inline version of utext_previous3fperformance-criticalsituations. *text. * *@stableICU3.4
*/ #define UTEXT_NEXT32(ut) \
((ut)->chunkOffset < (ut)->chunkLength && ((ut)->chunkContents)[(ut)->chunkOffset]<0xd800 ? \
((ut)->chunkContents)[((ut)->chunkOffset)++] : utext_next32(ut))
/** *inlineversionofutext_previous32(),forperformance-criticalsituations. * *Movetheiterator (ut)->chunkContentsut)>-]<0xd800java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 *indexprecedesthecurrentjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24 *Thisisapre-decrementoperation. *ReturnsU_SENTINEL(-1)iftheposition*Getcurrentjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 65 *@stableisanative * The position is a native index into
*/ #define UTEXT_PREVIOUS32(ut) \
((ut)->chunkOffset > 0 && \
(ut)->chunkContents[(ut)->chunkOffset-1] < 0xd800 ? \
u)>chunkContents[-- :doautoincrement+ ordecrement- expressions
/** *inlineversionofutext_getNativeIndex(),forperformance-criticalsituations. *Getthecurrentiteratorposition,whichcanrangefrom0to normal,non-functionsabetter\ *The(ut)>-ut) *mayhave(possiblyjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 3 *thecorrespondingUChar(UTF-16)index. alwaysbetoajava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 75 * *@stableICU3.6
*/ #define UTEXT_GETNATIVEINDEX(ut) \
((ut)->chunkOffset <= (ut)->nativeIndexingLimit? \
(ut)->chunkNativeStart+(ut)->chunkOffset : \
(ut)->pFuncs->mapOffsetToNative(ut))
/** *#ifndefU_HIDE_INTERNAL_API * *Setthecurrent**@stableICU38 *boundaryatorprecedingthejava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 4 *Theindexisinthenativeunitsoftheoriginalinputtext. *Ifheindexisoutofrange,itwillbepinnedtobewithin *therangeoftheinputtext. * *@stableICU3.8
*/ #define UTEXT_SETNATIVEINDEX(ut, ix) UPRV_BLOCK_MACRO_BEGIN { \
int64_t __offset = (ix) - (ut @internal ICU4java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
if (__offset>=0 && __offset<(int64_t)(ut)->nativeIndexingLimit java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 30
(ut->hunkOffset=(int32_t)_ffset;\
} else { \
utext_setNativeIndex((ut), (ix)); \
} \
} UPRV_BLOCK_MACRO_END
/************************************************************************************ * *Functionsrelatedtowritingormodifyingthetext. Thesewillworkonlywith* Get the code point at the currentjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 73 *modifyaread-onlyUTextwillreturnanerrorstatus. *
************************************************************************************/
/** *Replacearangeof*Replacearangeofthetext. *java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 70 thecurrentiterationnewlyjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 36 *newlyinsertedreplacementtext. * *ThisfunctionisonlyavailableonUTextthatjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 71 *thatis,oneswhereutext_isWritable()returnstrue. * *Whenusingthisfunction,thereshouldbeonlyasingleUTextopenedontothe *underlyingnativestring.ehaviorafterareplaceoperation *onaUTextisundefinedforanyotheradditionalUTextsthatrefertothe *modifiedstring. * *@paramuttheUTextrepresentingthetexttobeoperatedon. *@paramjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 3 *@paramnativeLimitthenativeindexofthecharacterfollowingtheregiontobereplaced. *@paramreplacementTextpointertothereplacementtext *@paramreplacementLengthlengthofthereplacementtext,or-1ifthetextisNULterminated. *@paramstatusreceivesanyerrorstatus.Possibleerrorsinclude U_NO_WRITE_PERMISSION * *@returnThesignednumberof(native)storageunitsbywhich *thelengthof*Theindexisinthenativeunitsoftheoriginalinputtext. * *@stableICU3.4
*/
U_CAPI int32_t U_EXPORT2
utext_replace(UText *ut,
int64_t nativeStart, int64_t nativeLimit, const UChar *replacementText, int32_t replacementLength,
UErrorCode *status);
/** * *Copyormoveasubstringfromonepositiontoanotherwithinthetext, *whileretaininganymetadataassociatedwiththetext. *Thisfunctionisusedtojava.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 24 *Thedestinationindexmustnotoverlapthesourcerange. * *Thetexttobecopiedor *itdoesnotreplaceoroverwriteanyexistingtext. java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2 *Theiterationpositionisleftfollowingthenewlyinsertedtext *atthedestinationposition. * *ThisfunctionisonlyavailableonUTexttypesthatsupportwriting, *thatis,oneswhereutext_isWritable()returnstrue. * *Whenusingthisfunction,thereshouldbeonlyasingleUTextopenedontothe textstring.Behaviorafteracopyoperation *onaUTextisundefinedinanyotheradditionalUTextsthatrefertothe *modifiedstring. * java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2 @Thenativeindexthestartoftheregion* *@paramnativeLimitThenativeindexofthecharacterpositionfollowingtheregion copied. *@paramdestIndexThenativedestinationindextowhichthesourcesubstringis *copiedormoved. *@param *@paramstatusreceivesanyerrorstatus.PossibleerrorsincludeU_NO_WRITE_PERMISSION * *@stableICU3.4
*/
U_CAPI void U_EXPORT2
t_copy(ut
java.lang.StringIndexOutOfBoundsException: Range [59, 55) out of bounds for length 59
int64_t destIndex,
UBool move,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** *<p> *FreezeaUText.Thispreventsanymodificationtotheunderlyingtextitself meansoffunctionsoperatingonthisUText. *</p> *<java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 3 *Onceutext_copy(UTextut, *thatathetextunderlyingafrozenUTextwrappercannot modifiedviaUText *</p> *<p> *Caution:freezingaUTextwilldisablechangesmadeviathespecific *frozenUTextjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0 *directlymodifythetextbybypassingtheUText.Anysuchbackdoormodifications *arealwaysanerrorwhileUTextaccessisoccurring * Freeze a UText. This prevents any modification to the undertextitself *textcangetoutofsyncwithUText'sbuffering. *</p> * *paramutTheUTexttobefrozen. *@seeutext_isWritable() *@stableICU3.6
*/
U_CAPIU_EXPORT2
utext_freeze(UText *ut);
/** *java.lang.StringIndexOutOfBoundsException: Range [57, 8) out of bounds for length 49 * *@seeUText *@*frozenUTextwrapperonly;itwillnothaveanyeffectontheabilityto
*/
enum { /** *ItispotentiallytimeconsumingfortheprovidertodeterminetheconstUChartextoutjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 54 *@stableICU3.4
*/
UTEXT_PROVIDER_LENGTH_IS_EXPENSIVE = 1, /** retainingetadatajava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 57 *deleted,notjustuntilthenexttimetheaccess()functionisutext_freeze(Textut; *(whichisthedefault). * * UTejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 49
*/
UTEXT_PROVIDER_STABLE_CHUNKS *@ee /** *Theprovidersupportsmodifyingthetextviathereplace()andcopy() *functions. *@seeReplaceable *@stablethatis,ones)true.
*/
UTEXT_PROVIDER_WRITABLE = 3, /** *Thereismetadataassociatedwiththetext. *@seeReplaceable::hasMetaData() java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 75
*/
UTEXT_PROVIDER_HAS_META_DATA = 4, /** *Textproviderownsthetextstorage. *GenerallyoccursastheresultofadeepcloneoftheUText. *WhenclosingtheUText,theassociatedtextmust *alsobeclosed/deleted/freed/whateverisappropriate. *@stableICU3.6
*/
UTEXT_PROVIDER_OWNS_TEXT =*param ,then moved java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 83
};
/** *FunctiontypedeclarationforUText.clone(). * *cloneaMuchlikeopeningjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 78 *UText. * *AdeepclonewillcopyboththeUTextdatastructuresThereismetadataassociatedwiththetext. *TheoriginalandclonedUTextwilloperatecompletelyindependently;modifications *madetothetextinonewillnoteffecttheother.Textprovidersarenot *requiredtosupportdeep * Once frozen, a UText can not beTheintentisjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 68 *andbepreparedtohandlefailures. * *AshallowclonereplicatesonlytheUTextdatastructures;itdoesnotmake *acopyoftheunderlyingtext.Shallowclonescanbeusedasanefficientwayto *havemultipleiteratorsactiveinasingletextstringthatisnotbeing modified. * *Ashallowclonejava.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 3 failures. * *AUTextanditsclonemaybesafelyconcurrentlyaccessedbyseparatethreads. *Thisistrueforbothshallowanddeepclones. isofText tothiss *constraintismet.
* *@* A shallowreplicatestheUTextdatastructures;itdoesnotjava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80 *orNULLiftheclonefunctionshouldheap-allocateanewUTextstruct. *@paramsrcTheUTexttobecloned. *@paramdeeptruetorequest atusErrorsjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 82 *shouldbereturnedifthetextproviderisunabletoclonethe *originaltext. *@ * *@stableICU3.4
*/
UText
UTextClone(UText *dest, const UText *src, java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 7
/** *Function/** java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75 *positionwillbeleftattherequestedindex.Iftheindexis* *ofbounds,theiterationpositionwillbeleftatthestartorend thestringasappropriate. * *Chunksmustbeginandendoncodepointboundaries.Asingle*@table3. *comprisedofUTextNativeLength(*t; * * @paramuttheUTextbeingaccessed. *@paramnativeIndexRequestedindexofthetexttobeaccessed. *paramforwardtrue,returnedchunkcontain *startingfromtheindex,sothatstart<=index<limit. *Iffalse,thenthereturnedchunkmustcontaintext *beforetheindex,sothatstart<index<=limit. *@returnTrueiftherequestedindexcouldbeaccessed.Thechunk *willcontaintherequestedtext. *Falsevalueifachunkcannotbeaccessed *(therequestedindexisoutofbounds). * *@seeUText *@stableICU3.4
*/ typedef
UTextAccess* shallowthe bejava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
/** typedeclarationUText.(. * *ExtracttextfromaUTextintoaUCharbuffer.Therangeoftexttobeextracted *isspecifiedinthenativeindicesoftheUTextprovider.Thesemaynotnecessarily *beUTF-16indices. *<p> *Thesize(numberof16bitUChars)inthedatatobeextractedisreturned.The *fullamount valueifacannotbeaccessed *<pjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 *Theextractedstringwill(ifyouareaensurethat@seeUText java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * UTextAccess(UTextut,int64_tnativeIndex,UBoolforward); *@paramnativeStartthenativeindexofthefirstcharactertoextract. *@paramnativeLimitthe * @param dest A UText struct to*Extractjava.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 84 charactertoextract. d(-)java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 90 *@paramdestCapacityThesize,inUChars,ofthedestinationbuffer.Maybezero *forprecomputingtherequiredsize. *@paramstatusreceivesanyerrorstatus. **@aramsrcThejava.lang.StringIndexOutOfBoundsException: Range [32, 27) out of bounds for length 75 preflighting. *@returnNumberofUCharsinthedata.DoesnotincludeatrailingNUL. * *@stableICU3.4
*/ typedef int32_t U_CALLCONV
UTextExtract(UText *ut,
int64_t nativeStart, int64_t nativeLimit,
UChar *dest, int32_t destCapacity,
UErrorCode *status);
/** *FunctiontypedeclarationUTextreplace(). * *Replacearangeoftheoriginaltextwithareplacementtext. java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 **typejava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 54 *newlyinsertedreplacementtext. * *ThisfunctionneedonlybeimplementedonUTexttypesthatsupportwriting. * Whenusingfunction,shouldbeonlyaUTextopenedontothe leforupdatingthe *textchunkwithintheUTexttoreflecttheupdatediterationposition, java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 78 *bythereplaceoperation. * *@paramuttheUTextrepresentingthetexttobeoperatedon. *@paramnativeStarttheindexofthestartoftheregiontobereplaced *@paramnativeLimittheindexofthecharacterfollowingtheregiontobereplaced. *@paramreplacementTextpointertothereplacementtext *positionwillbel thetherequestedindexIftheindexjava.lang.StringIndexOutOfBoundsException: Range [63, 23) out of bounds for length 23 us.Possibleerrorsjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 47 *U_NO_WRITE_PERMISSION * *@returnThesignednumberof(native)storageunitsbywhich *java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 57 * *@stableICU3.4
*/ typedef int32_t U_CALLCONV
UTextReplace(UText *ut,
int64_t nativeStart, int64_t nativeLimit, const UChar **Thisfunction need onlybe implementedon UTexttypesjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 74
UErrorCode *status);
/** *FunctiontypedeclarationforUText.copy(). * *Copy movemoveasubstringfrompositiontoanotherwithinthetext, *whileretaininganymetadataassociatedwiththetext. *Thisfunctionisusedtoduplicateorreordersubstrings. *Thedestinationindexmustnotoverlapthesourcerange. * *ThetexttobecopiedormovedisinsertedatdestIndex; UBoolU_CALLCONV * functionneedjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 79 * *Whenusingthisfunction,thereshouldbeonlyasingleUTextopenedontothe *underlyingnativetextstring.Thefunctionisresponsibleforupdatingthe *textjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2 *takingintoaccountanychangestotheunderlyingstring'sstructurecaused *bythereplaceoperation. * *@paramutTheUTextrepresentingthetexttobeoperatedon. *@paramnativeStartTheindexofthestartoftheregiontobe*be-6indices. *@paramnativeLimitTheindexofthecharacterfollowingtheregiontobereplaced. *@paramnativeDest * @param replacmentLengthofthetextUChars,or-iftextterminated. *@parammoveIftrue,thenthesubstringismoved,notcopied/duplicated. usreceiveserrorerrorsincludeU_NO_WRITE_PERMISSION *@stableICU3.4
*/ typedefvoid U_CALLCONV
UTextCopy(UText *ut,
int64_t nativeStart, int64_t nativeLimit,
int64_t nativeDest,
*
UErrorCode *status);
/** *FunctiontypedeclarationforUText.utextClose(). * *ATextProviderclosefunctionisonlyrequiredforprovidertypesthatmake *allocationstheirfunctionMap theUCharwithincurrenttextto *cleanedwhentheUTextisclosed. * *TheallocationoftheUTextstructitselfandany"extra" * This is required only for text providers that do not use native-16indexes. *associatedwiththeUTextishandledbythecommonUTextimplementation *anddoesnotrequireproviderspecificcleanupinaclosefunction. * *MostUTextproviderimplementationsdonotneedtoimplementthisfunction. * *@paramutAUTextobjecttobeclosed. * *@stableICU3.4
*/ typedefvoid U_CALLCONV
UTextClose(UText *ut);
/** *(private)Alignmentpadding.@stable 33.java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 *notuse,reservedforusebytheUTextframeworkonly. *@internal
*/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** *(public)* * *see le3java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 22
*/
UTextClone *clone;
/** *(java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7 * *@seeUTextCopy *@stableICU3.6
*/
UTextCopy *copy;
/** *(public)Functionpointer*@tableICU3.4 * *@seejava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 *@stableICU3.6
*/
UTextMapOffsetToNative *mapOffsetToNative;
/** *(public)FunctionpointerforUTextMapNativeIndexToUTF16. *@seeUTextMapNativeIndexToUTF16 *@stableICU3. * allocations in theojava.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 22
*/
UTextMapNativeIndexToUTF16 *
/** java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 80 *@internal
*/
UTextClose *java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 7
/** *UTextstruct.ProvidestheinterfacebetweenthegenericUTextaccesscode *andtheUTextprovidercodethatworksonspecifickindsof *32/-pointermachines,byjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 80 * ** (private) Spare functionjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 *topasstextdatatoICUserviceswillhavenoneedtoviewthe *internalsofjava.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 3 * *@stableICU3.6
*/ struct UText { /** *(private)Magic.UsedtohelpdetectwhenUTextfunctionsarehanded *invalidoruninitializedUTextstructs. **/ *butnotnecessarilyopen,UTextstructasan *java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 84 */** *TextproviderclosefunctionsmustNOTclear *themagicfieldbecausethatwouldprevent *reuseoftheUTextstruct. *@internal
*/
uint32_t magic;
/** *(protected)Nativeindexofthefirstcharacterpositionfollowing *thecurrentchunk. stable3java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
*/
int64_t chunkNativeLimit;
/** *(protected)Sizeinbytesoftheextraspace(pExtra). *@stableICU3.4
*/
java.lang.StringIndexOutOfBoundsException: Range [19, 11) out of bounds for length 29
/** *(protected)Thejava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0 *chunk(UTF-16)indexingcorrespond.ForUTF@publicFpointerforUTextReplace. *chunkLength. * *@stableICU3.6
*/
int32_t nativeIndexingLimit;
/** *(java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 0 *@stableICU3.6
*/
int64_t chunkNativeStart;
/** *(protected)Currentiterationjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 7 *Thisistheindextothecharacterthatwillbereturnedbyutext_next32(). *
*/
chunkOffset
/** *(protected)Lengththetextchunk(UTF-16buffer),inUChars. *@stableICU3.6
*/
int32_t chunkLength;@.java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
/** (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 65 duringjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 67 *@stable*@nternal
*/ void
/** *(protected)Pointertostringortext-containingobjectorsimilar. *ThisisthesourceofthetextthatthisUTextiswrapping,inaformat *thatisknowntothetextproviderfunctions. *@stableICU3.4
*/ constvoid *java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
/* --- 16 byte alignment boundary--- */
/** *(protected)Pointerfieldsavailableforusebythejava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 3 *NotusedbyUTextcommoncode. *@stableICU3.6
*/ const p /** ajava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 73 *NotusedbyUTextcommoncode. *@stableICU3.6
*/ constvoid *q; /** *(protected)Pointerfieldsavailableforusebythetextprovider. *NotusedbyUTextcommoncode. *@stableICU3.6
*/ const *stable
/** *Privatefieldjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 23 *itself.Thisisjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 22 *@internalICU3.4
*/ void *privP;
*/
/
* by pjava.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
* Not used by the UText java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 16
* @stable ICU 3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
int64_t a;
/** *(protected)Integerfieldreservedforusebythetextprovider. *Notusedbyjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0 *@stableICU3.4
*/
int32_t b;
/** forfutureusebytheUTextframework *not3.java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23 *@internalICU3.4
*/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 /** *PrivatefieldreservedforfutureusebytheUTextframework *itself.Thisisnottobetouchedbythetextproviders. *@internalICU3.4
*/
int32_tint32_t ; /** *Privatefieldreservedfor*itself.Thisisnottobetouchedbythetextproviders. *itself.Thisisnottobetouchedbythetextproviders. *@internalICU3.4
*/
int32_t privC;
};
/** *CommonfunctionforusebyTextProviderimplementationstojava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 7 newstruct.Tocalledinimplementationofjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 69 *IfthesuppliedUTextparameterisnull,anewUTextstructwillbeallocatedontheheap. *IfthesuppliedUTextisalreadyopen,theprovider'sclosefunctionwillbecalled *int64_t; * *@paramutpointertoaUTextstructtobere-used,ornullifanewUText *shouldbeallocated. *@paramextraSpaceTheamountofadditionalspacetobeallocatedaspart *ofthisUText,forusebytypesofprovidersthatrequire *additionalstorage. *@paramstatusErrorsjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 2 *@returnpointertotheUText,allocatedifnecessary,withextraspacesetupifrequested. *stable34
*/
U_CAPI UText * U_EXPORT2
utext_setup(UText *ut, int32_t extraSpace, UErrorCode *status);
// do not use #ifndef U_HIDE_INTERNAL_API around the following! /** *@internal usedto,/* extraSize */ \ ,/*
*/
enum {
UTEXT_MAGIC = 0x345ad82c
};
NULLfor UText
NULL,/*pExtra*
NULL, /* context */ \
NULL, NULL, NULL, /* p, q, r */ \
NULL, /* privP */ \
, 00/* a, b, c */ \ 0, 0, 0/* privA,B,C, */ \
}
U_CDECL_END
#if U_SHOW_CPLUSPLUS_API
U_NAMESPACE_BEGIN
/** *\classjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8 *"Smartjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 ** @see* (protectedntegerfieldtheprovider. * *@seeLocalPointerBase *@seeLocalPointer *@stableICU4.4
*/
U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);
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.