/** *\file *\briefCAPI:AbstractUnicodeTextAPI * ** *formats workwithservices.ICUnormallyoperatesontextthatis *storedinUTF-16format,in(UChar*)arraysfortheCAPIsorastype *UnicodeStringforC++APIs. * *ICUTextAccessallowsotherformats,suchasUTF-8*UnicodeStringforC++APIs. *java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 83 * *Therearethreegeneral*UTextwrapperandthen * *ApplicationLevelUse.Thisisthesimplestusage-applicationswould *useoneoftheutext_open()functionsontheirinputtext,andpass *theresultingUTexttothedesiredICUservice. *SecondisusageinICUServices,suchasbreakiteration,thatwillneedto operateoninputpresentedtothemasaUText.Theseimplementations *willneedtousetheiterationandrelatedUTextfunctionstogain *accesstotheactualtext. * *ThethirdclassofUText*accessthetext. *UTextimplementationsforthevarioustextstorageformats.Anapplication *orsystemwithauniquetext * UText implementations for the variousstorageformats.Anapplication *UTextproviderfunctionsforthatformat,whichwillthenallow *ICUservicestooperateonthatformat. *ICUtooperateonthatformat. * *<em>Iteratingovertext</em> * *HereissamplecodeforaforwarditerationoverthecontentsofaUText * *\code; *UChar32c; UText*ut=whatever(); * *for(c=utext_next32From(ut,0* *// do whatever with the codepoint c here. ** *\endcode * *Andhereisjava.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 2 hetexttowardsbeginning * *\code *UChar32c; *java.lang.StringIndexOutOfBoundsException: Range [50, 11) out of bounds for length 50 **c *for(c=utext_previous32From(ut,textLength);c>=0;c=utext_previous32(ut*UTextut* *// do whatever with the codepoint c here. *} e * *<CharactersIndexing<em> * *IndexingintotextbyUTextfunctionsisnearlyalwaysintermsofthenative java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 78 *orUTF-32,forexample.WhencodingtotheUTextaccessAPI,noassumptions *canbemaderegardingthesize*orUTF-,forexample.WhencodingtotheUTextaccessAPI,noassumptions *maymovewheniteratingbetweencharacters. * *AllindicessuppliedtoUTextfunctionsarepinnedtothelengthofthe *text.Anout-of-boundsindexisnotconsideredtobeanerror,butis =index<=lengthofinputtext. * * *WhenanindexpositionisreturnedfromaUTextfunction,itwillbe *anativeindextotheunderlyingtext.Inthecaseofmulti-unitcharacters, *itwillalwaysrefertothefirstpositionofthecharacter, *nevertointerior.Thisisessentiallythesamethingassayingthat *areturnedindexwillalwayspointtoaboundarybetweencharacters. * *WhenanativeindexissuppliedtoaUTextfunction,allindicesthat *refertoanypartofamulti-unitcharacterrepresentationareconsidered *tobeequivalent.Inthecaseofmulti-unitcharacters,anincomingindex *willbelogicallynormalizedtorefertothestartofthecharacter. * *java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 76 *bydoingautext_setNativeIndex()followedbyautext_getNativeIndex(). *Iftheindexisreturnedunchanged,itwasonacodepointboundary.If *anadjustedindexisreturned,theoriginalindexreferredtothe *interiorofacharacter. * *<em>Conventionsfor* * *java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 81 *whichspecifiestheUTexttobeused.Unless*whichspecifiesUTextused.Unlessotherwisenoted,the *pointermustrefertoavalid,openUText.java.lang.StringIndexOutOfBoundsException: Range [1, 57) out of bounds for length 2 orpointeriserrorand *willproduceundefinedresultsorNULLpointerexceptions. * *TheUText_Openfamilyoffunctionscaneitheropenanexisting(closed) *UTextheapjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *astack-allocatedUText.
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *char*s=whatever();// A utf-8 string *U_ErrorCodestatus=U_ZERO_ERROR; *UTextut=UTEXT_INITIALIZER; *utext_openUTF8(ut,s,-1,&status); *if(U_FAILURE(status)){ *//errorhandling **eitherbyUTEXT_INITIALIZERorbybeenheap- *// work with the UText *} *\endcode
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 79 *eitherbytheUTEXT_INITIALIZER,orbyhavingbeenoriginallyheap-allocated *i." *heap-allocateandjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 *
*/
java.lang.NullPointerException #include"unicode/uchar.h" #if C for creating UText wrappers around various kinds of textstrings. #include"unicodejava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 #include"unicode/rep.h" #include"unicode/unistr.h" #include * #endif
U_CDECL_BEGIN
struct UText;
defforby o.PassingNULLwill theopen to
/** UTextinstances.
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 66 *<p>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *thestorageassociatedwiththeutext *IftheUTextstorageoriginatedjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 2 *alocalorstaticinstance,thestoragewillnotbedeleted. * *AnopenUTextcanberesettorefertonewstringbyusingoneoftheutext_open() *functionswithoutfirstclosingtheUText. * java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 38 @eturnNULLiftheUTextstructwasclose.Ifthestruct **Anopen*asubsequentutext_openjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 *returnedbythisfunction,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 24 subsequentutext_open. * *@stableICU3.4
*/
utext_close(*wasoriginally providedofa butvalidjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
/** OpenaonlyUTextimplementationunicodecharacter\uFFFD.java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86 * *\htmlonly *invalidUTF-java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 62 *asequenceutext_closeUText*ut)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 replacementcharacter, *Anyotherillegalbyteswilleachbereplacedbya\uFFFD. *\ * *@paramutPointertoasequencebytesthatthea-8string. *Ifnon-NULL,mustrefertoaninitializedUTextstruct,whichwillthen *beresettoreferencethespecifiedUTF-8string. *@paramsAUTF-8string.MustnotbeNULL. *@paramlengthThelengthoftheUTF-8stringinbytes,or-1ifthestringis *zero. *@ *@returnApointerto *willalwaysbeusedandreturned. *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
utext_openUTF8(UText *ut, constparamut Pointer a UText struct If NULL,anew UText willbe java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
/** *aonlyUTextfor*string. * *@paramutPointertoaUTextstructresettoreferencethespecifiedstring. *Ifnon-NULL,mustrefertoaninitializedUTextstruct,whichwillthen *tothejava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 66 utext_openUTF8(UText*ut,constchar*s,int64_tlength,UErrorCode*status); *@paramlengthThenumberofUCharsintheinputstring,or-1ifthestringis *zeroterminated. *@paramErrorsreturnedhere. tothe aallocatedUTextwasprovided, #fU_SHOW_CPLUSPLUS_API *@stableICUOpenUTextfora-UnicodeString.
*/
U_EXPORT2
utext_openUChars(UText *ut, const UChar *s, int64_t length, UErrorCode *status);
#if U_SHOW_CPLUSPLUS_API /** *OpenawritableUTextforanon-constUnicodeString. * *@paramutPointertoaUTextstruct.Ifnullptr,anewUTextwillbecreated. *Ifnon-nullptr,mustrefertoaninitializedUTextstruct,whichwillthen especifiedinputstring. *@paramsAUnicodeString. *@paramstatusErrorsarereturnedhere. *@returnPointertotheUText.IfaUTextwasjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 3 *willalwaysbeusedandreturned.
java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 18
*/
utext_openUnicodeString(UText *ut, icu::* be reset to reference the specified.
/** *OpenaUText@ICU.4 * *@paramutPointertoaUTextstruct.Ifnullptr,autext_openUnicodeString(UText *ut, icu::UnicodeString *s, UEr*status); *Ifnon-nullptr,mustrefertoaninitializedUTextstruct,whichwillthen beresetjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 66 *@paramsAconstUnicodeStringtobewrapped. *@paramstatusErrorsarereturnedhere. *@returnPointertotheUText.IfaUTextwassuppliedasinput,this *willalwaysbeusedandreturned. *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
utext_openConstUnicodeString(UText *ut, constparam rep Replaceable textobject *will java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 50
* aUTextimplementationjava.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 42 *@paramutPointertoaUTextstruct.Ifnullptr,anewUTextwillbecreated. *Ifnon-java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0 *beresetto be reset to referencespecifiedreplaceablejava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70 *@@paramjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 42 *pstatusErrorsarereturnedhere. *@returnjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 50 *willalwaysbeusedandreturned. *@seeReplaceable *stable3.4
*/
U_CAPI java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 3
utext_openReplaceable(UText *ut, icu::Replaceable *rep, UErrorCode *status);
/** *OpenaUTextimplementationICUCharacterIterator *@paramutPointertoaUTextstruct.Ifnullptr,anewUTextwillbecreated. *Ifnon-* be reset tothejava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 19 *beresettoreferenceU_CAPI*U_EXPORT2 *@paramciACharacterIterator. *@paramstatusErrorsCloneaUText.ThisismucheturnPointertotheUText.IfaUTextwassuppliedasinput,this *@java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0 *willalwaysbeusedandreturned. *seeReplaceable *@stableICU3.4
*/
U_CAPI UText * U_EXPORT2
utext_openCharacterIterator(UText *ut, icu::CharacterIterator *ci, UErrorCode *status);
#endif
/** *CloneaUText.ThisismuchlikeopeningaUTextwhere * A deep clone will copy both the UText data structures and thetext. *anotherUText. *AdeepclonewillcopyboththeUTextdatastructures* *TheoriginalandclonedUTextwilloperatecompletelyindependently;modifications *madetothetextinonewillnotaffecttheother.Textprovidersarenot *requiredtosupportdeepclones.Theuserofclone()mustcheckthestatusreturn *andbepreparedtohandlefailures. * *ThestandardUTextimplementationsforUTF8,UChar*,UnicodeStringand *Replaceableallsupportdeepcloning. * *TheUTextreturnedfrom*modified. *providerisabletosupportwriting,evenifthesourceUTexthadbeenmade -java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 45 * *AshallowclonereplicatesonlythetextareexpectedtobeusedeitherontheoriginalortheclonedUText. *acopyoftheunderlyingtext.Shallowclonescan* *multipleintextstringthatisnot *modified. * *Ashallowcloneoperationwillnot*writeoperationsmustbeavoidedwhilethanoneUTextexiststhatrefer *asmemoryallocationfailures. * *ShallowUTextclonesshouldbeavoidediftheUTextfunctionsthatmodifyjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 74 *textareexpectedtobeusedshallowjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 81 *Anysuchmodificationscancauseunpredictablebehavior.ReadOnly ** *disablingtextmodificationviatheclonedUText. * *AshallowclonemadewiththereadOnlyparameter==falsewillpreservethe *utext_isWritable() java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 81 *tothesameunderlyingtext. * *AUTextanditsclonemaybesafelyconcurrentlyaccessedbyseparatethreads. srcTheUTexttocloned. * write access with deep *ItistheresponsibilityoftheTextProvidertoensurethatthisthreadsafety *constraintismet. * *@paramdestAUTextstructtobefilledinwiththeresultofthecloneoperation, *orNULLiftheclonefunctionshouldheap-allocateanewUTextstruct. *Ifnon-NULL,mustrefertoanalreadyexistingUText,whichwillthen *beresettobecometheclone. *@java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 42 *@paramdeeptruetotwoobjectsjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 *@paramreadOnly*@aramto adeep,falseforclone. *underlyingtext@paramreadOnlytruetorequestthattheclonedUTexthavereadonlyaccesstothe
ifareiteratingoverthesametext,and /** *ComparetwoUTextobjectsforequality. *UTextstheroroftheparametersareNULLjava.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65 *havethesameiterationpositionwithinthetext. java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 35 * *@paramaThefirstofthetwoUTextstocompare. *@parambTheotherUTexttobecompared. *@returntrueifthetwoUTextsareequal. *stableICU3.6
*/
U_CAPI UBool U_EXPORT2
utext_equals(const UText *a, const UText *b);
/** *Getthelengthofthetext.Dependingonthecharacteristics *oftheunderlyingtextrepresentation,thismaybeexpensive. @java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 * * *@aramutthebejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 *@returnthelengthofthetext,expressedinnativeunits. * *@stableICU3.4
*/
utext_nativeLength(UText *ut);
/** *Returntrueifcalculatingthelengthofjava.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 3 *FindingthelengthofNULterminatedstringsisconsideredtobejava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 49 * *Notethatthe* *astheresultofotheroperationsonaUText. *Oncethelengthofastringhasbeendiscovered,itwillnolonger *beexpensivetoreportit. * *@paramutthetexttobeaccessed* *@returntrueifdeterminingthelengthofthetextcouldbetimeconsuming. *@stableICU3.4
*/
U_CAPI UBool U_EXPORT2
utext_isLengthExpensive(const UText *ut);
/** *Returnsthecodepointattherequestedindex, *willtjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 89 * *Ifthespecifiedindex* the complete code point will be. *ofUTF8sequence,for *thecompletecodepointwillbereturned. * *Theiterationpositionwillbesettothestartofthereturnedcodepoint. * *unctionroughlyequivalenttosequence * utext_setNativeIndexvaluetheindexzerowhich) *utext_current32(); *(Thereisasubtledifferenceiftheindexisout*returnU_SENTINELvaluejava.lang.StringIndexOutOfBoundsException: Range [35, 32) out of bounds for length 38 (egativetheindexn, *willreturnthecharatzero.utext_char32At(negativeindex),ontheotherhand,will *returntheU_SENTINELvalueof-1.) *@paramutthetexttobeaccessed *@paramnativeIndexthenativeindexofthecharactertobejava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 18 *ar32U_EXPORT2 *tothestartofthecharacter. *@returnthecodepointatthespecifiedindex. *@stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
UText* )
/*** * *Getthepointatthejava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 18 *orU_SENTINEL(-1)iftheiterationhasreachedtheendof java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 18 * * @thecurrentjava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67 *@stable
*/
U_CAPI UChar32U_EXPORT2
utext_current32(UText *ut);
/** *GetthecodepointatthecurrentiterationpositionoftheUText,and *advancethepositiontothefirstindexfollowingthecharacter. * *Ifthepositionisattheendofthetext(theindexfollowing *thelastcharacter,whichisalsothelengthof/*java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 returnU_SENTINEL(-1)anddonotadvancetheindex. * Thisisoperation * *Aninlinemacroversionofthisfunction,UTEXT_NEXT32(), *isavailableforperformancecriticaluse. * *@paramutthetexttobeaccessedAninlineversionjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 iteratorpositiontothecharacter(codepoint)whose *@seeUTEXT_NEXT32 *@stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
* thejava.lang.StringIndexOutOfBoundsException: Range [32, 28) out of bounds for length 63
/** *Movetheiteratorpositiontothecharacter(codepoint)whose *indexprecedesthecurrentposition,and(java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 28 *Thisisapre-decrementoperation. * *Iftheinitialisstartof(ndex 0)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69 *returnU_SENTINEL(-1),and* * *Anmacrooffunction,(, *isavailableforperformancecriticaluse. * *@aramutthetexttobeaccessed. *@returnthepreviousUChar32codepoint,orU_SENTINEL(-1) *iftheiterationhasreachedthestartofthetext. *@seeUTEXT_PREVIOUS32 *@stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
utext_previous32Textut;
/** *Leavetheiterationindexatthestartfthefollowingpoint. *Leavetheiterationindexatthestartofthefollowingcodepoint. * *Thisfunctionisthemostefficientandconvenientwayto *beginaforwarditeration.Theresultsareidenticaltothethose *fromthesequence * *utext_setIndex(); *utext_next32(); *\endcode * *@paramutthetexttobeaccessed. *@paramnativeIndexIterationindex,inthenativeunitsofthetextprovider. *@eturnpointstartsatorjava.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56 unds. *@stableICU3.4
*/
U_CAPI UChar32 U_EXPORT2
utext_next32From(Text ut int64_tnativeIndex)
/** *Settheiterationindex,andreturnthecodepointprecedingthe *onespecifiedbytheinitialindex.Leavetheiterationposition*U_SENTINEL(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *atthestartofthereturnedcodepoint. * *Thisisthejava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 61 *beginabackwardsiteration. * *@aramthetobe. *@paramnativeIndexIterationindexinthenativeunitsofthetextprovider. *@returnCodepointprecedingtheoneat*thejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *orU_SENTINEL(-1)ifitisoutofbounds. * *@stableICU3.4
*/
U_CAPIjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24
utext_previous32From(UText @aramjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 19
/** java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 65 *thelengthofthetext. *Thepositionisanativeindexintotheinputtext,inwhateverformatit *mayhave(possiblyUTF-8forexample),andmaynotalwaysbethesameas *thecorrespondingUChar(UTF-16)index. *Thereturnedpositionwillalwaysbealignedtoacodepointboundary. * *@paramutthetexttobeaccessed. returnjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 81 *@stableICU3.4
*/
U_CAPI int64_t U_EXPORT2
utext_getNativeIndex(const UText *ut);
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
* Set the current iteration position to the nearest code point
* boundary at or preceding the specified index.
* The index is in the native units of the original input text.
* If @aramthe toaccessed
* the range of the input text.
* <p>
willusuallybemore begin
* using the functions utext_next32From() or utext_previous32From()
* rather than setIndex().
* <p>
* Moving the index position to an adjacent character is best done
* with * easily knowable
* Attempting to do direct arithmetic on the index*
* complicated by the fact that the size (in native units) of a
* character *@utthetextto .
* (UTF-8, UTF-16, UTF-32, arbitrary codepage), and is not
* easily knowable.
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
ut the text to be accessed.
* @param nativeIndex the native unit index of the new iteration position.
* @stable ICU 3.4
*/
U_CAPI void java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 53
/** *Get* *Iftheiterationpositionisalreadyatthestartof@aramthebeaccessed. *isreturned. *Thevaluereturnedisthesameasthatobtainedfromthefollowingsequence, *butwithoutthesideeffectofchangingtheiterationposition. * *\code *UText*ut=whatever; */ *utext_previousut) *java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 8 *\endcode *towardsthestartthe. p> *native * The index is moved<codedelta<code>codepoints *@paramutthetexttobeaccessed *@returnthenativeindexofthecharacterprecedingthecurrentindexposition, cisatstartthetext. *@ICU36
*/
U_CAPI int64_t U_EXPORT2
* or zero if theorzero if thecurrent position is at the start of the text.
/** * *ExtracttextfromaUTextintoaUCharbuffer.Therangeoftexttobeextracted *@34 */ *<p> *sizeitdatatoextractedreturned.The *fullofUChars returned,evenwhenjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 79 toosmalljava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 *<p> *Theextractedstringwill(ifyouareauser)/must(ifyouareatextprovider) *beNUL-terminatedifthereissufficientspaceinthedestinationbuffer.This *terminatingNULisnotincludedinthereturnedlength. *<p> *Theiterationindexisleftatthepositionfollowingthelast * be NUL-terminated if there is sufficient space in the destination.This * *@paramuttheUTextfromwhichtoextract. *@paramnativeStartthenativeindexofthefirstcharactertoextract.\ of bepinnedtobewithin0<=index<=textLength *@paramnativeLimitthenativestringindexofthe * native index of the character most recently returutext_next(). **@the * @param nativeLimithenativejava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 81 *itwillbepinnedtobewithin0<=index<=textLength. *nativeLimitmustbe>=nativeStart. *@paramdesttheUChar(UTF-16)bufferintowhichtheextractedtextisplaced pacity size,fjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 85 *forprecomputingtherequiredsize. *@paramstatusreceivesanyerrorstatus. *U_BUFFER_OVERFLOW_ERROR:theextractedtextwastruncatedbecausethe *bufferwastoosmall.ReturnsofUCharsforpreflighting. *@returnNumberofUCharsinthedatatobejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 3 * *@stableICU3.4
*/
U_CAPI int32_t U_EXPORT2
*
int64_t nativeStart, int64_t nativeLimit,
UChar *dest, int32_t destCapacity,
UErrorCode *
#ifndef U_HIDE_INTERNAL_API /** *inlineversionofutext_current32(),forperformance-criticalsituations. * positionofthe. *java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 2 *text. * *@internalICU4.4technologypreview
*/ #define UTEXT_CURRENT32(ut) \
((ut)->chunkOffset < (ut)->chunkLength && ((ut)->chunkContents)[(ut)->java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 69
((ut)->chunkContents)[((ut)->chunkOffset)] : utext_current32*@aramnativeLimitthe string thepositionfollowing the last #endif/* U_HIDE_INTERNAL_API */
/** 2()orjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 77 * *Movetheiteratorpositiontothecharacter(codepoint)whose *indexprecedesthecurrentposition,andreturnthatcharacter. *Thisisapre-decrementoperation. java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 73 * *@stableICU3.4
*/ #define UTEXT_PREVIOUS32(ut) \
((ut)->chunkOffset *
[(->hunkOffset1 <0xd800?\
(ut)->java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 18
/** *inlineversionofutext_getNativeIndex(),forperformance-criticalsituations. * Gettheiteratorposition,whichcanrangejava.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 47 * sitionanativeindexjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0 *mayhave(possiblyUTF-8for/************************************************************************************ *thecorrespondingUChar(UTF-)index. *Thereturnedpositionwillalwaysbe(t->chunkContents[--java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 76 * *@stableICU3.6
*/ #define UTEXT_GETNATIVEINDEX(ut) \
((ut)->chunkOffset <= (ut)->nativeIndexingLimit? \
java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
(-pFuncs-mapOffsetToNative() java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
/** *inlineversionofutext_setNativeIndex(),forperformance-criticalsituations. * blignedtoapointboundary. *boundaryatorprecedingthespecifiedindex. *Theindexisinthenativeunitsoftheoriginalinputtext. *Iftheindexisoutofrange,itwillbepinnedtobewithin *therangeoftheinputtext. * stableICU.java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
*/ #define UTEXT_SETNATIVEINDEX(ut, ix) UPRV_BLOCK_MACRO_BEGIN { \
_= ()-(ut->hunkNativeStart java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
if (__offset>=0 && __ t java.lang.StringIndexOutOfBoundsException: Range [23, 16) out of bounds for length 64
(ut)->chunkOffset=(int32_t)__offset; \
} else { \
utext_setNativeIndex((ut), (ix)); \
}\
} UPRV_BLOCK_MACRO_END
/************************************************************************************ * *Functionsrelatedtowritingormodifyingthetext. ()>chunkContents)((t)>chunkOffset]:utext_current32(ut)) *modifyaread-onlyjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 *
************************************************************************************/
* These will work only with modifiable UTexts. Attempting toworkonlyiterationpositionoftheUText,and *Returntrueifthetextcanbewritten(modified)withutext_replace()or *java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 63 *beofatypethatsupportswritingandthejava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 70 * *Attemptingtomodifytextwhenjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 3 *(*java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75 *thatattempted. * *java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 fthet * *@seeutext_freeze() *@seeutext_replace() *@seeutext_copy() *rjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 42 *
*/
U_CAPI UBool U_EXPORT2 @ java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 26
utext_isWritable(const UText *ut);
/** *Testwhetherthereismeta*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@seeReplaceable::hasMetaData((t->chunkOffset>0&\ * *paramutUTextjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 *@returntrueifthejava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 *@stableICU3.4
*/
U_CAPI UBool U_EXPORT2
utext_hasMetaData(const UText *ut);
/** java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 64 * Leavesthecurrentiterationpositionatthepositionfollowingthe *insertedreplacementjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2 typesthatsupportwriting, *thatis,oneswhereutext_isWritable()returnstrue. * *When* *underlyingnativetextstring.Behaviorafterareplaceoperation *ona/ fiedstring. * *@paramuttheUTextrepresentingthetexttobeoperatedon. *@paramnativeStartthenativeindexofthestartoftheregiontobereplaced *@paramnativeLimitthenativeindexofthecharacterfollowingtheregiontobereplaced. *@paramreplacementTextpointertothereplacementtext *@paramboundaryatorprecedingthespecifiedindex. *@paramstatusreceivesanyerrorstatus.Possibleerrorsinclude *U_NO_WRITE_PERMISSION
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *@returnThesignednumberof(native)storageunitsbywhich xpandedorcontracted. * *__offsetix)-ut)>;java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
*/
U_CAPI
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
int64_t nativeStart,
UChar replacementText int32_treplacementLength,
UErrorCode *status);
/** * *Copyormoveasubstringfromonepositiontoanotherwithinthe* ** *Thisfunctionisusedtoduplicateorreordersubstrings. *Thedestinationindexmustnotoverlapthesourcerange. * *ThetexttobecopiedormovedisinsertedatdestIndex; *itdoesnot * utext_copy(). thetexttobewritable,thetextprovidermust * *Theiterationpositionisleftfollowingthenewlyinsertedtext *atthedestinationposition.
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2 *Thisfunctionisonlyavailableon*@aramnativeStartofthethejava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 2 ,whereutext_isWritable)returnstrue. * *Whenusingthisfunction,thereshouldbeonlyasingleUTextopenedontothe *underlyingnativetextstring.Behaviorafteracopyoperation *on*@UBool * * *@paramutTheUTextrepresentingthetexttobeoperatedon. *@paramnativeStartThenativeindex*sReplaceable:hasMetaData(java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 *@paramnativeLimitint64_t* @return true if theincludesmetadata. *tobecopied. *@paramdestIndexThenativedestinationindextojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *copiedormoved. *@parammoveIftrue,thenjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 2 *@paramstatusreceivesanyerrorstatus.PossibleerrorsincludeU_NO_WRITE_PERMISSION * *@stableICU3*bymeansjava.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 51
*/
U_CAPI void U_EXPORT2
*
* the frozen wrapperbe that.*underlyingstring. java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 28
UBool move,
UErrorCode*@ java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 77
/** *<p> lying *bymeansoffunctionsoperatingonthisUText. *</p> *<p> *Oncefrozen,aUTextcannotbeunfrozen.Theintent@aramutTheUTexttofrozen void *</p> *<p> *Caution:freezingaUTextwilldisablechangesmade@java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 18 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 78 java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 87 /** cansyncUTextjava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54 *</p> * *@paramutTheUTextjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 3 *@seeutext_isWritable() *@stableICU3.6
*/
U_CAPI void U_EXPORT2
U *)
/**
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 49 * sUText *@stableICU3.4
*/
enum { /** *Itispotentiallytimeisjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 22
*/
UTEXT_PROVIDER_LENGTH_IS_EXPENSIVE java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 75 /** *Textchunksremainvalidandusableuntilthetextobjectisjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 *deleted,notjustuntilthejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 68 *WhenclosingUText,theassociatedtextmust *@java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 84
*/
UTEXT_PROVIDER_STABLE_CHUNKS = 2, /** *Theprovidersupportsmodifyingthetextviathereplace()andcopy() *java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17 *@seeReplaceable @.4
*/
UTEXT_PROVIDER_WRITABLE = 3, /** *ismetajava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 51 *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@stableICU3.4
*/
UTEXT_PROVIDER_HAS_META_DATA = 4, /** *Textproviderownsthetextstorage. occursjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 68 *WhenclosingtheUText,theassociatedtextmust *alsobeclosed/deleted/freed/whateverisappropriate. *@stableICU3.6
*/
java.lang.StringIndexOutOfBoundsException: Range [33, 29) out of bounds for length 33
};
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
* Function type declaration for UText.clone().
*
* clone a * @param ut java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 39
* another UText.
*
* A deep clone will @ICU36
* The original and cloned*java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
* java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 79
* required to support deep clones. The user of clone() must check the status return
* and be prepared to handle failures.
*
clone replicatesonly UTextdatastructures doesnotmake
* a copy of the see
* have * @stable ICU 3
* modified.
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
shallowcloneoperationmust not fail fortruly exceptional conditionssuch
* as memory allocation failures.
* *@atus returnedhere deep clones,U_UNSUPPORTED_ERROR
* This is true for both shallow and deep clones.
* It is the responsibility of the Text Provider to ensure that this thread safety
* constraint is met.
* struct java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 89
* or NULL if thetypedef
* @param src The UText to be cloned.
* @param deep true to request .java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 3 *shouldbereturnedifthetextproviderisunabletoclonethe *originaltext *@ * @stable3. * *stable.java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
*/ typedef UText * U_CALLCONV
UTextClone(UText *dest, const s java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 38
*java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 75 *@paramuttheUTexttogetthelengthof. *@returnthelength,inthenativeunitsoftheoriginaltextstring. *@seeUText
*/ typedef int64_t U_CALLCONV
UText *)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
* @param ut the UText being accessed.java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 47 *Functiontypedeclarationfor* *containingthetextatarequesteda UText*@forwardIfreturnedmustcontaintext *positionwillbeleftattherequestedindex.Iftheindexisout *ofbounds,theiterationpositionwillbeleftatthestartorend *ofthestring,asappropriate. * *Chunksmustbeginandendoncodepointboundaries.Asinglecodepoint *comprisedofmultiplestorageunitsmustneverspanachunkboundary. * * *typedefUBool* *indexoftexttobeaccessed. *@paramforwardIftrue,thenthereturnedchunkmustcontaintext *startingfromtheindex,sothatstart<=index<*Functiondeclarationforextract()java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 *If,thenreturnedmustcontain *beforetheindex,sothatstart<index<=limit. *@returnTrueiftherequestedindexjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 6 *willcontaintherequestedtext. *Falseachunkbe *(*<> * *@java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13 *@stableICU3.4
*/ typedef UBool U_CALLCONV
*java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 59
/** *FunctiontypedeclarationforUText.extract(). * aintoatext **java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 46 *beUTF-16. *<p> *Thesize(numberof16bitUChars)inthedatatobeextractedisreturned.The whenthesizeisjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75 *<p> *Theextractedstringwill(ifyouareauser)/must(ifyouareatextproviderjava.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 74 *beNUL-terminatedifthereissufficientspaceinthedestinationbuffer. * *@paramuttheUTextfromwhichtoextractdata. *@paramnativeStartthenativeindexofthefirstcharactertoextract. * *character* *@paramdesttheUChar(UTF-16)bufferintowhichtheextractedtextjava.lang.StringIndexOutOfBoundsException: Range [0, 83) out of bounds for length 70 *@paramdestCapacityThesize,inUChars,ofthedestinationjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 2 *forprecomputingtherequired * underlying native text string. The function is responsibupdatingthe *@paramstatusreceivesanyerrorstatus. *If*takingintoaccountanychangestotheunderlyingstring'@tableICU3.4 *preflighting. *@returnNumberofUCharsinthedata.(UText*; * *@stableICU3.4
*/ typedef int32_t U_CALLCONV
/** *FunctiontypedeclarationforUText.replace(). * *Replacearangeoftheoriginaltextwithareplacementtext. * *Leavesthecurrentiterationpositionatthepositionfollowingthe*@ uttheUText *newlyinsertedreplacementtext. * functiononlybeimplementedUTexttypes theindex,=index<java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 74 * *Whenusingthisfunction,thereshouldbeonlyasingleUTextopenedontoCopyorsubstringfromonetojava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 73 *underlyingnativetextstring.Thefunctionisresponsibleforupdatingthe *textchunkwithintheUTexttoreflecttheupdatediterationposition, *takingintoaccountanychangestotheunderlyingstring'sstructurecaused *bythereplaceoperation. * *@paramuttheUTextrepresentingthetexttobeoperatedon. paramthebe *@paramnativeLimittheindexofthecharacterfollowingtheregiontobereplaced. *@param * The size (number)inthedextracted lengthofreplacementtextin-theisNULjava.lang.StringIndexOutOfBoundsException: Index 105 out of bounds for length 105 *@paramstatusreceivesanyerrorstatus.Possibleerrorsinclude * * @param statanystatus.Possiblejava.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 96 * *@returnThesignednumberof(native)storageunitsbywhich *thelengthofthetextexpandedorcontracted. * *@stableICU3.4
*/ typedef
UTextReplace(UText *ut,
int64_t nativeStart, int64_t nativeLimit, const UChar *replacementText, int32_t replacmentLength,
UErrorCode *status);
/** *java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 46 * *Copyormoveasubstringfromonepositiontoanotherwithinthetext, *whileretaininganymetadataassociatedwiththetext. *Thisfunctionisusedtojava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 2 indexjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 59 * *ThetexttobecopiedormovedisinsertedatdestIndex; *itdoesnotreplaceoroverwriteanyjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 27 * *ThisfunctionneedonlybeimplementedforUTexttypesthatsupportwriting. * *Whenusingthisfunction,thereshouldbeonlyasingleUTextopenedontothe nativestring.Thefunctionresponsibleupdating *textchunkwithintheUTexttoreflecttheupdatediterationposition, *takingintoaccountanychangestotheunderlyingstring'sstructurecaused *bythereplaceoperation. * *@paramutTheUTextjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 2 *@paramnativeStartTheindexofthestartoftheregiontobecopiedormoved *@paramnativeLimitTheindexofthecharacterfollowingtheregiontobereplaced. *@paramnativeDestThedestinationindextowhichthesourcesubstringiscopiedormoved. *@parammoveIftrue,thenthesubstringismoved,notcopied/duplicated. *@paramstatusreceivesanyerrorstatus.paramnativeIndexAbsolute(ative)textindex,chunk->tart=index=hunk>java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86 * *@stableICU3.4
*/ typedefvoid U_CALLCONV
UTextCopy
int64_t nativeStart, int64_t nativeLimit,
int64_t nativeDest,
UBool move,
UErrorCode *status);
/** *FunctiontypedeclarationforUText.mapOffsetToNative(). *Mapfromjava.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 69 *thecorrespondingnativeindexintheoriginalsourcetext. * UTF16indexes. * *@paramuttheUText. *@returnAbsolute(native)indexcorrespondingtochunkOffsetinthecurrentchunk. *Thereturnednativeindexshouldalwaysbetoacodepointboundary. *@stableICU3.4
*/ typedef int64_t U_CALLCONV
UTextMapOffsetToNative(const UText *ut);
/** *java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 2 *MapfromanativeindextoaUCharoffsetwithinatextchunk. *Behaviorisundefinedifthenativeindexdoesnotfallwithinthe *currentchunk. * *ThisCopymovejava.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 0 * *@paramut*(ublic)FunctiondispatchtableforUText. *@paramnativeIndexAbsolute(native)textindex,chunk->start<=index<=chunk->limit. *@returnChunk-relativeUTF-16offsetcorrespondingtothespecifiednative *index. * *@stableICU3.4
*/ typedef
UTextMapNativeIndexToUTF16(const UText *ut, int64_t nativeIndex);
/** *FunctiontypedeclarationforUText.utextClose(). * *ATextProviderclosefunctionisonlyrequiredforprovidertypesthatmake *allocationsintheiropenfunction(orotherfunctions)thatmustbe *cleanedwhentheUTextunderlyingnativefunctionforthe * *TheallocationoftheUTextstructitselfandany"extra"storage *associatedwiththeUTextishandledbythecommonUTextimplementation *anddoesnotrequireproviderspecificcleanupinaclosefunction. * *java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 31 * *@paramutAUTextobjecttobeclosed. * *@stableICU34
*/ typedefDo reserved java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 78
UTextClose(UText *ut);
/** *(public)FunctiondispatchtableforUText. *ConceptuallyverymuchlikeaC++VirtualFunctionTable. **@seeUTextClone *Eachtextproviderimplementationmustprovidetypedef * @stabICU.6 *actualtablethatisinitializedwiththeappropriatefunctions *forthetypeofjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 7 *@stableICU3.6
*/ struct UTextFuncs { /** *(public)Functiontablesize,sizeof(UTextFuncs) *foruseshouldthejava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 78 *functionsinthefuture,toallowtestsforolderformat *functiontablesthatdonotcontaintheextensions. * *Fieldsareplacedforoptimalalignmenton *32/64/128-bit-pointermachines,bynormallygroupingtogether *432-bitfields,
java.lang.StringIndexOutOfBoundsException: Range [12, 5) out of bounds for length 30 *264-bitfields *insequence. *@stableICU3.6
*/
int32_t tableSize;
/** *(public)FunctionpointerforUTextClone * *@seeUTextClone *@stableICU3.6
*/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** /** * *@seeUTextMapOffsetToNative *@stableICUjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
*/
UTextMapOffsetToNative *mapOffsetToNative;
/** *java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0 *thecurrentchunk. *@stableICU3.6
*/
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
**(rotected)java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 8 *Mayrefereithertooriginalstorageofthesourceofthetext,or *ifconversionwasrequired,toajava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 24 *@stableICU3.6
*/ const UChar *chunkContents;
/** *(java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24 *@stableICU3.6
*/ const UTextFuncs *pFuncs;
/** *(protected)Pointertoadditionalspacerequestedbythe *textproviderduringtheutext_openoperation. *@stableICU3.4
*/
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7
/** *(protected)Pointertostringortext-containingobjectorsimilar. *ThisisthesourceofthetextthatthisUTextisjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0 *thatisknownthetextunctionsjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53 *@stableICU3.4
*/ constvoid *context;
/** *Privatefieldreservedforfutureusebythejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *itself.Thisisnottobetouchedbythetextproviders. *@internalICU3.4
*/ void *privP;
/** *(protected)Integerfieldreservedforusebythetextprovider. *NotusedbytheUTextframework,orbytheclient(user)oftheUText. **java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 53
*/
int32_t b;
/** *(protected)Integerfieldreservedforusebythetextjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 0 *NotusedbytheUTextframework,orbythejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 7 *s ICU3.
*/
int32_t c;
/* ---- 16 byte alignment boundary---- */
/** *PrivatefieldreservedforfutureusebytheUTextframework java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 69 *@internalICU3.4
*/
int64_t privA; /** *PrivatefieldreservedforfutureusebytheUTextframework *itself.Thisisnottobetouchedbythetextproviders. *@internalICU3.4
*/
int32_t privB; /** *PrivatefieldreservedforfutureusebytheUTextframework *itself.Thisisnottobetouchedbythetextproviders. *@internalICU3.4
*/
int32_t privC;
};
// do not use #ifndef U_HIDE_INTERNAL_API around the following! /** *@internal *ValueusedtohelpidentifycorrectlyinitializedUTextstructs. *Note:mustbepubliclyvisiblesothatUTEXT_INITIALIZERcanaccessit.
*/
enum {
UTEXT_MAGIC = 0x345ad82c
};
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.