intl.php 244 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846
  1. <?php
  2. // Start of intl v.1.1.0
  3. class Collator {
  4. const DEFAULT_VALUE = -1;
  5. const PRIMARY = 0;
  6. const SECONDARY = 1;
  7. const TERTIARY = 2;
  8. const DEFAULT_STRENGTH = 2;
  9. const QUATERNARY = 3;
  10. const IDENTICAL = 15;
  11. const OFF = 16;
  12. const ON = 17;
  13. const SHIFTED = 20;
  14. const NON_IGNORABLE = 21;
  15. const LOWER_FIRST = 24;
  16. const UPPER_FIRST = 25;
  17. /**
  18. * <p>
  19. * Sort strings with different accents from the back of the string. This
  20. * attribute is automatically set to
  21. * On
  22. * for the French locales and a few others. Users normally would not need
  23. * to explicitly set this attribute. There is a string comparison
  24. * performance cost when it is set On,
  25. * but sort key length is unaffected. Possible values are:
  26. * <b>Collator::ON</b>
  27. * <b>Collator::OFF</b>(default)
  28. * <b>Collator::DEFAULT_VALUE</b>
  29. * </p>
  30. * <p>
  31. * FRENCH_COLLATION rules
  32. * <p>
  33. * F=OFF cote &lt; coté &lt; côte &lt; côté
  34. * F=ON cote &lt; côte &lt; coté &lt; côté
  35. * </p>
  36. * </p>
  37. * @link https://php.net/manual/en/intl.collator-constants.php
  38. */
  39. const FRENCH_COLLATION = 0;
  40. /**
  41. * <p>
  42. * The Alternate attribute is used to control the handling of the so called
  43. * variable characters in the UCA: whitespace, punctuation and symbols. If
  44. * Alternate is set to NonIgnorable
  45. * (N), then differences among these characters are of the same importance
  46. * as differences among letters. If Alternate is set to
  47. * Shifted
  48. * (S), then these characters are of only minor importance. The
  49. * Shifted value is often used in combination with
  50. * Strength
  51. * set to Quaternary. In such a case, whitespace, punctuation, and symbols
  52. * are considered when comparing strings, but only if all other aspects of
  53. * the strings (base letters, accents, and case) are identical. If
  54. * Alternate is not set to Shifted, then there is no difference between a
  55. * Strength of 3 and a Strength of 4. For more information and examples,
  56. * see Variable_Weighting in the
  57. * UCA.
  58. * The reason the Alternate values are not simply
  59. * On and Off
  60. * is that additional Alternate values may be added in the future. The UCA
  61. * option Blanked is expressed with Strength set to 3, and Alternate set to
  62. * Shifted. The default for most locales is NonIgnorable. If Shifted is
  63. * selected, it may be slower if there are many strings that are the same
  64. * except for punctuation; sort key length will not be affected unless the
  65. * strength level is also increased.
  66. * </p>
  67. * <p>
  68. * Possible values are:
  69. * <b>Collator::NON_IGNORABLE</b>(default)
  70. * <b>Collator::SHIFTED</b>
  71. * <b>Collator::DEFAULT_VALUE</b>
  72. * </p>
  73. * <p>
  74. * ALTERNATE_HANDLING rules
  75. * <p>
  76. * S=3, A=N di Silva &lt; Di Silva &lt; diSilva &lt; U.S.A. &lt; USA
  77. * S=3, A=S di Silva = diSilva &lt; Di Silva &lt; U.S.A. = USA
  78. * S=4, A=S di Silva &lt; diSilva &lt; Di Silva &lt; U.S.A. &lt; USA
  79. * </p>
  80. * </p>
  81. * @link https://php.net/manual/en/intl.collator-constants.php
  82. */
  83. const ALTERNATE_HANDLING = 1;
  84. /**
  85. * <p>
  86. * The Case_First attribute is used to control whether uppercase letters
  87. * come before lowercase letters or vice versa, in the absence of other
  88. * differences in the strings. The possible values are
  89. * Uppercase_First
  90. * (U) and Lowercase_First
  91. * (L), plus the standard Default
  92. * and Off.
  93. * There is almost no difference between the Off and Lowercase_First
  94. * options in terms of results, so typically users will not use
  95. * Lowercase_First: only Off or Uppercase_First. (People interested in the
  96. * detailed differences between X and L should consult the Collation
  97. * Customization). Specifying either L or U won't affect string comparison
  98. * performance, but will affect the sort key length.
  99. * </p>
  100. * <p>
  101. * Possible values are:
  102. * <b>Collator::OFF</b>(default)
  103. * <b>Collator::LOWER_FIRST</b>
  104. * <b>Collator::UPPER_FIRST</b>
  105. * <b>Collator:DEFAULT</b>
  106. * </p>
  107. * <p>
  108. * CASE_FIRST rules
  109. * <p>
  110. * C=X or C=L "china" &lt; "China" &lt; "denmark" &lt; "Denmark"
  111. * C=U "China" &lt; "china" &lt; "Denmark" &lt; "denmark"
  112. * </p>
  113. * </p>
  114. * @link https://php.net/manual/en/intl.collator-constants.php
  115. */
  116. const CASE_FIRST = 2;
  117. /**
  118. * <p>
  119. * The Case_Level attribute is used when ignoring accents but not case. In
  120. * such a situation, set Strength to be Primary,
  121. * and Case_Level to be On.
  122. * In most locales, this setting is Off by default. There is a small
  123. * string comparison performance and sort key impact if this attribute is
  124. * set to be On.
  125. * </p>
  126. * <p>
  127. * Possible values are:
  128. * <b>Collator::OFF</b>(default)
  129. * <b>Collator::ON</b>
  130. * <b>Collator::DEFAULT_VALUE</b>
  131. * </p>
  132. * <p>
  133. * CASE_LEVEL rules
  134. * <p>
  135. * S=1, E=X role = Role = rôle
  136. * S=1, E=O role = rôle &lt; Role
  137. * </p>
  138. * </p>
  139. * @link https://php.net/manual/en/intl.collator-constants.php
  140. */
  141. const CASE_LEVEL = 3;
  142. /**
  143. * <p>
  144. * The Normalization setting determines whether text is thoroughly
  145. * normalized or not in comparison. Even if the setting is off (which is
  146. * the default for many locales), text as represented in common usage will
  147. * compare correctly (for details, see UTN #5). Only if the accent marks
  148. * are in noncanonical order will there be a problem. If the setting is
  149. * On,
  150. * then the best results are guaranteed for all possible text input.
  151. * There is a medium string comparison performance cost if this attribute
  152. * is On,
  153. * depending on the frequency of sequences that require normalization.
  154. * There is no significant effect on sort key length. If the input text is
  155. * known to be in NFD or NFKD normalization forms, there is no need to
  156. * enable this Normalization option.
  157. * </p>
  158. * <p>
  159. * Possible values are:
  160. * <b>Collator::OFF</b>(default)
  161. * <b>Collator::ON</b>
  162. * <b>Collator::DEFAULT_VALUE</b>
  163. * </p>
  164. * @link https://php.net/manual/en/intl.collator-constants.php
  165. */
  166. const NORMALIZATION_MODE = 4;
  167. /**
  168. * <p>
  169. * The ICU Collation Service supports many levels of comparison (named
  170. * "Levels", but also known as "Strengths"). Having these categories
  171. * enables ICU to sort strings precisely according to local conventions.
  172. * However, by allowing the levels to be selectively employed, searching
  173. * for a string in text can be performed with various matching conditions.
  174. * For more detailed information, see
  175. * <b>collator_set_strength</b> chapter.
  176. * </p>
  177. * <p>
  178. * Possible values are:
  179. * <b>Collator::PRIMARY</b>
  180. * <b>Collator::SECONDARY</b>
  181. * <b>Collator::TERTIARY</b>(<default)
  182. * <b>Collator::QUATERNARY</b>
  183. * <b>Collator::IDENTICAL</b>
  184. * <b>Collator::DEFAULT_VALUE</b>
  185. * </p>
  186. * @link https://php.net/manual/en/intl.collator-constants.php
  187. */
  188. const STRENGTH = 5;
  189. /**
  190. * <p>
  191. * Compatibility with JIS x 4061 requires the introduction of an additional
  192. * level to distinguish Hiragana and Katakana characters. If compatibility
  193. * with that standard is required, then this attribute should be set
  194. * On,
  195. * and the strength set to Quaternary. This will affect sort key length
  196. * and string comparison string comparison performance.
  197. * </p>
  198. * <p>
  199. * Possible values are:
  200. * <b>Collator::OFF</b>(default)
  201. * <b>Collator::ON</b>
  202. * <b>Collator::DEFAULT_VALUE</b>
  203. * </p>
  204. * @link https://php.net/manual/en/intl.collator-constants.php
  205. */
  206. const HIRAGANA_QUATERNARY_MODE = 6;
  207. /**
  208. * <p>
  209. * When turned on, this attribute generates a collation key for the numeric
  210. * value of substrings of digits. This is a way to get '100' to sort AFTER
  211. * '2'.
  212. * </p>
  213. * <p>
  214. * Possible values are:
  215. * <b>Collator::OFF</b>(default)
  216. * <b>Collator::ON</b>
  217. * <b>Collator::DEFAULT_VALUE</b>
  218. * </p>
  219. * @link https://php.net/manual/en/intl.collator-constants.php
  220. */
  221. const NUMERIC_COLLATION = 7;
  222. const SORT_REGULAR = 0;
  223. const SORT_STRING = 1;
  224. const SORT_NUMERIC = 2;
  225. /**
  226. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  227. * Create a collator
  228. * @link https://php.net/manual/en/collator.construct.php
  229. * @param string $locale
  230. */
  231. public function __construct($locale) { }
  232. /**
  233. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  234. * Create a collator
  235. * @link https://php.net/manual/en/collator.create.php
  236. * @param string $locale <p>
  237. * The locale containing the required collation rules. Special values for
  238. * locales can be passed in - if null is passed for the locale, the
  239. * default locale collation rules will be used. If empty string ("") or
  240. * "root" are passed, UCA rules will be used.
  241. * </p>
  242. * @return Collator Return new instance of <b>Collator</b> object, or <b>NULL</b>
  243. * on error.
  244. */
  245. public static function create($locale) { }
  246. /**
  247. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  248. * Compare two Unicode strings
  249. * @link https://php.net/manual/en/collator.compare.php
  250. * @param string $str1 <p>
  251. * The first string to compare.
  252. * </p>
  253. * @param string $str2 <p>
  254. * The second string to compare.
  255. * </p>
  256. * @return int Return comparison result:</p>
  257. * <p>
  258. * <p>
  259. * 1 if <i>str1</i> is greater than
  260. * <i>str2</i> ;
  261. * </p>
  262. * <p>
  263. * 0 if <i>str1</i> is equal to
  264. * <i>str2</i>;
  265. * </p>
  266. * <p>
  267. * -1 if <i>str1</i> is less than
  268. * <i>str2</i> .
  269. * </p>
  270. * On error
  271. * boolean
  272. * <b>FALSE</b>
  273. * is returned.
  274. */
  275. public function compare($str1, $str2) { }
  276. /**
  277. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  278. * Sort array using specified collator
  279. * @link https://php.net/manual/en/collator.sort.php
  280. * @param array $arr <p>
  281. * Array of strings to sort.
  282. * </p>
  283. * @param int $sort_flag [optional] <p>
  284. * Optional sorting type, one of the following:
  285. * </p>
  286. * <p>
  287. * <p>
  288. * <b>Collator::SORT_REGULAR</b>
  289. * - compare items normally (don't change types)
  290. * </p>
  291. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  292. */
  293. public function sort(array &$arr, $sort_flag = null) { }
  294. /**
  295. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  296. * Sort array using specified collator and sort keys
  297. * @link https://php.net/manual/en/collator.sortwithsortkeys.php
  298. * @param array $arr <p>Array of strings to sort</p>
  299. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  300. */
  301. public function sortWithSortKeys(array &$arr) { }
  302. /**
  303. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  304. * Sort array maintaining index association
  305. * @link https://php.net/manual/en/collator.asort.php
  306. * @param array $arr <p>Array of strings to sort.</p>
  307. * @param int $sort_flag [optional] <p>
  308. * Optional sorting type, one of the following:
  309. * <p>
  310. * <b>Collator::SORT_REGULAR</b>
  311. * - compare items normally (don't change types)
  312. * </p>
  313. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  314. */
  315. public function asort(array &$arr, $sort_flag = null) { }
  316. /**
  317. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  318. * Get collation attribute value
  319. * @link https://php.net/manual/en/collator.getattribute.php
  320. * @param int $attr <p>
  321. * Attribute to get value for.
  322. * </p>
  323. * @return int|false Attribute value, or boolean <b>FALSE</b> on error.
  324. */
  325. public function getAttribute($attr) { }
  326. /**
  327. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  328. * Set collation attribute
  329. * @link https://php.net/manual/en/collator.setattribute.php
  330. * @param int $attr <p>Attribute.</p>
  331. * @param int $val <p>
  332. * Attribute value.
  333. * </p>
  334. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  335. */
  336. public function setAttribute($attr, $val) { }
  337. /**
  338. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  339. * Get current collation strength
  340. * @link https://php.net/manual/en/collator.getstrength.php
  341. * @return int|false current collation strength, or boolean <b>FALSE</b> on error.
  342. */
  343. public function getStrength() { }
  344. /**
  345. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  346. * Set collation strength
  347. * @link https://php.net/manual/en/collator.setstrength.php
  348. * @param int $strength <p>Strength to set.</p>
  349. * <p>
  350. * Possible values are:
  351. * <p>
  352. * <b>Collator::PRIMARY</b>
  353. * </p>
  354. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  355. */
  356. public function setStrength($strength) { }
  357. /**
  358. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  359. * Get the locale name of the collator
  360. * @link https://php.net/manual/en/collator.getlocale.php
  361. * @param int $type [optional] <p>
  362. * You can choose between valid and actual locale (
  363. * <b>Locale::VALID_LOCALE</b> and
  364. * <b>Locale::ACTUAL_LOCALE</b>,
  365. * respectively). The default is the actual locale.
  366. * </p>
  367. * @return string Real locale name from which the collation data comes. If the collator was
  368. * instantiated from rules or an error occurred, returns
  369. * boolean <b>FALSE</b>.
  370. */
  371. public function getLocale($type = null) { }
  372. /**
  373. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  374. * Get collator's last error code
  375. * @link https://php.net/manual/en/collator.geterrorcode.php
  376. * @return int Error code returned by the last Collator API function call.
  377. */
  378. public function getErrorCode() { }
  379. /**
  380. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  381. * Get text for collator's last error code
  382. * @link https://php.net/manual/en/collator.geterrormessage.php
  383. * @return string Description of an error occurred in the last Collator API function call.
  384. */
  385. public function getErrorMessage() { }
  386. /**
  387. * (No version information available, might only be in SVN)<br/>
  388. * Get sorting key for a string
  389. * @link https://php.net/manual/en/collator.getsortkey.php
  390. * @param string $str <p>
  391. * The string to produce the key from.
  392. * </p>
  393. * @return string the collation key for the string. Collation keys can be compared directly instead of strings.
  394. */
  395. public function getSortKey($str) { }
  396. }
  397. class NumberFormatter {
  398. /**
  399. * Decimal format defined by pattern
  400. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  401. */
  402. const PATTERN_DECIMAL = 0;
  403. /**
  404. * Decimal format
  405. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  406. */
  407. const DECIMAL = 1;
  408. /**
  409. * Currency format
  410. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  411. */
  412. const CURRENCY = 2;
  413. /**
  414. * Percent format
  415. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  416. */
  417. const PERCENT = 3;
  418. /**
  419. * Scientific format
  420. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  421. */
  422. const SCIENTIFIC = 4;
  423. /**
  424. * Spellout rule-based format
  425. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  426. */
  427. const SPELLOUT = 5;
  428. /**
  429. * Ordinal rule-based format
  430. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  431. */
  432. const ORDINAL = 6;
  433. /**
  434. * Duration rule-based format
  435. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  436. */
  437. const DURATION = 7;
  438. /**
  439. * Rule-based format defined by pattern
  440. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  441. */
  442. const PATTERN_RULEBASED = 9;
  443. /**
  444. * Alias for PATTERN_DECIMAL
  445. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  446. */
  447. const IGNORE = 0;
  448. /**
  449. * Default format for the locale
  450. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  451. */
  452. const DEFAULT_STYLE = 1;
  453. /**
  454. * Rounding mode to round towards positive infinity.
  455. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  456. */
  457. const ROUND_CEILING = 0;
  458. /**
  459. * Rounding mode to round towards negative infinity.
  460. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  461. */
  462. const ROUND_FLOOR = 1;
  463. /**
  464. * Rounding mode to round towards zero.
  465. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  466. */
  467. const ROUND_DOWN = 2;
  468. /**
  469. * Rounding mode to round away from zero.
  470. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  471. */
  472. const ROUND_UP = 3;
  473. /**
  474. * Rounding mode to round towards the "nearest neighbor" unless both
  475. * neighbors are equidistant, in which case, round towards the even
  476. * neighbor.
  477. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  478. */
  479. const ROUND_HALFEVEN = 4;
  480. /**
  481. * Rounding mode to round towards "nearest neighbor" unless both neighbors
  482. * are equidistant, in which case round down.
  483. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  484. */
  485. const ROUND_HALFDOWN = 5;
  486. /**
  487. * Rounding mode to round towards "nearest neighbor" unless both neighbors
  488. * are equidistant, in which case round up.
  489. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  490. */
  491. const ROUND_HALFUP = 6;
  492. /**
  493. * Pad characters inserted before the prefix.
  494. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  495. */
  496. const PAD_BEFORE_PREFIX = 0;
  497. /**
  498. * Pad characters inserted after the prefix.
  499. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  500. */
  501. const PAD_AFTER_PREFIX = 1;
  502. /**
  503. * Pad characters inserted before the suffix.
  504. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  505. */
  506. const PAD_BEFORE_SUFFIX = 2;
  507. /**
  508. * Pad characters inserted after the suffix.
  509. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  510. */
  511. const PAD_AFTER_SUFFIX = 3;
  512. /**
  513. * Parse integers only.
  514. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  515. */
  516. const PARSE_INT_ONLY = 0;
  517. /**
  518. * Use grouping separator.
  519. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  520. */
  521. const GROUPING_USED = 1;
  522. /**
  523. * Always show decimal point.
  524. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  525. */
  526. const DECIMAL_ALWAYS_SHOWN = 2;
  527. /**
  528. * Maximum integer digits.
  529. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  530. */
  531. const MAX_INTEGER_DIGITS = 3;
  532. /**
  533. * Minimum integer digits.
  534. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  535. */
  536. const MIN_INTEGER_DIGITS = 4;
  537. /**
  538. * Integer digits.
  539. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  540. */
  541. const INTEGER_DIGITS = 5;
  542. /**
  543. * Maximum fraction digits.
  544. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  545. */
  546. const MAX_FRACTION_DIGITS = 6;
  547. /**
  548. * Minimum fraction digits.
  549. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  550. */
  551. const MIN_FRACTION_DIGITS = 7;
  552. /**
  553. * Fraction digits.
  554. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  555. */
  556. const FRACTION_DIGITS = 8;
  557. /**
  558. * Multiplier.
  559. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  560. */
  561. const MULTIPLIER = 9;
  562. /**
  563. * Grouping size.
  564. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  565. */
  566. const GROUPING_SIZE = 10;
  567. /**
  568. * Rounding Mode.
  569. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  570. */
  571. const ROUNDING_MODE = 11;
  572. /**
  573. * Rounding increment.
  574. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  575. */
  576. const ROUNDING_INCREMENT = 12;
  577. /**
  578. * The width to which the output of format() is padded.
  579. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  580. */
  581. const FORMAT_WIDTH = 13;
  582. /**
  583. * The position at which padding will take place. See pad position
  584. * constants for possible argument values.
  585. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  586. */
  587. const PADDING_POSITION = 14;
  588. /**
  589. * Secondary grouping size.
  590. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  591. */
  592. const SECONDARY_GROUPING_SIZE = 15;
  593. /**
  594. * Use significant digits.
  595. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  596. */
  597. const SIGNIFICANT_DIGITS_USED = 16;
  598. /**
  599. * Minimum significant digits.
  600. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  601. */
  602. const MIN_SIGNIFICANT_DIGITS = 17;
  603. /**
  604. * Maximum significant digits.
  605. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  606. */
  607. const MAX_SIGNIFICANT_DIGITS = 18;
  608. /**
  609. * Lenient parse mode used by rule-based formats.
  610. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  611. */
  612. const LENIENT_PARSE = 19;
  613. /**
  614. * Positive prefix.
  615. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  616. */
  617. const POSITIVE_PREFIX = 0;
  618. /**
  619. * Positive suffix.
  620. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  621. */
  622. const POSITIVE_SUFFIX = 1;
  623. /**
  624. * Negative prefix.
  625. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  626. */
  627. const NEGATIVE_PREFIX = 2;
  628. /**
  629. * Negative suffix.
  630. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  631. */
  632. const NEGATIVE_SUFFIX = 3;
  633. /**
  634. * The character used to pad to the format width.
  635. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  636. */
  637. const PADDING_CHARACTER = 4;
  638. /**
  639. * The ISO currency code.
  640. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  641. */
  642. const CURRENCY_CODE = 5;
  643. /**
  644. * The default rule set. This is only available with rule-based
  645. * formatters.
  646. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  647. */
  648. const DEFAULT_RULESET = 6;
  649. /**
  650. * The public rule sets. This is only available with rule-based
  651. * formatters. This is a read-only attribute. The public rulesets are
  652. * returned as a single string, with each ruleset name delimited by ';'
  653. * (semicolon).
  654. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  655. */
  656. const PUBLIC_RULESETS = 7;
  657. /**
  658. * The decimal separator.
  659. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  660. */
  661. const DECIMAL_SEPARATOR_SYMBOL = 0;
  662. /**
  663. * The grouping separator.
  664. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  665. */
  666. const GROUPING_SEPARATOR_SYMBOL = 1;
  667. /**
  668. * The pattern separator.
  669. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  670. */
  671. const PATTERN_SEPARATOR_SYMBOL = 2;
  672. /**
  673. * The percent sign.
  674. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  675. */
  676. const PERCENT_SYMBOL = 3;
  677. /**
  678. * Zero.
  679. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  680. */
  681. const ZERO_DIGIT_SYMBOL = 4;
  682. /**
  683. * Character representing a digit in the pattern.
  684. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  685. */
  686. const DIGIT_SYMBOL = 5;
  687. /**
  688. * The minus sign.
  689. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  690. */
  691. const MINUS_SIGN_SYMBOL = 6;
  692. /**
  693. * The plus sign.
  694. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  695. */
  696. const PLUS_SIGN_SYMBOL = 7;
  697. /**
  698. * The currency symbol.
  699. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  700. */
  701. const CURRENCY_SYMBOL = 8;
  702. /**
  703. * The international currency symbol.
  704. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  705. */
  706. const INTL_CURRENCY_SYMBOL = 9;
  707. /**
  708. * The monetary separator.
  709. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  710. */
  711. const MONETARY_SEPARATOR_SYMBOL = 10;
  712. /**
  713. * The exponential symbol.
  714. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  715. */
  716. const EXPONENTIAL_SYMBOL = 11;
  717. /**
  718. * Per mill symbol.
  719. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  720. */
  721. const PERMILL_SYMBOL = 12;
  722. /**
  723. * Escape padding character.
  724. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  725. */
  726. const PAD_ESCAPE_SYMBOL = 13;
  727. /**
  728. * Infinity symbol.
  729. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  730. */
  731. const INFINITY_SYMBOL = 14;
  732. /**
  733. * Not-a-number symbol.
  734. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  735. */
  736. const NAN_SYMBOL = 15;
  737. /**
  738. * Significant digit symbol.
  739. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  740. */
  741. const SIGNIFICANT_DIGIT_SYMBOL = 16;
  742. /**
  743. * The monetary grouping separator.
  744. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  745. */
  746. const MONETARY_GROUPING_SEPARATOR_SYMBOL = 17;
  747. /**
  748. * Derive the type from variable type
  749. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  750. */
  751. const TYPE_DEFAULT = 0;
  752. /**
  753. * Format/parse as 32-bit integer
  754. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  755. */
  756. const TYPE_INT32 = 1;
  757. /**
  758. * Format/parse as 64-bit integer
  759. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  760. */
  761. const TYPE_INT64 = 2;
  762. /**
  763. * Format/parse as floating point value
  764. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  765. */
  766. const TYPE_DOUBLE = 3;
  767. /**
  768. * Format/parse as currency value
  769. * @link https://php.net/manual/en/intl.numberformatter-constants.php
  770. */
  771. const TYPE_CURRENCY = 4;
  772. /**
  773. * @param $locale
  774. * @param $style
  775. * @param $pattern [optional]
  776. */
  777. public function __construct($locale, $style, $pattern = null) { }
  778. /**
  779. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  780. * Create a number formatter
  781. * @link https://php.net/manual/en/numberformatter.create.php
  782. * @param string $locale <p>
  783. * Locale in which the number would be formatted (locale name, e.g. en_CA).
  784. * </p>
  785. * @param int $style <p>
  786. * Style of the formatting, one of the
  787. * format style constants. If
  788. * <b>NumberFormatter::PATTERN_DECIMAL</b>
  789. * or <b>NumberFormatter::PATTERN_RULEBASED</b>
  790. * is passed then the number format is opened using the given pattern,
  791. * which must conform to the syntax described in
  792. * ICU DecimalFormat
  793. * documentation or
  794. * ICU RuleBasedNumberFormat
  795. * documentation, respectively.
  796. * </p>
  797. * @param string $pattern [optional] <p>
  798. * Pattern string if the chosen style requires a pattern.
  799. * </p>
  800. * @return NumberFormatter|false <b>NumberFormatter</b> object or <b>FALSE</b> on error.
  801. */
  802. public static function create($locale, $style, $pattern = null) { }
  803. /**
  804. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  805. * Format a number
  806. * @link https://php.net/manual/en/numberformatter.format.php
  807. * @param int|float $value <p>
  808. * The value to format. Can be integer or float,
  809. * other values will be converted to a numeric value.
  810. * </p>
  811. * @param int $type [optional] <p>
  812. * The
  813. * formatting type to use.
  814. * </p>
  815. * @return string|false the string containing formatted value, or <b>FALSE</b> on error.
  816. */
  817. public function format($value, $type = null) { }
  818. /**
  819. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  820. * Parse a number
  821. * @link https://php.net/manual/en/numberformatter.parse.php
  822. * @param string $value
  823. * @param int $type [optional] <p>
  824. * The
  825. * formatting type to use. By default,
  826. * <b>NumberFormatter::TYPE_DOUBLE</b> is used.
  827. * </p>
  828. * @param int $position [optional] <p>
  829. * Offset in the string at which to begin parsing. On return, this value
  830. * will hold the offset at which parsing ended.
  831. * </p>
  832. * @return mixed The value of the parsed number or <b>FALSE</b> on error.
  833. */
  834. public function parse($value, $type = null, &$position = null) { }
  835. /**
  836. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  837. * Format a currency value
  838. * @link https://php.net/manual/en/numberformatter.formatcurrency.php
  839. * @param float $value <p>
  840. * The numeric currency value.
  841. * </p>
  842. * @param string $currency <p>
  843. * The 3-letter ISO 4217 currency code indicating the currency to use.
  844. * </p>
  845. * @return string String representing the formatted currency value.
  846. */
  847. public function formatCurrency($value, $currency) { }
  848. /**
  849. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  850. * Parse a currency number
  851. * @link https://php.net/manual/en/numberformatter.parsecurrency.php
  852. * @param string $value
  853. * @param string $currency <p>
  854. * Parameter to receive the currency name (3-letter ISO 4217 currency
  855. * code).
  856. * </p>
  857. * @param int $position [optional] <p>
  858. * Offset in the string at which to begin parsing. On return, this value
  859. * will hold the offset at which parsing ended.
  860. * </p>
  861. * @return float|false The parsed numeric value or <b>FALSE</b> on error.
  862. */
  863. public function parseCurrency($value, &$currency, &$position = null) { }
  864. /**
  865. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  866. * Set an attribute
  867. * @link https://php.net/manual/en/numberformatter.setattribute.php
  868. * @param int $attr <p>
  869. * Attribute specifier - one of the
  870. * numeric attribute constants.
  871. * </p>
  872. * @param int $value <p>
  873. * The attribute value.
  874. * </p>
  875. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  876. */
  877. public function setAttribute($attr, $value) { }
  878. /**
  879. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  880. * Get an attribute
  881. * @link https://php.net/manual/en/numberformatter.getattribute.php
  882. * @param int $attr <p>
  883. * Attribute specifier - one of the
  884. * numeric attribute constants.
  885. * </p>
  886. * @return int|false Return attribute value on success, or <b>FALSE</b> on error.
  887. */
  888. public function getAttribute($attr) { }
  889. /**
  890. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  891. * Set a text attribute
  892. * @link https://php.net/manual/en/numberformatter.settextattribute.php
  893. * @param int $attr <p>
  894. * Attribute specifier - one of the
  895. * text attribute
  896. * constants.
  897. * </p>
  898. * @param string $value <p>
  899. * Text for the attribute value.
  900. * </p>
  901. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  902. */
  903. public function setTextAttribute($attr, $value) { }
  904. /**
  905. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  906. * Get a text attribute
  907. * @link https://php.net/manual/en/numberformatter.gettextattribute.php
  908. * @param int $attr <p>
  909. * Attribute specifier - one of the
  910. * text attribute constants.
  911. * </p>
  912. * @return string|false Return attribute value on success, or <b>FALSE</b> on error.
  913. */
  914. public function getTextAttribute($attr) { }
  915. /**
  916. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  917. * Set a symbol value
  918. * @link https://php.net/manual/en/numberformatter.setsymbol.php
  919. * @param int $attr <p>
  920. * Symbol specifier, one of the
  921. * format symbol constants.
  922. * </p>
  923. * @param string $value <p>
  924. * Text for the symbol.
  925. * </p>
  926. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  927. */
  928. public function setSymbol($attr, $value) { }
  929. /**
  930. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  931. * Get a symbol value
  932. * @link https://php.net/manual/en/numberformatter.getsymbol.php
  933. * @param int $attr <p>
  934. * Symbol specifier, one of the
  935. * format symbol constants.
  936. * </p>
  937. * @return string|false The symbol string or <b>FALSE</b> on error.
  938. */
  939. public function getSymbol($attr) { }
  940. /**
  941. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  942. * Set formatter pattern
  943. * @link https://php.net/manual/en/numberformatter.setpattern.php
  944. * @param string $pattern <p>
  945. * Pattern in syntax described in
  946. * ICU DecimalFormat
  947. * documentation.
  948. * </p>
  949. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  950. */
  951. public function setPattern($pattern) { }
  952. /**
  953. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  954. * Get formatter pattern
  955. * @link https://php.net/manual/en/numberformatter.getpattern.php
  956. * @return string|false Pattern string that is used by the formatter, or <b>FALSE</b> if an error happens.
  957. */
  958. public function getPattern() { }
  959. /**
  960. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  961. * Get formatter locale
  962. * @link https://php.net/manual/en/numberformatter.getlocale.php
  963. * @param int $type [optional] <p>
  964. * You can choose between valid and actual locale (
  965. * <b>Locale::VALID_LOCALE</b>,
  966. * <b>Locale::ACTUAL_LOCALE</b>,
  967. * respectively). The default is the actual locale.
  968. * </p>
  969. * @return string The locale name used to create the formatter.
  970. */
  971. public function getLocale($type = null) { }
  972. /**
  973. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  974. * Get formatter's last error code.
  975. * @link https://php.net/manual/en/numberformatter.geterrorcode.php
  976. * @return int error code from last formatter call.
  977. */
  978. public function getErrorCode() { }
  979. /**
  980. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  981. * Get formatter's last error message.
  982. * @link https://php.net/manual/en/numberformatter.geterrormessage.php
  983. * @return string error message from last formatter call.
  984. */
  985. public function getErrorMessage() { }
  986. }
  987. class Normalizer {
  988. /**
  989. * Default normalization options
  990. * @link https://www.php.net/manual/en/class.normalizer.php
  991. */
  992. const OPTION_DEFAULT = "";
  993. /**
  994. * No decomposition/composition
  995. * @link https://www.php.net/manual/en/class.normalizer.php
  996. * @removed 8.0
  997. */
  998. const NONE = "1";
  999. /**
  1000. * Normalization Form D (NFD) - Canonical Decomposition
  1001. * @link https://www.php.net/manual/en/class.normalizer.php
  1002. */
  1003. const FORM_D = "2";
  1004. const NFD = 2;
  1005. /**
  1006. * Normalization Form KD (NFKD) - Compatibility Decomposition
  1007. * @link https://www.php.net/manual/en/class.normalizer.php
  1008. */
  1009. const FORM_KD = "3";
  1010. const NFKD = 3;
  1011. /**
  1012. * Normalization Form C (NFC) - Canonical Decomposition followed by
  1013. * Canonical Composition
  1014. * @link https://www.php.net/manual/en/class.normalizer.php
  1015. */
  1016. const FORM_C = "4";
  1017. const NFC = 4;
  1018. /**
  1019. * Normalization Form KC (NFKC) - Compatibility Decomposition, followed by
  1020. * Canonical Composition
  1021. * @link https://www.php.net/manual/en/class.normalizer.php
  1022. */
  1023. const FORM_KC = "5";
  1024. const NFKC = 5;
  1025. /**
  1026. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1027. * Normalizes the input provided and returns the normalized string
  1028. * @link https://php.net/manual/en/normalizer.normalize.php
  1029. * @param string $input <p>The input string to normalize</p>
  1030. * @param string $form [optional] <p>One of the normalization forms.</p>
  1031. * @return string The normalized string or <b>NULL</b> if an error occurred.
  1032. */
  1033. public static function normalize($input, $form = Normalizer::FORM_C) { }
  1034. /**
  1035. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1036. * Checks if the provided string is already in the specified normalization form.
  1037. * @link https://php.net/manual/en/normalizer.isnormalized.php
  1038. * @param string $input <p>The input string to normalize</p>
  1039. * @param string $form [optional] <p>
  1040. * One of the normalization forms.
  1041. * </p>
  1042. * @return bool <b>TRUE</b> if normalized, <b>FALSE</b> otherwise or if there an error
  1043. */
  1044. public static function isNormalized($input, $form = Normalizer::FORM_C) { }
  1045. }
  1046. class Locale {
  1047. /**
  1048. * This is locale the data actually comes from.
  1049. * @link https://php.net/manual/en/intl.locale-constants.php
  1050. */
  1051. const ACTUAL_LOCALE = 0;
  1052. /**
  1053. * This is the most specific locale supported by ICU.
  1054. * @link https://php.net/manual/en/intl.locale-constants.php
  1055. */
  1056. const VALID_LOCALE = 1;
  1057. /**
  1058. * Used as locale parameter with the methods of the various locale affected classes,
  1059. * such as NumberFormatter. This constant would make the methods to use default
  1060. * locale.
  1061. * @link https://php.net/manual/en/intl.locale-constants.php
  1062. */
  1063. const DEFAULT_LOCALE = null;
  1064. /**
  1065. * Language subtag
  1066. * @link https://php.net/manual/en/intl.locale-constants.php
  1067. */
  1068. const LANG_TAG = "language";
  1069. /**
  1070. * Extended language subtag
  1071. * @link https://php.net/manual/en/intl.locale-constants.php
  1072. */
  1073. const EXTLANG_TAG = "extlang";
  1074. /**
  1075. * Script subtag
  1076. * @link https://php.net/manual/en/intl.locale-constants.php
  1077. */
  1078. const SCRIPT_TAG = "script";
  1079. /**
  1080. * Region subtag
  1081. * @link https://php.net/manual/en/intl.locale-constants.php
  1082. */
  1083. const REGION_TAG = "region";
  1084. /**
  1085. * Variant subtag
  1086. * @link https://php.net/manual/en/intl.locale-constants.php
  1087. */
  1088. const VARIANT_TAG = "variant";
  1089. /**
  1090. * Grandfathered Language subtag
  1091. * @link https://php.net/manual/en/intl.locale-constants.php
  1092. */
  1093. const GRANDFATHERED_LANG_TAG = "grandfathered";
  1094. /**
  1095. * Private subtag
  1096. * @link https://php.net/manual/en/intl.locale-constants.php
  1097. */
  1098. const PRIVATE_TAG = "private";
  1099. /**
  1100. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1101. * Gets the default locale value from the INTL global 'default_locale'
  1102. * @link https://php.net/manual/en/locale.getdefault.php
  1103. * @return string The current runtime locale
  1104. */
  1105. public static function getDefault() { }
  1106. /**
  1107. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1108. * sets the default runtime locale
  1109. * @link https://php.net/manual/en/locale.setdefault.php
  1110. * @param string $locale <p>
  1111. * Is a BCP 47 compliant language tag containing the
  1112. * </p>
  1113. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1114. */
  1115. public static function setDefault($locale) { }
  1116. /**
  1117. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1118. * Gets the primary language for the input locale
  1119. * @link https://php.net/manual/en/locale.getprimarylanguage.php
  1120. * @param string $locale <p>
  1121. * The locale to extract the primary language code from
  1122. * </p>
  1123. * @return string The language code associated with the language or <b>NULL</b> in case of error.
  1124. */
  1125. public static function getPrimaryLanguage($locale) { }
  1126. /**
  1127. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1128. * Gets the script for the input locale
  1129. * @link https://php.net/manual/en/locale.getscript.php
  1130. * @param string $locale <p>
  1131. * The locale to extract the script code from
  1132. * </p>
  1133. * @return string The script subtag for the locale or <b>NULL</b> if not present
  1134. */
  1135. public static function getScript($locale) { }
  1136. /**
  1137. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1138. * Gets the region for the input locale
  1139. * @link https://php.net/manual/en/locale.getregion.php
  1140. * @param string $locale <p>
  1141. * The locale to extract the region code from
  1142. * </p>
  1143. * @return string The region subtag for the locale or <b>NULL</b> if not present
  1144. */
  1145. public static function getRegion($locale) { }
  1146. /**
  1147. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1148. * Gets the keywords for the input locale
  1149. * @link https://php.net/manual/en/locale.getkeywords.php
  1150. * @param string $locale <p>
  1151. * The locale to extract the keywords from
  1152. * </p>
  1153. * @return array Associative array containing the keyword-value pairs for this locale
  1154. */
  1155. public static function getKeywords($locale) { }
  1156. /**
  1157. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1158. * Returns an appropriately localized display name for script of the input locale
  1159. * @link https://php.net/manual/en/locale.getdisplayscript.php
  1160. * @param string $locale <p>
  1161. * The locale to return a display script for
  1162. * </p>
  1163. * @param string $in_locale [optional] <p>
  1164. * Optional format locale to use to display the script name
  1165. * </p>
  1166. * @return string Display name of the script for the $locale in the format appropriate for
  1167. * $in_locale.
  1168. */
  1169. public static function getDisplayScript($locale, $in_locale = null) { }
  1170. /**
  1171. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1172. * Returns an appropriately localized display name for region of the input locale
  1173. * @link https://php.net/manual/en/locale.getdisplayregion.php
  1174. * @param string $locale <p>
  1175. * The locale to return a display region for.
  1176. * </p>
  1177. * @param string $in_locale [optional] <p>
  1178. * Optional format locale to use to display the region name
  1179. * </p>
  1180. * @return string display name of the region for the $locale in the format appropriate for
  1181. * $in_locale.
  1182. */
  1183. public static function getDisplayRegion($locale, $in_locale = null) { }
  1184. /**
  1185. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1186. * Returns an appropriately localized display name for the input locale
  1187. * @link https://php.net/manual/en/locale.getdisplayname.php
  1188. * @param string $locale <p>
  1189. * The locale to return a display name for.
  1190. * </p>
  1191. * @param string $in_locale [optional] <p>optional format locale</p>
  1192. * @return string Display name of the locale in the format appropriate for $in_locale.
  1193. */
  1194. public static function getDisplayName($locale, $in_locale = null) { }
  1195. /**
  1196. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1197. * Returns an appropriately localized display name for language of the inputlocale
  1198. * @link https://php.net/manual/en/locale.getdisplaylanguage.php
  1199. * @param string $locale <p>
  1200. * The locale to return a display language for
  1201. * </p>
  1202. * @param string $in_locale [optional] <p>
  1203. * Optional format locale to use to display the language name
  1204. * </p>
  1205. * @return string display name of the language for the $locale in the format appropriate for
  1206. * $in_locale.
  1207. */
  1208. public static function getDisplayLanguage($locale, $in_locale = null) { }
  1209. /**
  1210. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1211. * Returns an appropriately localized display name for variants of the input locale
  1212. * @link https://php.net/manual/en/locale.getdisplayvariant.php
  1213. * @param string $locale <p>
  1214. * The locale to return a display variant for
  1215. * </p>
  1216. * @param string $in_locale [optional] <p>
  1217. * Optional format locale to use to display the variant name
  1218. * </p>
  1219. * @return string Display name of the variant for the $locale in the format appropriate for
  1220. * $in_locale.
  1221. */
  1222. public static function getDisplayVariant($locale, $in_locale = null) { }
  1223. /**
  1224. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1225. * Returns a correctly ordered and delimited locale ID
  1226. * @link https://php.net/manual/en/locale.composelocale.php
  1227. * @param array $subtags <p>
  1228. * an array containing a list of key-value pairs, where the keys identify
  1229. * the particular locale ID subtags, and the values are the associated
  1230. * subtag values.
  1231. * <p>
  1232. * The 'variant' and 'private' subtags can take maximum 15 values
  1233. * whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed
  1234. * with the suffix ranging from 0-14. Hence the keys for the input array
  1235. * can be variant0, variant1, ...,variant14. In the returned locale id,
  1236. * the subtag is ordered by suffix resulting in variant0 followed by
  1237. * variant1 followed by variant2 and so on.
  1238. * </p>
  1239. * <p>
  1240. * The 'variant', 'private' and 'extlang' multiple values can be specified both
  1241. * as array under specific key (e.g. 'variant') and as multiple numbered keys
  1242. * (e.g. 'variant0', 'variant1', etc.).
  1243. * </p>
  1244. * </p>
  1245. * @return string The corresponding locale identifier.
  1246. */
  1247. public static function composeLocale(array $subtags) { }
  1248. /**
  1249. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1250. * Returns a key-value array of locale ID subtag elements.
  1251. * @link https://php.net/manual/en/locale.parselocale.php
  1252. * @param string $locale <p>
  1253. * The locale to extract the subtag array from. Note: The 'variant' and
  1254. * 'private' subtags can take maximum 15 values whereas 'extlang' can take
  1255. * maximum 3 values.
  1256. * </p>
  1257. * @return array an array containing a list of key-value pairs, where the keys
  1258. * identify the particular locale ID subtags, and the values are the
  1259. * associated subtag values. The array will be ordered as the locale id
  1260. * subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the
  1261. * returned array will have variant0=&gt;varX , variant1=&gt;varY ,
  1262. * variant2=&gt;varZ
  1263. */
  1264. public static function parseLocale($locale) { }
  1265. /**
  1266. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1267. * Gets the variants for the input locale
  1268. * @link https://php.net/manual/en/locale.getallvariants.php
  1269. * @param string $locale <p>
  1270. * The locale to extract the variants from
  1271. * </p>
  1272. * @return array The array containing the list of all variants subtag for the locale
  1273. * or <b>NULL</b> if not present
  1274. */
  1275. public static function getAllVariants($locale) { }
  1276. /**
  1277. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1278. * Checks if a language tag filter matches with locale
  1279. * @link https://php.net/manual/en/locale.filtermatches.php
  1280. * @param string $langtag <p>
  1281. * The language tag to check
  1282. * </p>
  1283. * @param string $locale <p>
  1284. * The language range to check against
  1285. * </p>
  1286. * @param bool $canonicalize [optional] <p>
  1287. * If true, the arguments will be converted to canonical form before
  1288. * matching.
  1289. * </p>
  1290. * @return bool <b>TRUE</b> if $locale matches $langtag <b>FALSE</b> otherwise.
  1291. */
  1292. public static function filterMatches($langtag, $locale, $canonicalize = false) { }
  1293. /**
  1294. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1295. * Searches the language tag list for the best match to the language
  1296. * @link https://php.net/manual/en/locale.lookup.php
  1297. * @param array $langtag <p>
  1298. * An array containing a list of language tags to compare to
  1299. * <i>locale</i>. Maximum 100 items allowed.
  1300. * </p>
  1301. * @param string $locale <p>
  1302. * The locale to use as the language range when matching.
  1303. * </p>
  1304. * @param bool $canonicalize [optional] <p>
  1305. * If true, the arguments will be converted to canonical form before
  1306. * matching.
  1307. * </p>
  1308. * @param string $default [optional] <p>
  1309. * The locale to use if no match is found.
  1310. * </p>
  1311. * @return string The closest matching language tag or default value.
  1312. */
  1313. public static function lookup(array $langtag, $locale, $canonicalize = false, $default = null) { }
  1314. /**
  1315. * @link https://php.net/manual/en/locale.canonicalize.php
  1316. * @param string $locale
  1317. * @return string
  1318. */
  1319. public static function canonicalize($locale) { }
  1320. /**
  1321. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1322. * Tries to find out best available locale based on HTTP "Accept-Language" header
  1323. * @link https://php.net/manual/en/locale.acceptfromhttp.php
  1324. * @param string $header <p>
  1325. * The string containing the "Accept-Language" header according to format in RFC 2616.
  1326. * </p>
  1327. * @return string The corresponding locale identifier.
  1328. */
  1329. public static function acceptFromHttp($header) { }
  1330. }
  1331. class MessageFormatter {
  1332. /**
  1333. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1334. * Constructs a new Message Formatter
  1335. * @link https://php.net/manual/en/messageformatter.create.php
  1336. * @param string $locale <p>
  1337. * The locale to use when formatting arguments
  1338. * </p>
  1339. * @param string $pattern <p>
  1340. * The pattern string to stick arguments into.
  1341. * The pattern uses an 'apostrophe-friendly' syntax; it is run through
  1342. * umsg_autoQuoteApostrophe
  1343. * before being interpreted.
  1344. * </p>
  1345. */
  1346. public function __construct($locale, $pattern) { }
  1347. /**
  1348. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1349. * Constructs a new Message Formatter
  1350. * @link https://php.net/manual/en/messageformatter.create.php
  1351. * @param string $locale <p>
  1352. * The locale to use when formatting arguments
  1353. * </p>
  1354. * @param string $pattern <p>
  1355. * The pattern string to stick arguments into.
  1356. * The pattern uses an 'apostrophe-friendly' syntax; it is run through
  1357. * umsg_autoQuoteApostrophe
  1358. * before being interpreted.
  1359. * </p>
  1360. * @return MessageFormatter The formatter object
  1361. */
  1362. public static function create($locale, $pattern) { }
  1363. /**
  1364. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1365. * Format the message
  1366. * @link https://php.net/manual/en/messageformatter.format.php
  1367. * @param array $args <p>
  1368. * Arguments to insert into the format string
  1369. * </p>
  1370. * @return string|false The formatted string, or <b>FALSE</b> if an error occurred
  1371. */
  1372. public function format(array $args) { }
  1373. /**
  1374. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1375. * Quick format message
  1376. * @link https://php.net/manual/en/messageformatter.formatmessage.php
  1377. * @param string $locale <p>
  1378. * The locale to use for formatting locale-dependent parts
  1379. * </p>
  1380. * @param string $pattern <p>
  1381. * The pattern string to insert things into.
  1382. * The pattern uses an 'apostrophe-friendly' syntax; it is run through
  1383. * umsg_autoQuoteApostrophe
  1384. * before being interpreted.
  1385. * </p>
  1386. * @param array $args <p>
  1387. * The array of values to insert into the format string
  1388. * </p>
  1389. * @return string|false The formatted pattern string or <b>FALSE</b> if an error occurred
  1390. */
  1391. public static function formatMessage($locale, $pattern, array $args) { }
  1392. /**
  1393. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1394. * Parse input string according to pattern
  1395. * @link https://php.net/manual/en/messageformatter.parse.php
  1396. * @param string $value <p>
  1397. * The string to parse
  1398. * </p>
  1399. * @return array|false An array containing the items extracted, or <b>FALSE</b> on error
  1400. */
  1401. public function parse($value) { }
  1402. /**
  1403. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1404. * Quick parse input string
  1405. * @link https://php.net/manual/en/messageformatter.parsemessage.php
  1406. * @param string $locale <p>
  1407. * The locale to use for parsing locale-dependent parts
  1408. * </p>
  1409. * @param string $pattern <p>
  1410. * The pattern with which to parse the <i>value</i>.
  1411. * </p>
  1412. * @param string $source <p>
  1413. * The string to parse, conforming to the <i>pattern</i>.
  1414. * </p>
  1415. * @return array|false An array containing items extracted, or <b>FALSE</b> on error
  1416. */
  1417. public static function parseMessage($locale, $pattern, $source) { }
  1418. /**
  1419. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1420. * Set the pattern used by the formatter
  1421. * @link https://php.net/manual/en/messageformatter.setpattern.php
  1422. * @param string $pattern <p>
  1423. * The pattern string to use in this message formatter.
  1424. * The pattern uses an 'apostrophe-friendly' syntax; it is run through
  1425. * umsg_autoQuoteApostrophe
  1426. * before being interpreted.
  1427. * </p>
  1428. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1429. */
  1430. public function setPattern($pattern) { }
  1431. /**
  1432. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1433. * Get the pattern used by the formatter
  1434. * @link https://php.net/manual/en/messageformatter.getpattern.php
  1435. * @return string The pattern string for this message formatter
  1436. */
  1437. public function getPattern() { }
  1438. /**
  1439. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1440. * Get the locale for which the formatter was created.
  1441. * @link https://php.net/manual/en/messageformatter.getlocale.php
  1442. * @return string The locale name
  1443. */
  1444. public function getLocale() { }
  1445. /**
  1446. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1447. * Get the error code from last operation
  1448. * @link https://php.net/manual/en/messageformatter.geterrorcode.php
  1449. * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
  1450. */
  1451. public function getErrorCode() { }
  1452. /**
  1453. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1454. * Get the error text from the last operation
  1455. * @link https://php.net/manual/en/messageformatter.geterrormessage.php
  1456. * @return string Description of the last error.
  1457. */
  1458. public function getErrorMessage() { }
  1459. }
  1460. class IntlDateFormatter {
  1461. /**
  1462. * Completely specified style (Tuesday, April 12, 1952 AD or 3:30:42pm PST)
  1463. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1464. */
  1465. const FULL = 0;
  1466. /**
  1467. * Long style (January 12, 1952 or 3:30:32pm)
  1468. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1469. */
  1470. const LONG = 1;
  1471. /**
  1472. * Medium style (Jan 12, 1952)
  1473. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1474. */
  1475. const MEDIUM = 2;
  1476. /**
  1477. * Most abbreviated style, only essential data (12/13/52 or 3:30pm)
  1478. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1479. */
  1480. const SHORT = 3;
  1481. /**
  1482. * Do not include this element
  1483. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1484. */
  1485. const NONE = -1;
  1486. /**
  1487. * Gregorian Calendar
  1488. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1489. */
  1490. const GREGORIAN = 1;
  1491. /**
  1492. * Non-Gregorian Calendar
  1493. * @link https://php.net/manual/en/class.intldateformatter.php#intl.intldateformatter-constants
  1494. */
  1495. const TRADITIONAL = 0;
  1496. const RELATIVE_FULL = 0;
  1497. const RELATIVE_LONG = 1;
  1498. const RELATIVE_MEDIUM = 2;
  1499. const RELATIVE_SHORT = 3;
  1500. /**
  1501. * @param string|null $locale
  1502. * @param int $datetype
  1503. * @param int $timetype
  1504. * @param mixed|null $timezone [optional]
  1505. * @param mixed|null $calendar [optional]
  1506. * @param string $pattern [optional]
  1507. */
  1508. public function __construct($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = '') { }
  1509. /**
  1510. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1511. * Create a date formatter
  1512. * @link https://php.net/manual/en/intldateformatter.create.php
  1513. * @param string $locale <p>
  1514. * Locale to use when formatting or parsing; default is specified in the ini setting intl.default_locale.
  1515. * </p>
  1516. * @param int $datetype <p>
  1517. * Date type to use (<b>none</b>,
  1518. * <b>short</b>, <b>medium</b>,
  1519. * <b>long</b>, <b>full</b>).
  1520. * This is one of the
  1521. * IntlDateFormatter constants.
  1522. * </p>
  1523. * @param int $timetype <p>
  1524. * Time type to use (<b>none</b>,
  1525. * <b>short</b>, <b>medium</b>,
  1526. * <b>long</b>, <b>full</b>).
  1527. * This is one of the
  1528. * IntlDateFormatter constants.
  1529. * </p>
  1530. * @param string $timezone [optional] <p>
  1531. * Time zone ID, default is system default.
  1532. * </p>
  1533. * @param int $calendar [optional] <p>
  1534. * Calendar to use for formatting or parsing; default is Gregorian.
  1535. * This is one of the
  1536. * IntlDateFormatter calendar constants.
  1537. * </p>
  1538. * @param string $pattern [optional] <p>
  1539. * Optional pattern to use when formatting or parsing.
  1540. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime.
  1541. * </p>
  1542. * @return IntlDateFormatter
  1543. */
  1544. public static function create($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = '') { }
  1545. /**
  1546. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1547. * Get the datetype used for the IntlDateFormatter
  1548. * @link https://php.net/manual/en/intldateformatter.getdatetype.php
  1549. * @return int The current date type value of the formatter.
  1550. */
  1551. public function getDateType() { }
  1552. /**
  1553. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1554. * Get the timetype used for the IntlDateFormatter
  1555. * @link https://php.net/manual/en/intldateformatter.gettimetype.php
  1556. * @return int The current date type value of the formatter.
  1557. */
  1558. public function getTimeType() { }
  1559. /**
  1560. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1561. * Get the calendar used for the IntlDateFormatter
  1562. * @link https://php.net/manual/en/intldateformatter.getcalendar.php
  1563. * @return int The calendar being used by the formatter.
  1564. */
  1565. public function getCalendar() { }
  1566. /**
  1567. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1568. * sets the calendar used to the appropriate calendar, which must be
  1569. * @link https://php.net/manual/en/intldateformatter.setcalendar.php
  1570. * @param int $which <p>
  1571. * The calendar to use.
  1572. * Default is <b>IntlDateFormatter::GREGORIAN</b>.
  1573. * </p>
  1574. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1575. */
  1576. public function setCalendar($which) { }
  1577. /**
  1578. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1579. * Get the timezone-id used for the IntlDateFormatter
  1580. * @link https://php.net/manual/en/intldateformatter.gettimezoneid.php
  1581. * @return string ID string for the time zone used by this formatter.
  1582. */
  1583. public function getTimeZoneId() { }
  1584. /**
  1585. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  1586. * Get copy of formatter's calendar object
  1587. * @link https://www.php.net/manual/en/intldateformatter.getcalendarobject.php
  1588. * @return IntlCalendar A copy of the internal calendar object used by this formatter.
  1589. */
  1590. public function getCalendarObject() { }
  1591. /**
  1592. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  1593. * Get formatter's timezone
  1594. * @link https://www.php.net/manual/en/intldateformatter.gettimezone.php
  1595. * @return IntlTimeZone|false The associated IntlTimeZone object or FALSE on failure.
  1596. */
  1597. public function getTimeZone() { }
  1598. /**
  1599. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1600. * Sets the time zone to use
  1601. * @link https://php.net/manual/en/intldateformatter.settimezoneid.php
  1602. * @param string $zone <p>
  1603. * The time zone ID string of the time zone to use.
  1604. * If <b>NULL</b> or the empty string, the default time zone for the runtime is used.
  1605. * </p>
  1606. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1607. * @deprecated 5.5 https://www.php.net/manual/en/migration55.deprecated.php
  1608. * @removed 7.0
  1609. */
  1610. public function setTimeZoneId($zone) { }
  1611. /**
  1612. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  1613. * Sets formatter's timezone
  1614. * @link https://php.net/manual/en/intldateformatter.settimezone.php
  1615. * @param mixed $zone <p>
  1616. * The timezone to use for this formatter. This can be specified in the
  1617. * following forms:
  1618. * <ul>
  1619. * <li>
  1620. * <p>
  1621. * <b>NULL</b>, in which case the default timezone will be used, as specified in
  1622. * the ini setting {@link "https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" date.timezone} or
  1623. * through the function {@link "https://www.php.net/manual/en/function.date-default-timezone-set.php" date_default_timezone_set()} and as
  1624. * returned by {@link "https://www.php.net/manual/en/function.date-default-timezone-get.php" date_default_timezone_get()}.
  1625. * </p>
  1626. * </li>
  1627. * <li>
  1628. * <p>
  1629. * An {@link "https://www.php.net/manual/en/class.intltimezone.php" IntlTimeZone}, which will be used directly.
  1630. * </p>
  1631. * </li>
  1632. * <li>
  1633. * <p>
  1634. * A {@link "https://www.php.net/manual/en/class.datetimezone.php" DateTimeZone}. Its identifier will be extracted
  1635. * and an ICU timezone object will be created; the timezone will be backed
  1636. * by ICU's database, not PHP's.
  1637. * </p>
  1638. * </li>
  1639. *<li>
  1640. * <p>
  1641. * A {@link "https://www.php.net/manual/en/language.types.string.php" string}, which should be a valid ICU timezone identifier.
  1642. * See <b>IntlTimeZone::createTimeZoneIDEnumeration()</b>. Raw offsets such as <em>"GMT+08:30"</em> are also accepted.
  1643. * </p>
  1644. * </li>
  1645. * </ul>
  1646. * </p>
  1647. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1648. */
  1649. public function setTimeZone($zone) { }
  1650. /**
  1651. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1652. * Set the pattern used for the IntlDateFormatter
  1653. * @link https://php.net/manual/en/intldateformatter.setpattern.php
  1654. * @param string $pattern <p>
  1655. * New pattern string to use.
  1656. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime.
  1657. * </p>
  1658. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1659. * Bad formatstrings are usually the cause of the failure.
  1660. */
  1661. public function setPattern($pattern) { }
  1662. /**
  1663. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1664. * Get the pattern used for the IntlDateFormatter
  1665. * @link https://php.net/manual/en/intldateformatter.getpattern.php
  1666. * @return string The pattern string being used to format/parse.
  1667. */
  1668. public function getPattern() { }
  1669. /**
  1670. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1671. * Get the locale used by formatter
  1672. * @link https://php.net/manual/en/intldateformatter.getlocale.php
  1673. * @param int $which [optional]
  1674. * @return string|false the locale of this formatter or 'false' if error
  1675. */
  1676. public function getLocale($which = null) { }
  1677. /**
  1678. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1679. * Set the leniency of the parser
  1680. * @link https://php.net/manual/en/intldateformatter.setlenient.php
  1681. * @param bool $lenient <p>
  1682. * Sets whether the parser is lenient or not, default is <b>TRUE</b> (lenient).
  1683. * </p>
  1684. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  1685. */
  1686. public function setLenient($lenient) { }
  1687. /**
  1688. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1689. * Get the lenient used for the IntlDateFormatter
  1690. * @link https://php.net/manual/en/intldateformatter.islenient.php
  1691. * @return bool <b>TRUE</b> if parser is lenient, <b>FALSE</b> if parser is strict. By default the parser is lenient.
  1692. */
  1693. public function isLenient() { }
  1694. /**
  1695. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1696. * Format the date/time value as a string
  1697. * @link https://php.net/manual/en/intldateformatter.format.php
  1698. * @param mixed $value <p>
  1699. * Value to format. This may be a <b>DateTime</b> object,
  1700. * an integer representing a Unix timestamp value (seconds
  1701. * since epoch, UTC) or an array in the format output by
  1702. * <b>localtime</b>.
  1703. * </p>
  1704. * @return string|false The formatted string or, if an error occurred, <b>FALSE</b>.
  1705. */
  1706. public function format($value) { }
  1707. /**
  1708. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  1709. * Formats an object
  1710. * @link https://www.php.net/manual/en/intldateformatter.formatobject.php
  1711. * @param object $object <p>
  1712. * An object of type {@link "https://www.php.net/manual/en/class.intlcalendar.php" IntlCalendar} or {@link "https://www.php.net/manual/en/class.datetime.php" DateTime}. The timezone information in the object will be used.
  1713. * </p>
  1714. * @param mixed $format [optional] <p>
  1715. * How to format the date/time. This can either be an {@link "https://www.php.net/manual/en/language.types.array.php" array} with
  1716. * two elements (first the date style, then the time style, these being one
  1717. * of the constants <b>IntlDateFormatter::NONE</b>,
  1718. * <b>IntlDateFormatter::SHORT</b>,
  1719. * <b>IntlDateFormatter::MEDIUM</b>,
  1720. * <b>IntlDateFormatter::LONG</b>,
  1721. * <b>IntlDateFormatter::FULL</b>), a long with
  1722. * the value of one of these constants (in which case it will be used both
  1723. * for the time and the date) or a {@link "https://www.php.net/manual/en/language.types.string.php" string} with the format
  1724. * described in {@link "http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details" the ICU documentation}.
  1725. * If <br>NULL</br>, the default style will be used.
  1726. * </p>
  1727. * @param string $locale [optional] <p>
  1728. * The locale to use, or <b>NULL</b> to use the {@link "https://www.php.net/manual/en/intl.configuration.php#ini.intl.default-locale"default one}.</p>
  1729. * @return string|false A string with result or <b>FALSE</b> on failure.
  1730. */
  1731. public static function formatObject($object, $format = null, $locale = null) { }
  1732. /**
  1733. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1734. * Parse string to a timestamp value
  1735. * @link https://php.net/manual/en/intldateformatter.parse.php
  1736. * @param string $value <p>
  1737. * string to convert to a time
  1738. * </p>
  1739. * @param int $position [optional] <p>
  1740. * Position at which to start the parsing in $value (zero-based).
  1741. * If no error occurs before $value is consumed, $parse_pos will contain -1
  1742. * otherwise it will contain the position at which parsing ended (and the error occurred).
  1743. * This variable will contain the end position if the parse fails.
  1744. * If $parse_pos > strlen($value), the parse fails immediately.
  1745. * </p>
  1746. * @return int timestamp parsed value
  1747. */
  1748. public function parse($value, &$position = null) { }
  1749. /**
  1750. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1751. * Parse string to a field-based time value
  1752. * @link https://php.net/manual/en/intldateformatter.localtime.php
  1753. * @param string $value <p>
  1754. * string to convert to a time
  1755. * </p>
  1756. * @param int $position [optional] <p>
  1757. * Position at which to start the parsing in $value (zero-based).
  1758. * If no error occurs before $value is consumed, $parse_pos will contain -1
  1759. * otherwise it will contain the position at which parsing ended .
  1760. * If $parse_pos > strlen($value), the parse fails immediately.
  1761. * </p>
  1762. * @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field
  1763. */
  1764. public function localtime($value, &$position = null) { }
  1765. /**
  1766. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1767. * Get the error code from last operation
  1768. * @link https://php.net/manual/en/intldateformatter.geterrorcode.php
  1769. * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
  1770. */
  1771. public function getErrorCode() { }
  1772. /**
  1773. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  1774. * Get the error text from the last operation.
  1775. * @link https://php.net/manual/en/intldateformatter.geterrormessage.php
  1776. * @return string Description of the last error.
  1777. */
  1778. public function getErrorMessage() { }
  1779. }
  1780. class ResourceBundle implements IteratorAggregate {
  1781. /**
  1782. * @param $locale
  1783. * @param $bundlename
  1784. * @param $fallback [optional]
  1785. */
  1786. public function __construct($locale, $bundlename, $fallback) { }
  1787. /**
  1788. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  1789. * Create a resource bundle
  1790. * @link https://php.net/manual/en/resourcebundle.create.php
  1791. * @param string $locale <p>
  1792. * Locale for which the resources should be loaded (locale name, e.g. en_CA).
  1793. * </p>
  1794. * @param string $bundlename <p>
  1795. * The directory where the data is stored or the name of the .dat file.
  1796. * </p>
  1797. * @param bool $fallback [optional] <p>
  1798. * Whether locale should match exactly or fallback to parent locale is allowed.
  1799. * </p>
  1800. * @return ResourceBundle|false <b>ResourceBundle</b> object or <b>FALSE</b> on error.
  1801. */
  1802. public static function create($locale, $bundlename, $fallback = null) { }
  1803. /**
  1804. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  1805. * Get data from the bundle
  1806. * @link https://php.net/manual/en/resourcebundle.get.php
  1807. * @param string|int $index <p>
  1808. * Data index, must be string or integer.
  1809. * </p>
  1810. * @return mixed the data located at the index or <b>NULL</b> on error. Strings, integers and binary data strings
  1811. * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are
  1812. * returned as <b>ResourceBundle</b> object.
  1813. */
  1814. public function get($index) { }
  1815. /**
  1816. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  1817. * Get number of elements in the bundle
  1818. * @link https://php.net/manual/en/resourcebundle.count.php
  1819. * @return int number of elements in the bundle.
  1820. */
  1821. public function count() { }
  1822. /**
  1823. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  1824. * Get supported locales
  1825. * @link https://php.net/manual/en/resourcebundle.locales.php
  1826. * @param string $bundlename <p>
  1827. * Path of ResourceBundle for which to get available locales, or
  1828. * empty string for default locales list.
  1829. * </p>
  1830. * @return array the list of locales supported by the bundle.
  1831. */
  1832. public static function getLocales($bundlename) { }
  1833. /**
  1834. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  1835. * Get bundle's last error code.
  1836. * @link https://php.net/manual/en/resourcebundle.geterrorcode.php
  1837. * @return int error code from last bundle object call.
  1838. */
  1839. public function getErrorCode() { }
  1840. /**
  1841. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  1842. * Get bundle's last error message.
  1843. * @link https://php.net/manual/en/resourcebundle.geterrormessage.php
  1844. * @return string error message from last bundle object's call.
  1845. */
  1846. public function getErrorMessage() { }
  1847. /**
  1848. * @since 8.0
  1849. */
  1850. public function getIterator(){}
  1851. }
  1852. /**
  1853. * @since 5.4
  1854. */
  1855. class Transliterator {
  1856. const FORWARD = 0;
  1857. const REVERSE = 1;
  1858. public $id;
  1859. /**
  1860. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1861. * Private constructor to deny instantiation
  1862. * @link https://php.net/manual/en/transliterator.construct.php
  1863. */
  1864. final private function __construct() { }
  1865. /**
  1866. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1867. * Create a transliterator
  1868. * @link https://php.net/manual/en/transliterator.create.php
  1869. * @param string $id <p>
  1870. * The id.
  1871. * </p>
  1872. * @param int $direction [optional] <p>
  1873. * The direction, defaults to
  1874. * >Transliterator::FORWARD.
  1875. * May also be set to
  1876. * Transliterator::REVERSE.
  1877. * </p>
  1878. * @return Transliterator a <b>Transliterator</b> object on success,
  1879. * or <b>NULL</b> on failure.
  1880. */
  1881. public static function create($id, $direction = null) { }
  1882. /**
  1883. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1884. * Create transliterator from rules
  1885. * @link https://php.net/manual/en/transliterator.createfromrules.php
  1886. * @param string $rules <p>
  1887. * The rules.
  1888. * </p>
  1889. * @param string $direction [optional] <p>
  1890. * The direction, defaults to
  1891. * >Transliterator::FORWARD.
  1892. * May also be set to
  1893. * Transliterator::REVERSE.
  1894. * </p>
  1895. * @return Transliterator a <b>Transliterator</b> object on success,
  1896. * or <b>NULL</b> on failure.
  1897. */
  1898. public static function createFromRules($rules, $direction = null) { }
  1899. /**
  1900. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1901. * Create an inverse transliterator
  1902. * @link https://php.net/manual/en/transliterator.createinverse.php
  1903. * @return Transliterator a <b>Transliterator</b> object on success,
  1904. * or <b>NULL</b> on failure
  1905. */
  1906. public function createInverse() { }
  1907. /**
  1908. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1909. * Get transliterator IDs
  1910. * @link https://php.net/manual/en/transliterator.listids.php
  1911. * @return array An array of registered transliterator IDs on success,
  1912. * or <b>FALSE</b> on failure.
  1913. */
  1914. public static function listIDs() { }
  1915. /**
  1916. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1917. * Transliterate a string
  1918. * @link https://php.net/manual/en/transliterator.transliterate.php
  1919. * @param string $subject <p>
  1920. * The string to be transformed.
  1921. * </p>
  1922. * @param int $start [optional] <p>
  1923. * The start index (in UTF-16 code units) from which the string will start
  1924. * to be transformed, inclusive. Indexing starts at 0. The text before will
  1925. * be left as is.
  1926. * </p>
  1927. * @param int $end [optional] <p>
  1928. * The end index (in UTF-16 code units) until which the string will be
  1929. * transformed, exclusive. Indexing starts at 0. The text after will be
  1930. * left as is.
  1931. * </p>
  1932. * @return string|false The transfomed string on success, or <b>FALSE</b> on failure.
  1933. */
  1934. public function transliterate($subject, $start = null, $end = null) { }
  1935. /**
  1936. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1937. * Get last error code
  1938. * @link https://php.net/manual/en/transliterator.geterrorcode.php
  1939. * @return int The error code on success,
  1940. * or <b>FALSE</b> if none exists, or on failure.
  1941. */
  1942. public function getErrorCode() { }
  1943. /**
  1944. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1945. * Get last error message
  1946. * @link https://php.net/manual/en/transliterator.geterrormessage.php
  1947. * @return string The error code on success,
  1948. * or <b>FALSE</b> if none exists, or on failure.
  1949. */
  1950. public function getErrorMessage() { }
  1951. }
  1952. /**
  1953. * @link https://php.net/manual/en/class.spoofchecker.php
  1954. */
  1955. class Spoofchecker {
  1956. const SINGLE_SCRIPT_CONFUSABLE = 1;
  1957. const MIXED_SCRIPT_CONFUSABLE = 2;
  1958. const WHOLE_SCRIPT_CONFUSABLE = 4;
  1959. const ANY_CASE = 8;
  1960. const SINGLE_SCRIPT = 16;
  1961. const INVISIBLE = 32;
  1962. const CHAR_LIMIT = 64;
  1963. /**
  1964. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1965. * Constructor
  1966. * @link https://php.net/manual/en/spoofchecker.construct.php
  1967. */
  1968. public function __construct() { }
  1969. /**
  1970. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1971. * Checks if a given text contains any suspicious characters
  1972. * @link https://php.net/manual/en/spoofchecker.issuspicious.php
  1973. * @param string $text <p>
  1974. * </p>
  1975. * @param string $error [optional] <p>
  1976. * </p>
  1977. * @return bool
  1978. */
  1979. public function isSuspicious($text, &$error = null) { }
  1980. /**
  1981. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1982. * Checks if a given text contains any confusable characters
  1983. * @link https://php.net/manual/en/spoofchecker.areconfusable.php
  1984. * @param string $s1 <p>
  1985. * </p>
  1986. * @param string $s2 <p>
  1987. * </p>
  1988. * @param string $error [optional] <p>
  1989. * </p>
  1990. * @return bool
  1991. */
  1992. public function areConfusable($s1, $s2, &$error = null) { }
  1993. /**
  1994. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  1995. * Locales to use when running checks
  1996. * @link https://php.net/manual/en/spoofchecker.setallowedlocales.php
  1997. * @param string $locale_list <p>
  1998. * </p>
  1999. * @return void
  2000. */
  2001. public function setAllowedLocales($locale_list) { }
  2002. /**
  2003. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  2004. * Set the checks to run
  2005. * @link https://php.net/manual/en/spoofchecker.setchecks.php
  2006. * @param string $checks <p>
  2007. * </p>
  2008. * @return void
  2009. */
  2010. public function setChecks($checks) { }
  2011. }
  2012. /**
  2013. * @since 5.5
  2014. */
  2015. class IntlGregorianCalendar extends IntlCalendar {
  2016. /**
  2017. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2018. * @param mixed $timeZone
  2019. * @param string $locale
  2020. * @return IntlGregorianCalendar
  2021. */
  2022. public static function createInstance($timeZone = null, $locale = null) { }
  2023. /**
  2024. * @param double $change
  2025. *
  2026. */
  2027. public function setGregorianChange($change) { }
  2028. /**
  2029. * @return double $change
  2030. */
  2031. public function getGregorianChange() { }
  2032. /**
  2033. * @param int $year
  2034. * @return bool
  2035. */
  2036. public function isLeapYear($year) { }
  2037. }
  2038. /**
  2039. * @since 5.5
  2040. */
  2041. class IntlCalendar {
  2042. /* Constants */
  2043. const FIELD_ERA = 0;
  2044. const FIELD_YEAR = 1;
  2045. const FIELD_MONTH = 2;
  2046. const FIELD_WEEK_OF_YEAR = 3;
  2047. const FIELD_WEEK_OF_MONTH = 4;
  2048. const FIELD_DATE = 5;
  2049. const FIELD_DAY_OF_YEAR = 6;
  2050. const FIELD_DAY_OF_WEEK = 7;
  2051. const FIELD_DAY_OF_WEEK_IN_MONTH = 8;
  2052. const FIELD_AM_PM = 9;
  2053. const FIELD_HOUR = 10;
  2054. const FIELD_HOUR_OF_DAY = 11;
  2055. const FIELD_MINUTE = 12;
  2056. const FIELD_SECOND = 13;
  2057. const FIELD_MILLISECOND = 14;
  2058. const FIELD_ZONE_OFFSET = 15;
  2059. const FIELD_DST_OFFSET = 16;
  2060. const FIELD_YEAR_WOY = 17;
  2061. const FIELD_DOW_LOCAL = 18;
  2062. const FIELD_EXTENDED_YEAR = 19;
  2063. const FIELD_JULIAN_DAY = 20;
  2064. const FIELD_MILLISECONDS_IN_DAY = 21;
  2065. const FIELD_IS_LEAP_MONTH = 22;
  2066. const FIELD_FIELD_COUNT = 23;
  2067. const FIELD_DAY_OF_MONTH = 5;
  2068. const DOW_SUNDAY = 1;
  2069. const DOW_MONDAY = 2;
  2070. const DOW_TUESDAY = 3;
  2071. const DOW_WEDNESDAY = 4;
  2072. const DOW_THURSDAY = 5;
  2073. const DOW_FRIDAY = 6;
  2074. const DOW_SATURDAY = 7;
  2075. const DOW_TYPE_WEEKDAY = 0;
  2076. const DOW_TYPE_WEEKEND = 1;
  2077. const DOW_TYPE_WEEKEND_OFFSET = 2;
  2078. const DOW_TYPE_WEEKEND_CEASE = 3;
  2079. const WALLTIME_FIRST = 1;
  2080. const WALLTIME_LAST = 0;
  2081. const WALLTIME_NEXT_VALID = 2;
  2082. /* Methods */
  2083. /**
  2084. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2085. * Add a (signed) amount of time to a field
  2086. * @link https://www.php.net/manual/en/intlcalendar.add.php
  2087. * @param int $field <p>
  2088. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}.
  2089. * These are integer values between <em>0</em> and
  2090. * <b>IntlCalendar::FIELD_COUNT</b>.
  2091. * </p>
  2092. * @param int $amount <p>The signed amount to add to the current field. If the amount is positive, the instant will be moved forward; if it is negative, the instant wil be moved into the past. The unit is implicit to the field type.
  2093. * For instance, hours for <b>IntlCalendar::FIELD_HOUR_OF_DAY</b>.</p>
  2094. * @return bool Returns TRUE on success or FALSE on failure.
  2095. */
  2096. public function add($field, $amount) { }
  2097. /**
  2098. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2099. * Whether this object's time is after that of the passed object
  2100. * https://www.php.net/manual/en/intlcalendar.after.php
  2101. * @param IntlCalendar $calendar <p>The calendar whose time will be checked against this object's time.</p>
  2102. * @return bool
  2103. * Returns <b>TRUE</b> if this object's current time is after that of the
  2104. * <em>calendar</em> argument's time. Returns <b>FALSE</b> otherwise.
  2105. * Also returns <b>FALSE</b> on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or
  2106. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions.
  2107. */
  2108. public function after(IntlCalendar $calendar) { }
  2109. /**
  2110. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2111. * Whether this object's time is before that of the passed object
  2112. * @link https://www.php.net/manual/en/intlcalendar.before.php
  2113. * @param IntlCalendar $calendar <p> The calendar whose time will be checked against this object's time.</p>
  2114. * @return bool
  2115. * Returns <b>TRUE</B> if this object's current time is before that of the
  2116. * <em>calendar</em> argument's time. Returns <b>FALSE</b> otherwise.
  2117. * Also returns <b>FALSE</b> on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or
  2118. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions.
  2119. * </p>
  2120. */
  2121. public function before(IntlCalendar $calendar) { }
  2122. /**
  2123. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2124. * Clear a field or all fields
  2125. * @link https://www.php.net/manual/en/intlcalendar.clear.php
  2126. * @param int $field [optional] <p>
  2127. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2128. * values between <em>0</em> and
  2129. * <b>IntlCalendar::FIELD_COUNT</b>.
  2130. * </p>
  2131. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. Failure can only occur is invalid arguments are provided.
  2132. */
  2133. public function clear($field = null) { }
  2134. /**
  2135. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2136. * Private constructor for disallowing instantiation
  2137. * @link https://www.php.net/manual/en/intlcalendar.construct.php
  2138. *
  2139. */
  2140. private function __construct() { }
  2141. /**
  2142. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2143. * Create a new IntlCalendar
  2144. * @link https://www.php.net/manual/en/intlcalendar.createinstance.php
  2145. * @param mixed $timeZone [optional] <p> <p>
  2146. * The timezone to use.
  2147. * </p>
  2148. *
  2149. * <ul>
  2150. * <li>
  2151. * <p>
  2152. * <b>NULL</b>, in which case the default timezone will be used, as specified in
  2153. * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or
  2154. * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as
  2155. * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}.
  2156. * </p>
  2157. * </li>
  2158. * <li>
  2159. * <p>
  2160. * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly.
  2161. * </p>
  2162. * </li>
  2163. * <li>
  2164. * <p>
  2165. * A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted
  2166. * and an ICU timezone object will be created; the timezone will be backed
  2167. * by ICU's database, not PHP's.
  2168. * </p>
  2169. * </li>
  2170. * <li>
  2171. * <p>
  2172. * A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier.
  2173. * See <b>IntlTimeZone::createTimeZoneIDEnumeration()</b>. Raw
  2174. * offsets such as <em>"GMT+08:30"</em> are also accepted.
  2175. * </p>
  2176. * </li>
  2177. * </ul>
  2178. * </p>
  2179. * @param string $locale [optional] <p>
  2180. * A locale to use or <b>NULL</b> to use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.default-locale the default locale}.
  2181. * </p>
  2182. * @return IntlCalendar
  2183. * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} instance or <b>NULL</b> on
  2184. * failure.
  2185. */
  2186. public static function createInstance($timeZone = null, $locale = null) { }
  2187. /**
  2188. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2189. * Compare time of two IntlCalendar objects for equality
  2190. * @link https://www.php.net/manual/en/intlcalendar.equals.php
  2191. * @param IntlCalendar $calendar
  2192. * @return bool <p>
  2193. * Returns <b>TRUE</b> if the current time of both this and the passed in
  2194. * {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object are the same, or <b>FALSE</b>
  2195. * otherwise. The value <b>FALSE</b> can also be returned on failure. This can only
  2196. * happen if bad arguments are passed in. In any case, the two cases can be
  2197. * distinguished by calling {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()}.
  2198. * </p>
  2199. */
  2200. public function equals($calendar) { }
  2201. /**
  2202. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2203. * Calculate difference between given time and this object's time
  2204. * @link https://www.php.net/manual/en/intlcalendar.fielddifference.php
  2205. * @param float $when <p>
  2206. * The time against which to compare the quantity represented by the
  2207. * <em>field</em>. For the result to be positive, the time
  2208. * given for this parameter must be ahead of the time of the object the
  2209. * method is being invoked on.
  2210. * </p>
  2211. * @param int $field <p>
  2212. * The field that represents the quantity being compared.
  2213. * </p>
  2214. *
  2215. * <p>
  2216. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2217. * values between <em>0</em> and
  2218. * <b>IntlCalendar::FIELD_COUNT</b>.
  2219. * </p>
  2220. * @return int Returns a (signed) difference of time in the unit associated with the
  2221. * specified field or <b>FALSE</b> on failure.
  2222. *
  2223. */
  2224. public function fieldDifference($when, $field) { }
  2225. /**
  2226. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a2)<br/>
  2227. * Create an IntlCalendar from a DateTime object or string
  2228. * @link https://www.php.net/manual/en/intlcalendar.fromdatetime.php
  2229. * @param mixed $dateTime <p>
  2230. * A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object or a {@link https://www.php.net/manual/en/language.types.string.php string} that
  2231. * can be passed to {@link https://www.php.net/manual/en/datetime.construct.php DateTime::__construct()}.
  2232. * </p>
  2233. * @return IntlCalendar
  2234. * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object or <b>NULL</b> in case of
  2235. * failure. If a {@link https://www.php.net/manual/en/language.types.string.php string} is passed, any exception that occurs
  2236. * inside the {@link https://www.php.net/manual/en/class.datetime.php DateTime} constructor is propagated.
  2237. */
  2238. public static function fromDateTime($dateTime) { }
  2239. /**
  2240. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2241. * Get the value for a field
  2242. * @link https://www.php.net/manual/en/intlcalendar.get.php
  2243. * @param int $field <p>
  2244. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2245. * values between <em>0</em> and
  2246. * <b>IntlCalendar::FIELD_COUNT</b>.
  2247. * </p>
  2248. * @return int An integer with the value of the time field.
  2249. */
  2250. public function get($field) { }
  2251. /**
  2252. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2253. * The maximum value for a field, considering the object's current time
  2254. * @link https://www.php.net/manual/en/intlcalendar.getactualmaximum.php
  2255. * @param int $field <p>
  2256. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2257. * values between <em>0</em> and
  2258. * <b>IntlCalendar::FIELD_COUNT</b>.
  2259. * </p>
  2260. * @return int
  2261. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the maximum value in the units associated
  2262. * with the given <em>field</em> or <b>FALSE</b> on failure.
  2263. */
  2264. public function getActualMaximum($field) { }
  2265. /**
  2266. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2267. * The minimum value for a field, considering the object's current time
  2268. * @link https://www.php.net/manual/en/intlcalendar.getactualminimum.php
  2269. * @param int $field <p>
  2270. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}.
  2271. * These are integer values between <em>0</em> and
  2272. * <b>IntlCalendar::FIELD_COUNT</b>.
  2273. * </p>
  2274. * @return int
  2275. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the minimum value in the field's
  2276. * unit or <b>FALSE</b> on failure.
  2277. */
  2278. public function getActualMinimum($field) { }
  2279. /**
  2280. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2281. * Get array of locales for which there is data
  2282. * @link https://www.php.net/manual/en/intlcalendar.getavailablelocales.php
  2283. * @return array An array of strings, one for which locale.
  2284. */
  2285. public static function getAvailableLocales() { }
  2286. /**
  2287. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2288. * Tell whether a day is a weekday, weekend or a day that has a transition between the two
  2289. * @param int $dayOfWeek <p>
  2290. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  2291. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  2292. * <b>IntlCalendar::DOW_SATURDAY</b>.
  2293. * </p>
  2294. * @return int
  2295. * Returns one of the constants
  2296. * <b>IntlCalendar::DOW_TYPE_WEEKDAY</b>,
  2297. * <b>IntlCalendar::DOW_TYPE_WEEKEND</b>,
  2298. * <b>IntlCalendar::DOW_TYPE_WEEKEND_OFFSET</b> or
  2299. * <b>IntlCalendar::DOW_TYPE_WEEKEND_CEASE</b> or <b>FALSE</b> on failure.
  2300. *
  2301. */
  2302. public function getDayOfWeekType($dayOfWeek) { }
  2303. /**
  2304. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2305. * Get last error code on the object
  2306. * @link https://www.php.net/manual/en/intlcalendar.geterrorcode.php
  2307. * @return int An ICU error code indicating either success, failure or a warning.
  2308. *
  2309. */
  2310. public function getErrorCode() { }
  2311. /**
  2312. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2313. * Get last error message on the object
  2314. * @link https://www.php.net/manual/en/intlcalendar.geterrormessage.php
  2315. * @return string The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existance of an error.
  2316. */
  2317. public function getErrorMessage() { }
  2318. /**
  2319. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2320. * Get the first day of the week for the calendar's locale
  2321. * @link https://www.php.net/manual/en/intlcalendar.getfirstdayofweek.php
  2322. * @return int
  2323. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  2324. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  2325. * <b>IntlCalendar::DOW_SATURDAY</b> or <b>FALSE</b> on failure.
  2326. *
  2327. */
  2328. public function getFirstDayOfWeek() { }
  2329. /**
  2330. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2331. * Get the largest local minimum value for a field
  2332. * @link https://www.php.net/manual/en/intlcalendar.getgreatestminimum.php
  2333. * @param int $field <p>
  2334. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2335. * values between <em>0</em> and
  2336. * <b>IntlCalendar::FIELD_COUNT</b>.
  2337. * @return int
  2338. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a field value, in the field's
  2339. * unit, or <b>FALSE</b> on failure.
  2340. */
  2341. public function getGreatestMinimum($field) { }
  2342. /**
  2343. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2344. * Get set of locale keyword values
  2345. * @param string $key <p>
  2346. * The locale keyword for which relevant values are to be queried. Only
  2347. * <em>'calendar'</em> is supported.
  2348. * </p>
  2349. * @param string $locale <p>
  2350. * The locale onto which the keyword/value pair are to be appended.
  2351. * </p>
  2352. * @param bool $commonlyUsed
  2353. * <p>
  2354. * Whether to show only the values commonly used for the specified locale.
  2355. * </p>
  2356. * @return Iterator|false An iterator that yields strings with the locale keyword values or <b>FALSE</b> on failure.
  2357. */
  2358. public static function getKeywordValuesForLocale($key, $locale, $commonlyUsed) { }
  2359. /**
  2360. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2361. * Get the smallest local maximum for a field
  2362. * @link https://www.php.net/manual/en/intlcalendar.getleastmaximum.php
  2363. * @param int $field <p>
  2364. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2365. * values between <em>0</em> and
  2366. * <b>IntlCalendar::FIELD_COUNT</b>.
  2367. * </p>
  2368. * @return int
  2369. * An {@link https://www.php.net/manual/en/language.types.integer.ph int} representing a field value in the field's
  2370. * unit or <b>FALSE</b> on failure.
  2371. * </p>
  2372. */
  2373. public function getLeastMaximum($field) { }
  2374. /**
  2375. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2376. * Get the locale associated with the object
  2377. * @link https://www.php.net/manual/en/intlcalendar.getlocale.php
  2378. * @param int $localeType <p>
  2379. * Whether to fetch the actual locale (the locale from which the calendar
  2380. * data originates, with <b>Locale::ACTUAL_LOCALE</b>) or the
  2381. * valid locale, i.e., the most specific locale supported by ICU relatively
  2382. * to the requested locale – see <b>Locale::VALID_LOCALE</b>.
  2383. * From the most general to the most specific, the locales are ordered in
  2384. * this fashion – actual locale, valid locale, requested locale.
  2385. * </p>
  2386. * @return string
  2387. * A locale string or <b>FALSE</b> on failure.
  2388. *
  2389. */
  2390. public function getLocale($localeType) { }
  2391. /**
  2392. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2393. * Get the global maximum value for a field
  2394. * @link https://www.php.net/manual/en/intlcalendar.getmaximum.php
  2395. * @param int $field <p>
  2396. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2397. * values between <em>0</em> and
  2398. * <b>IntlCalendar::FIELD_COUNT</b>.
  2399. * </p>
  2400. * @return string
  2401. * A locale string or <b>FALSE</b> on failure.
  2402. */
  2403. public function getMaximum($field) { }
  2404. /**
  2405. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2406. * Get minimal number of days the first week in a year or month can have
  2407. * @link https://www.php.net/manual/en/intlcalendar.getminimaldaysinfirstweek.php
  2408. * @return int
  2409. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a number of days or <b>FALSE</b> on failure.
  2410. */
  2411. public function getMinimalDaysInFirstWeek() { }
  2412. /**
  2413. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2414. * Get the global minimum value for a field
  2415. * @link https://www.php.net/manual/en/intlcalendar.getminimum.php
  2416. * @param int $field <p>
  2417. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field}. These are integer
  2418. * values between <em>0</em> and
  2419. * <b>IntlCalendar::FIELD_COUNT</b>.
  2420. * </p>
  2421. * @return int
  2422. * An int representing a value for the given field in the field's unit or FALSE on failure.
  2423. */
  2424. public function getMinimum($field) { }
  2425. /**
  2426. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2427. * Get number representing the current time
  2428. * @return float A float representing a number of milliseconds since the epoch, not counting leap seconds.
  2429. */
  2430. public static function getNow() { }
  2431. /**
  2432. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2433. * Get behavior for handling repeating wall time
  2434. * @link https://www.php.net/manual/en/intlcalendar.getrepeatedwalltimeoption.php
  2435. * @return int
  2436. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b> or
  2437. * <b>IntlCalendar::WALLTIME_LAST</b>.
  2438. *
  2439. */
  2440. public function getRepeatedWallTimeOption() { }
  2441. /**
  2442. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2443. * Get behavior for handling skipped wall time
  2444. * @link https://www.php.net/manual/en/intlcalendar.getskippedwalltimeoption.php
  2445. * @return int
  2446. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b>,
  2447. * <b>IntlCalendar::WALLTIME_LAST</b> or
  2448. * <b>IntlCalendar::WALLTIME_NEXT_VALID</b>.
  2449. */
  2450. public function getSkippedWallTimeOption() { }
  2451. /**
  2452. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2453. * Get time currently represented by the object
  2454. * @return float
  2455. * A {@link https://www.php.net/manual/en/language.types.float.php float} representing the number of milliseconds elapsed since the
  2456. * reference time (1 Jan 1970 00:00:00 UTC).
  2457. */
  2458. public function getTime() { }
  2459. /**
  2460. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2461. * Get the object's timezone
  2462. * @link https://www.php.net/manual/en/intlcalendar.gettimezone.php
  2463. * @return IntlTimeZone
  2464. * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone} object corresponding to the one used
  2465. * internally in this object.
  2466. */
  2467. public function getTimeZone() { }
  2468. /**
  2469. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2470. * Get the calendar type
  2471. * @link https://www.php.net/manual/en/intlcalendar.gettype.php
  2472. * @return string
  2473. * A {@link https://www.php.net/manual/en/language.types.string.php string} representing the calendar type, such as
  2474. * <em>'gregorian'</em>, <em>'islamic'</em>, etc.
  2475. */
  2476. public function getType() { }
  2477. /**
  2478. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2479. * Get time of the day at which weekend begins or ends
  2480. * @link https://www.php.net/manual/en/intlcalendar.getweekendtransition.php
  2481. * @param string $dayOfWeek <p>
  2482. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  2483. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  2484. * <b>IntlCalendar::DOW_SATURDAY</b>.
  2485. * </p>
  2486. * @return int
  2487. * The number of milliseconds into the day at which the the weekend begins or
  2488. * ends or <b>FALSE</b> on failure.
  2489. */
  2490. public function getWeekendTransition($dayOfWeek) { }
  2491. /**
  2492. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2493. * Whether the object's time is in Daylight Savings Time
  2494. * @link https://www.php.net/manual/en/intlcalendar.indaylighttime.php
  2495. * @return bool
  2496. * Returns <b>TRUE</b> if the date is in Daylight Savings Time, <b>FALSE</b> otherwise.
  2497. * The value <b>FALSE</b> may also be returned on failure, for instance after
  2498. * specifying invalid field values on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query
  2499. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.
  2500. */
  2501. public function inDaylightTime() { }
  2502. /**
  2503. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2504. * Whether another calendar is equal but for a different time
  2505. * @link https://www.php.net/manual/en/intlcalendar.isequivalentto.php
  2506. * @param IntlCalendar $calendar The other calendar against which the comparison is to be made.
  2507. * @return bool
  2508. * Assuming there are no argument errors, returns <b>TRUE</b> iif the calendars are equivalent except possibly for their set time.
  2509. */
  2510. public function isEquivalentTo(IntlCalendar $calendar) { }
  2511. /**
  2512. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2513. * Whether date/time interpretation is in lenient mode
  2514. * @link https://www.php.net/manual/en/intlcalendar.islenient.php
  2515. * @return bool
  2516. * A {@link https://www.php.net/manual/en/language.types.boolean.php bool} representing whether the calendar is set to lenient mode.
  2517. */
  2518. public function isLenient() { }
  2519. /**
  2520. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2521. * Whether a certain date/time is in the weekend
  2522. * @link https://www.php.net/manual/en/intlcalendar.isweekend.php
  2523. * @param float|null $date [optional] <p>
  2524. * An optional timestamp representing the number of milliseconds since the
  2525. * epoch, excluding leap seconds. If <b>NULL</b>, this object's current time is
  2526. * used instead.
  2527. * </p>
  2528. * @return bool
  2529. * <p> A {@link https://www.php.net/manual/en/language.types.boolean.php bool} indicating whether the given or this object's time occurs
  2530. * in a weekend.
  2531. * </p>
  2532. * <p>
  2533. * The value <b>FALSE</b> may also be returned on failure, for instance after giving
  2534. * a date out of bounds on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query
  2535. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.</p>
  2536. */
  2537. public function isWeekend($date = null) { }
  2538. /**
  2539. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2540. * Add value to field without carrying into more significant fields
  2541. * @link https://www.php.net/manual/en/intlcalendar.roll.php
  2542. * @param int $field
  2543. * <p>One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time
  2544. * {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2545. * values between <em>0</em> and
  2546. * <b>IntlCalendar::FIELD_COUNT</b>.
  2547. * </p>
  2548. * @param mixed $amountOrUpOrDown <p>
  2549. * The (signed) amount to add to the field, <b>TRUE</b> for rolling up (adding
  2550. * <em>1</em>), or <b>FALSE</b> for rolling down (subtracting
  2551. * <em>1</em>).
  2552. * </p>
  2553. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  2554. */
  2555. public function roll($field, $amountOrUpOrDown) { }
  2556. /**
  2557. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2558. * Whether a field is set
  2559. * @link https://www.php.net/manual/en/intlcalendar.isset.php
  2560. * @param int $field <p>
  2561. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time
  2562. * {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}.
  2563. * These are integer values between <em>0</em> and
  2564. * <b>IntlCalendar::FIELD_COUNT</b>.
  2565. * </p>
  2566. * @return bool Assuming there are no argument errors, returns <b>TRUE</b> iif the field is set.
  2567. */
  2568. public function PS_UNRESERVE_PREFIX_isSet($field) { }
  2569. /**
  2570. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2571. * Set a time field or several common fields at once
  2572. * @link https://www.php.net/manual/en/intlcalendar.set.php
  2573. * @param int $year <p>
  2574. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  2575. * values between <em>0</em> and
  2576. * <b>IntlCalendar::FIELD_COUNT</b>.
  2577. * </p>
  2578. * @param int $month <p>
  2579. * The new value for <b>IntlCalendar::FIELD_MONTH</b>.
  2580. * </p>
  2581. * @param int $dayOfMonth [optional] <p>
  2582. * The new value for <b>IntlCalendar::FIELD_DAY_OF_MONTH</b>.
  2583. * The month sequence is zero-based, i.e., January is represented by 0,
  2584. * February by 1, ..., December is 11 and Undecember (if the calendar has
  2585. * it) is 12.
  2586. * </p>
  2587. * @param int $hour [optional]
  2588. * <p>
  2589. * The new value for <b>IntlCalendar::FIELD_HOUR_OF_DAY</b>.
  2590. * </p>
  2591. * @param int $minute [optional]
  2592. * <p>
  2593. * The new value for <b>IntlCalendar::FIELD_MINUTE</b>.
  2594. * </p>
  2595. * @param int $second [optional] <p>
  2596. * The new value for <b>IntlCalendar::FIELD_SECOND</b>.
  2597. *</p>
  2598. * @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  2599. */
  2600. public function set($year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { }
  2601. /**
  2602. * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
  2603. * Set a time field or several common fields at once
  2604. * @link https://www.php.net/manual/en/intlcalendar.set.php
  2605. * @param int $field One of the IntlCalendar date/time field constants. These are integer values between 0 and IntlCalendar::FIELD_COUNT.
  2606. * @param int $value The new value of the given field.
  2607. * @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  2608. * @since 5.5
  2609. */
  2610. public function set($field, $value) { }
  2611. /**
  2612. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2613. * Set the day on which the week is deemed to start
  2614. * @link https://www.php.net/manual/en/intlcalendar.setfirstdayofweek.php
  2615. * @param int $dayOfWeek <p>
  2616. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  2617. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  2618. * <b>IntlCalendar::DOW_SATURDAY</b>.
  2619. * </p>
  2620. * @return bool Returns TRUE on success. Failure can only happen due to invalid parameters.
  2621. */
  2622. public function setFirstDayOfWeek($dayOfWeek) { }
  2623. /**
  2624. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2625. * Set whether date/time interpretation is to be lenient
  2626. * @link https://www.php.net/manual/en/intlcalendar.setlenient.php
  2627. * @param string $isLenient <p>
  2628. * Use <b>TRUE</b> to activate the lenient mode; <b>FALSE</b> otherwise.
  2629. * </p>
  2630. * @return bool Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
  2631. */
  2632. public function setLenient($isLenient) { }
  2633. /**
  2634. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2635. * Set behavior for handling repeating wall times at negative timezone offset transitions
  2636. * @link https://www.php.net/manual/en/intlcalendar.setrepeatedwalltimeoption.php
  2637. * @param int $wallTimeOption <p>
  2638. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b> or
  2639. * <b>IntlCalendar::WALLTIME_LAST</b>.
  2640. * </p>
  2641. * @return bool
  2642. * Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
  2643. *
  2644. */
  2645. public function setRepeatedWallTimeOption($wallTimeOption) { }
  2646. /**
  2647. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2648. * Set behavior for handling skipped wall times at positive timezone offset transitions
  2649. * @link https://www.php.net/manual/en/intlcalendar.setskippedwalltimeoption.php
  2650. * @param int $wallTimeOption <p>
  2651. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b>,
  2652. * <b>IntlCalendar::WALLTIME_LAST</b> or
  2653. * <b>IntlCalendar::WALLTIME_NEXT_VALID</b>.
  2654. * </p>
  2655. * @return bool
  2656. * <p>
  2657. * Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
  2658. * </p>
  2659. */
  2660. public function setSkippedWallTimeOption($wallTimeOption) { }
  2661. /**
  2662. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2663. * Set the calendar time in milliseconds since the epoch
  2664. * @link https://www.php.net/manual/en/intlcalendar.settime.php
  2665. * @param float $date <p>
  2666. * An instant represented by the number of number of milliseconds between
  2667. * such instant and the epoch, ignoring leap seconds.
  2668. * </p>
  2669. * @return bool
  2670. * Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  2671. */
  2672. public function setTime($date) { }
  2673. /**
  2674. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2675. * Set the timezone used by this calendar
  2676. * @link https://www.php.net/manual/en/intlcalendar.settimezone.php
  2677. * @param mixed $timeZone <p>
  2678. * The new timezone to be used by this calendar. It can be specified in the
  2679. * following ways:
  2680. *
  2681. * </p><ul>
  2682. * <li>
  2683. * <p>
  2684. * <b>NULL</b>, in which case the default timezone will be used, as specified in
  2685. * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or
  2686. * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as
  2687. * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}.
  2688. * </p>
  2689. * </li>
  2690. * <li>
  2691. * <p>
  2692. * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly.
  2693. * </p>
  2694. * </li>
  2695. * <li>
  2696. * <p>
  2697. * A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted
  2698. * and an ICU timezone object will be created; the timezone will be backed
  2699. * by ICU's database, not PHP's.
  2700. * </p>
  2701. * </li>
  2702. * <li>
  2703. * <p>
  2704. * A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier.
  2705. * See b>IntlTimeZone::createTimeZoneIDEnumeration()</b>. Raw
  2706. * offsets such as <em>"GMT+08:30"</em> are also accepted.
  2707. * </p>
  2708. * </li>
  2709. * </ul>
  2710. * @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  2711. */
  2712. public function setTimeZone($timeZone) { }
  2713. /**
  2714. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a2)<br/>
  2715. * Convert an IntlCalendar into a DateTime object
  2716. * @link https://www.php.net/manual/en/intlcalendar.todatetime.php
  2717. * @return DateTime|false
  2718. * A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object with the same timezone as this
  2719. * object (though using PHP's database instead of ICU's) and the same time,
  2720. * except for the smaller precision (second precision instead of millisecond).
  2721. * Returns <b>FALSE</b> on failure.
  2722. */
  2723. public function toDateTime() { }
  2724. }
  2725. /**
  2726. * @since 5.5
  2727. */
  2728. class IntlIterator implements Iterator {
  2729. public function current() { }
  2730. public function key() { }
  2731. public function next() { }
  2732. public function rewind() { }
  2733. public function valid() { }
  2734. }
  2735. /**
  2736. * @since 5.5
  2737. */
  2738. class IntlException extends Exception {
  2739. }
  2740. /**
  2741. * @since 5.5
  2742. */
  2743. class IntlTimeZone {
  2744. /* Constants */
  2745. const DISPLAY_SHORT = 1;
  2746. const DISPLAY_LONG = 2;
  2747. /* Methods */
  2748. /**
  2749. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2750. * Get the number of IDs in the equivalency group that includes the given ID
  2751. * @link https://www.php.net/manual/en/intltimezone.countequivalentids.php
  2752. * @param string $zoneId
  2753. * @return int|false number of IDs or <b>FALSE</b> on failure
  2754. */
  2755. public static function countEquivalentIDs($zoneId) { }
  2756. /**
  2757. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2758. * Create a new copy of the default timezone for this host
  2759. * @link https://www.php.net/manual/en/intltimezone.createdefault.php
  2760. * @return IntlTimeZone
  2761. */
  2762. public static function createDefault() { }
  2763. /**
  2764. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2765. * Get an enumeration over time zone IDs associated with the given country or offset
  2766. * @link https://www.php.net/manual/en/intltimezone.createenumeration.php
  2767. * @param mixed $countryOrRawOffset [optional]
  2768. * @return IntlIterator|false an iterator or <b>FALSE</b> on failure
  2769. */
  2770. public static function createEnumeration($countryOrRawOffset) { }
  2771. /**
  2772. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2773. * Create a timezone object for the given ID
  2774. * @link https://www.php.net/manual/en/intltimezone.createtimezone.php
  2775. * @param string $zoneId
  2776. * @return IntlTimeZone|null a timezone object or <b>NULL</b> on failure
  2777. */
  2778. public static function createTimeZone($zoneId) { }
  2779. /**
  2780. * (PHP 5 &gt;=5.5.0)<br/>
  2781. * Get an enumeration over system time zone IDs with the given filter conditions
  2782. * @link https://www.php.net/manual/en/intltimezone.createtimezoneidenumeration.php
  2783. * @param int $zoneType
  2784. * @param string|null $region [optional]
  2785. * @param int $rawOffset [optional]
  2786. * @return IntlIterator|false an iterator or <b>FALSE</b> on failure
  2787. */
  2788. public static function createTimeZoneIDEnumeration($zoneType, $region = null, $rawOffset = 0) { }
  2789. /**
  2790. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2791. * Create a timezone object from DateTimeZone
  2792. * @link https://www.php.net/manual/en/intltimezone.fromdatetimezone.php
  2793. * @param DateTimeZone $zoneId
  2794. * @return IntlTimeZone|null a timezone object or <b>NULL</b> on failure
  2795. */
  2796. public static function fromDateTimeZone($zoneId) { }
  2797. /**
  2798. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2799. * Get the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID
  2800. * @link https://www.php.net/manual/en/intltimezone.getcanonicalid.php
  2801. * @param string $zoneId
  2802. * @param bool $isSystemID [optional]
  2803. * @return string|false the timezone ID or <b>FALSE</b> on failure
  2804. */
  2805. public static function getCanonicalID($zoneId, &$isSystemID) { }
  2806. /**
  2807. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2808. * Get a name of this time zone suitable for presentation to the user
  2809. * @param bool $isDaylight [optional]
  2810. * @param int $style [optional]
  2811. * @param string $locale [optional]
  2812. * @return string|false the timezone name or <b>FALSE</b> on failure
  2813. */
  2814. public function getDisplayName($isDaylight, $style, $locale) { }
  2815. /**
  2816. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2817. * Get the amount of time to be added to local standard time to get local wall clock time
  2818. * @link https://www.php.net/manual/en/intltimezone.getequivalentid.php
  2819. * @return int
  2820. */
  2821. public function getDSTSavings() { }
  2822. /**
  2823. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2824. * Get an ID in the equivalency group that includes the given ID
  2825. * @link https://www.php.net/manual/en/intltimezone.getequivalentid.php
  2826. * @param string $zoneId
  2827. * @param int $index
  2828. * @return string|false the time zone ID or <b>FALSE</b> on failure
  2829. */
  2830. public static function getEquivalentID($zoneId, $index) { }
  2831. /**
  2832. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2833. * Get last error code on the object
  2834. * @link https://www.php.net/manual/en/intltimezone.geterrorcode.php
  2835. * @return int
  2836. */
  2837. public function getErrorCode() { }
  2838. /**
  2839. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2840. * Get last error message on the object
  2841. * @link https://www.php.net/manual/en/intltimezone.geterrormessage.php
  2842. * @return string
  2843. */
  2844. public function getErrorMessage() { }
  2845. /**
  2846. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2847. * Create GMT (UTC) timezone
  2848. * @link https://www.php.net/manual/en/intltimezone.getgmt.php
  2849. * @return IntlTimeZone
  2850. */
  2851. public static function getGMT() { }
  2852. /**
  2853. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2854. * Get timezone ID
  2855. * @return string
  2856. */
  2857. public function getID() { }
  2858. /**
  2859. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2860. * Get the time zone raw and GMT offset for the given moment in time
  2861. * @link https://www.php.net/manual/en/intltimezone.getoffset.php
  2862. * @param float $date
  2863. * moment in time for which to return offsets, in units of milliseconds from
  2864. * January 1, 1970 0:00 GMT, either GMT time or local wall time, depending on
  2865. * `local'.
  2866. * @param bool $local
  2867. * if true, `date' is local wall time; otherwise it is in GMT time.
  2868. * @param int &$rawOffset
  2869. * output parameter to receive the raw offset, that is, the offset not
  2870. * including DST adjustments
  2871. * @param int &$dstOffset
  2872. * output parameter to receive the DST offset, that is, the offset to be added
  2873. * to `rawOffset' to obtain the total offset between local and GMT time. If
  2874. * DST is not in effect, this value is zero; otherwise it is a positive value,
  2875. * typically one hour.
  2876. * @return bool boolean indication of success
  2877. */
  2878. public function getOffset($date, $local, &$rawOffset, &$dstOffset) { }
  2879. /**
  2880. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2881. * Get the raw GMT offset (before taking daylight savings time into account
  2882. * @link https://www.php.net/manual/en/intltimezone.getrawoffset.php
  2883. * @return int
  2884. */
  2885. public function getRawOffset() { }
  2886. /**
  2887. * (PHP 5 &gt;=5.5.0)<br/>
  2888. * Get the region code associated with the given system time zone ID
  2889. * @link https://www.php.net/manual/en/intltimezone.getregion.php
  2890. * @param string $zoneId
  2891. * @return string|false region or <b>FALSE</b> on failure
  2892. */
  2893. public static function getRegion($zoneId) { }
  2894. /**
  2895. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2896. * Get the timezone data version currently used by ICU
  2897. * @link https://www.php.net/manual/en/intltimezone.gettzdataversion.php
  2898. * @return string
  2899. */
  2900. public static function getTZDataVersion() { }
  2901. /**
  2902. * (PHP 5 &gt;=5.5.0)<br/>
  2903. * Get the "unknown" time zone
  2904. * @link https://www.php.net/manual/en/intltimezone.getunknown.php
  2905. * @return IntlTimeZone
  2906. */
  2907. public static function getUnknown() { }
  2908. /**
  2909. * (PHP 7 &gt;=7.1.0)<br/>
  2910. * Translates a system timezone (e.g. "America/Los_Angeles") into a Windows
  2911. * timezone (e.g. "Pacific Standard Time").
  2912. * @link https://www.php.net/manual/en/intltimezone.getwindowsid.php
  2913. * @param string $timezone
  2914. * @return string|false the Windows timezone or <b>FALSE</b> on failure
  2915. * @since 7.1
  2916. */
  2917. public static function getWindowsID($timezone) { }
  2918. /**
  2919. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2920. * Check if this zone has the same rules and offset as another zone
  2921. * @link https://www.php.net/manual/en/intltimezone.hassamerules.php
  2922. * @param IntlTimeZone $otherTimeZone
  2923. * @return bool
  2924. */
  2925. public function hasSameRules(IntlTimeZone $otherTimeZone) { }
  2926. /**
  2927. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2928. * Convert to DateTimeZone object
  2929. * @link https://www.php.net/manual/ru/intltimezone.todatetimezone.php
  2930. * @return DateTimeZone|false the DateTimeZone object or <b>FALSE</b> on failure
  2931. */
  2932. public function toDateTimeZone() { }
  2933. /**
  2934. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  2935. * Check if this time zone uses daylight savings time
  2936. * @link https://www.php.net/manual/ru/intltimezone.usedaylighttime.php
  2937. * @return bool
  2938. */
  2939. public function useDaylightTime() { }
  2940. }
  2941. /**
  2942. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  2943. * Create a collator
  2944. * @link https://php.net/manual/en/collator.create.php
  2945. * @param string $locale <p>
  2946. * The locale containing the required collation rules. Special values for
  2947. * locales can be passed in - if null is passed for the locale, the
  2948. * default locale collation rules will be used. If empty string ("") or
  2949. * "root" are passed, UCA rules will be used.
  2950. * </p>
  2951. * @return Collator Return new instance of <b>Collator</b> object, or <b>NULL</b>
  2952. * on error.
  2953. */
  2954. function collator_create($locale) { }
  2955. /**
  2956. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  2957. * Compare two Unicode strings
  2958. * @link https://php.net/manual/en/collator.compare.php
  2959. * @param Collator $object
  2960. * @param string $str1 <p>
  2961. * The first string to compare.
  2962. * </p>
  2963. * @param string $str2 <p>
  2964. * The second string to compare.
  2965. * </p>
  2966. * @return int Return comparison result:</p>
  2967. * <p>
  2968. * <p>
  2969. * 1 if <i>str1</i> is greater than
  2970. * <i>str2</i> ;
  2971. * </p>
  2972. * <p>
  2973. * 0 if <i>str1</i> is equal to
  2974. * <i>str2</i>;
  2975. * </p>
  2976. * <p>
  2977. * -1 if <i>str1</i> is less than
  2978. * <i>str2</i> .
  2979. * </p>
  2980. * On error
  2981. * boolean
  2982. * <b>FALSE</b>
  2983. * is returned.
  2984. */
  2985. function collator_compare(Collator $object, $str1, $str2) { }
  2986. /**
  2987. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  2988. * Get collation attribute value
  2989. * @link https://php.net/manual/en/collator.getattribute.php
  2990. * @param Collator $object
  2991. * @param int $attr <p>
  2992. * Attribute to get value for.
  2993. * </p>
  2994. * @return int|false Attribute value, or boolean <b>FALSE</b> on error.
  2995. */
  2996. function collator_get_attribute(Collator $object, $attr) { }
  2997. /**
  2998. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  2999. * Set collation attribute
  3000. * @link https://php.net/manual/en/collator.setattribute.php
  3001. * @param Collator $object
  3002. * @param int $attr <p>Attribute.</p>
  3003. * @param int $val <p>
  3004. * Attribute value.
  3005. * </p>
  3006. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3007. */
  3008. function collator_set_attribute(Collator $object, $attr, $val) { }
  3009. /**
  3010. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3011. * Get current collation strength
  3012. * @link https://php.net/manual/en/collator.getstrength.php
  3013. * @param Collator $object
  3014. * @return int|false current collation strength, or boolean <b>FALSE</b> on error.
  3015. */
  3016. function collator_get_strength(Collator $object) { }
  3017. /**
  3018. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3019. * Set collation strength
  3020. * @link https://php.net/manual/en/collator.setstrength.php
  3021. * @param Collator $object
  3022. * @param int $strength <p>Strength to set.</p>
  3023. * <p>
  3024. * Possible values are:
  3025. * <p>
  3026. * <b>Collator::PRIMARY</b>
  3027. * </p>
  3028. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3029. */
  3030. function collator_set_strength(Collator $object, $strength) { }
  3031. /**
  3032. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3033. * Sort array using specified collator
  3034. * @link https://php.net/manual/en/collator.sort.php
  3035. * @param Collator $object
  3036. * @param array $arr <p>
  3037. * Array of strings to sort.
  3038. * </p>
  3039. * @param int $sort_flag [optional] <p>
  3040. * Optional sorting type, one of the following:
  3041. * </p>
  3042. * <p>
  3043. * <p>
  3044. * <b>Collator::SORT_REGULAR</b>
  3045. * - compare items normally (don't change types)
  3046. * </p>
  3047. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3048. */
  3049. function collator_sort(Collator $object, array &$arr, $sort_flag = null) { }
  3050. /**
  3051. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3052. * Sort array using specified collator and sort keys
  3053. * @link https://php.net/manual/en/collator.sortwithsortkeys.php
  3054. * @param Collator $object
  3055. * @param array $arr <p>Array of strings to sort</p>
  3056. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3057. */
  3058. function collator_sort_with_sort_keys(Collator $object, array &$arr) { }
  3059. /**
  3060. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3061. * Sort array maintaining index association
  3062. * @link https://php.net/manual/en/collator.asort.php
  3063. * @param Collator $object
  3064. * @param array $arr <p>Array of strings to sort.</p>
  3065. * @param int $sort_flag [optional] <p>
  3066. * Optional sorting type, one of the following:
  3067. * <p>
  3068. * <b>Collator::SORT_REGULAR</b>
  3069. * - compare items normally (don't change types)
  3070. * </p>
  3071. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3072. */
  3073. function collator_asort(Collator $object, array &$arr, $sort_flag = null) { }
  3074. /**
  3075. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3076. * Get the locale name of the collator
  3077. * @link https://php.net/manual/en/collator.getlocale.php
  3078. * @param Collator $object
  3079. * @param int $type [optional] <p>
  3080. * You can choose between valid and actual locale (
  3081. * <b>Locale::VALID_LOCALE</b> and
  3082. * <b>Locale::ACTUAL_LOCALE</b>,
  3083. * respectively). The default is the actual locale.
  3084. * </p>
  3085. * @return string Real locale name from which the collation data comes. If the collator was
  3086. * instantiated from rules or an error occurred, returns
  3087. * boolean <b>FALSE</b>.
  3088. */
  3089. function collator_get_locale(Collator $object, $type = null) { }
  3090. /**
  3091. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3092. * Get collator's last error code
  3093. * @link https://php.net/manual/en/collator.geterrorcode.php
  3094. * @param Collator $object
  3095. * @return int Error code returned by the last Collator API function call.
  3096. */
  3097. function collator_get_error_code(Collator $object) { }
  3098. /**
  3099. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3100. * Get text for collator's last error code
  3101. * @link https://php.net/manual/en/collator.geterrormessage.php
  3102. * @param Collator $object
  3103. * @return string Description of an error occurred in the last Collator API function call.
  3104. */
  3105. function collator_get_error_message(Collator $object) { }
  3106. /**
  3107. * (No version information available, might only be in SVN)<br/>
  3108. * Get sorting key for a string
  3109. * @link https://php.net/manual/en/collator.getsortkey.php
  3110. * @param Collator $object
  3111. * @param string $str <p>
  3112. * The string to produce the key from.
  3113. * </p>
  3114. * @return string the collation key for the string. Collation keys can be compared directly instead of strings.
  3115. */
  3116. function collator_get_sort_key(Collator $object, $str) { }
  3117. /**
  3118. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3119. * Create a number formatter
  3120. * @link https://php.net/manual/en/numberformatter.create.php
  3121. * @param string $locale <p>
  3122. * Locale in which the number would be formatted (locale name, e.g. en_CA).
  3123. * </p>
  3124. * @param int $style <p>
  3125. * Style of the formatting, one of the
  3126. * format style constants. If
  3127. * <b>NumberFormatter::PATTERN_DECIMAL</b>
  3128. * or <b>NumberFormatter::PATTERN_RULEBASED</b>
  3129. * is passed then the number format is opened using the given pattern,
  3130. * which must conform to the syntax described in
  3131. * ICU DecimalFormat
  3132. * documentation or
  3133. * ICU RuleBasedNumberFormat
  3134. * documentation, respectively.
  3135. * </p>
  3136. * @param string $pattern [optional] <p>
  3137. * Pattern string if the chosen style requires a pattern.
  3138. * </p>
  3139. * @return NumberFormatter|false <b>NumberFormatter</b> object or <b>FALSE</b> on error.
  3140. */
  3141. function numfmt_create($locale, $style, $pattern = null) { }
  3142. /**
  3143. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3144. * Format a number
  3145. * @link https://php.net/manual/en/numberformatter.format.php
  3146. * @param NumberFormatter $fmt
  3147. * @param int|float $value <p>
  3148. * The value to format. Can be integer or float,
  3149. * other values will be converted to a numeric value.
  3150. * </p>
  3151. * @param int $type [optional] <p>
  3152. * The
  3153. * formatting type to use.
  3154. * </p>
  3155. * @return string|false the string containing formatted value, or <b>FALSE</b> on error.
  3156. */
  3157. function numfmt_format(NumberFormatter $fmt, $value, $type = null) { }
  3158. /**
  3159. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3160. * Parse a number
  3161. * @link https://php.net/manual/en/numberformatter.parse.php
  3162. * @param NumberFormatter $fmt
  3163. * @param string $value
  3164. * @param int $type [optional] <p>
  3165. * The
  3166. * formatting type to use. By default,
  3167. * <b>NumberFormatter::TYPE_DOUBLE</b> is used.
  3168. * </p>
  3169. * @param int $position [optional] <p>
  3170. * Offset in the string at which to begin parsing. On return, this value
  3171. * will hold the offset at which parsing ended.
  3172. * </p>
  3173. * @return mixed The value of the parsed number or <b>FALSE</b> on error.
  3174. */
  3175. function numfmt_parse(NumberFormatter $fmt, $value, $type = null, &$position = null) { }
  3176. /**
  3177. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3178. * Format a currency value
  3179. * @link https://php.net/manual/en/numberformatter.formatcurrency.php
  3180. * @param NumberFormatter $fmt
  3181. * @param float $value <p>
  3182. * The numeric currency value.
  3183. * </p>
  3184. * @param string $currency <p>
  3185. * The 3-letter ISO 4217 currency code indicating the currency to use.
  3186. * </p>
  3187. * @return string String representing the formatted currency value.
  3188. */
  3189. function numfmt_format_currency(NumberFormatter $fmt, $value, $currency) { }
  3190. /**
  3191. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3192. * Parse a currency number
  3193. * @link https://php.net/manual/en/numberformatter.parsecurrency.php
  3194. * @param NumberFormatter $fmt
  3195. * @param string $value
  3196. * @param string $currency <p>
  3197. * Parameter to receive the currency name (3-letter ISO 4217 currency
  3198. * code).
  3199. * </p>
  3200. * @param int $position [optional] <p>
  3201. * Offset in the string at which to begin parsing. On return, this value
  3202. * will hold the offset at which parsing ended.
  3203. * </p>
  3204. * @return float|false The parsed numeric value or <b>FALSE</b> on error.
  3205. */
  3206. function numfmt_parse_currency(NumberFormatter $fmt, $value, &$currency, &$position = null) { }
  3207. /**
  3208. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3209. * Set an attribute
  3210. * @link https://php.net/manual/en/numberformatter.setattribute.php
  3211. * @param NumberFormatter $fmt
  3212. * @param int $attr <p>
  3213. * Attribute specifier - one of the
  3214. * numeric attribute constants.
  3215. * </p>
  3216. * @param int $value <p>
  3217. * The attribute value.
  3218. * </p>
  3219. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3220. */
  3221. function numfmt_set_attribute(NumberFormatter $fmt, $attr, $value) { }
  3222. /**
  3223. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3224. * Get an attribute
  3225. * @link https://php.net/manual/en/numberformatter.getattribute.php
  3226. * @param NumberFormatter $fmt
  3227. * @param int $attr <p>
  3228. * Attribute specifier - one of the
  3229. * numeric attribute constants.
  3230. * </p>
  3231. * @return int|false Return attribute value on success, or <b>FALSE</b> on error.
  3232. */
  3233. function numfmt_get_attribute(NumberFormatter $fmt, $attr) { }
  3234. /**
  3235. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3236. * Set a text attribute
  3237. * @link https://php.net/manual/en/numberformatter.settextattribute.php
  3238. * @param NumberFormatter $fmt
  3239. * @param int $attr <p>
  3240. * Attribute specifier - one of the
  3241. * text attribute
  3242. * constants.
  3243. * </p>
  3244. * @param string $value <p>
  3245. * Text for the attribute value.
  3246. * </p>
  3247. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3248. */
  3249. function numfmt_set_text_attribute(NumberFormatter $fmt, $attr, $value) { }
  3250. /**
  3251. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3252. * Get a text attribute
  3253. * @link https://php.net/manual/en/numberformatter.gettextattribute.php
  3254. * @param NumberFormatter $fmt
  3255. * @param int $attr <p>
  3256. * Attribute specifier - one of the
  3257. * text attribute constants.
  3258. * </p>
  3259. * @return string|false Return attribute value on success, or <b>FALSE</b> on error.
  3260. */
  3261. function numfmt_get_text_attribute(NumberFormatter $fmt, $attr) { }
  3262. /**
  3263. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3264. * Set a symbol value
  3265. * @link https://php.net/manual/en/numberformatter.setsymbol.php
  3266. * @param NumberFormatter $fmt
  3267. * @param int $attr <p>
  3268. * Symbol specifier, one of the
  3269. * format symbol constants.
  3270. * </p>
  3271. * @param string $value <p>
  3272. * Text for the symbol.
  3273. * </p>
  3274. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3275. */
  3276. function numfmt_set_symbol(NumberFormatter $fmt, $attr, $value) { }
  3277. /**
  3278. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3279. * Get a symbol value
  3280. * @link https://php.net/manual/en/numberformatter.getsymbol.php
  3281. * @param NumberFormatter $fmt
  3282. * @param int $attr <p>
  3283. * Symbol specifier, one of the
  3284. * format symbol constants.
  3285. * </p>
  3286. * @return string|false The symbol string or <b>FALSE</b> on error.
  3287. */
  3288. function numfmt_get_symbol(NumberFormatter $fmt, $attr) { }
  3289. /**
  3290. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3291. * Set formatter pattern
  3292. * @link https://php.net/manual/en/numberformatter.setpattern.php
  3293. * @param NumberFormatter $fmt
  3294. * @param string $pattern <p>
  3295. * Pattern in syntax described in
  3296. * ICU DecimalFormat
  3297. * documentation.
  3298. * </p>
  3299. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3300. */
  3301. function numfmt_set_pattern(NumberFormatter $fmt, $pattern) { }
  3302. /**
  3303. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3304. * Get formatter pattern
  3305. * @link https://php.net/manual/en/numberformatter.getpattern.php
  3306. * @param NumberFormatter $fmt
  3307. * @param $nf
  3308. * @return string|false Pattern string that is used by the formatter, or <b>FALSE</b> if an error happens.
  3309. */
  3310. function numfmt_get_pattern(NumberFormatter $fmt, $nf) { }
  3311. /**
  3312. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3313. * Get formatter locale
  3314. * @link https://php.net/manual/en/numberformatter.getlocale.php
  3315. * @param NumberFormatter $fmt
  3316. * @param int $type [optional] <p>
  3317. * You can choose between valid and actual locale (
  3318. * <b>Locale::VALID_LOCALE</b>,
  3319. * <b>Locale::ACTUAL_LOCALE</b>,
  3320. * respectively). The default is the actual locale.
  3321. * </p>
  3322. * @return string The locale name used to create the formatter.
  3323. */
  3324. function numfmt_get_locale(NumberFormatter $fmt, $type = null) { }
  3325. /**
  3326. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3327. * Get formatter's last error code.
  3328. * @link https://php.net/manual/en/numberformatter.geterrorcode.php
  3329. * @param NumberFormatter $fmt
  3330. * @param $nf
  3331. * @return int error code from last formatter call.
  3332. */
  3333. function numfmt_get_error_code(NumberFormatter $fmt, $nf) { }
  3334. /**
  3335. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3336. * Get formatter's last error message.
  3337. * @link https://php.net/manual/en/numberformatter.geterrormessage.php
  3338. * @param NumberFormatter $fmt
  3339. * @param $nf
  3340. * @return string error message from last formatter call.
  3341. */
  3342. function numfmt_get_error_message(NumberFormatter $fmt, $nf) { }
  3343. /**
  3344. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3345. * Normalizes the input provided and returns the normalized string
  3346. * @link https://php.net/manual/en/normalizer.normalize.php
  3347. * @param string $input <p>The input string to normalize</p>
  3348. * @param string $form [optional] <p>One of the normalization forms.</p>
  3349. * @return string The normalized string or <b>NULL</b> if an error occurred.
  3350. */
  3351. function normalizer_normalize($input, $form = Normalizer::FORM_C) { }
  3352. /**
  3353. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3354. * Checks if the provided string is already in the specified normalization
  3355. form.
  3356. * @link https://php.net/manual/en/normalizer.isnormalized.php
  3357. * @param string $input <p>The input string to normalize</p>
  3358. * @param string $form [optional] <p>
  3359. * One of the normalization forms.
  3360. * </p>
  3361. * @return bool <b>TRUE</b> if normalized, <b>FALSE</b> otherwise or if there an error
  3362. */
  3363. function normalizer_is_normalized($input, $form = Normalizer::FORM_C) { }
  3364. /**
  3365. * Get the default Locale
  3366. * @link https://php.net/manual/en/function.locale-get-default.php
  3367. * @return string a string with the current Locale.
  3368. */
  3369. function locale_get_default() { }
  3370. /**
  3371. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3372. * Set the default Locale
  3373. * @link https://php.net/manual/en/function.locale-set-default.php
  3374. * @param string $name <p>
  3375. * The new Locale name. A comprehensive list of the supported locales is
  3376. * available at .
  3377. * </p>
  3378. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3379. */
  3380. function locale_set_default($name) { }
  3381. /**
  3382. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3383. * Gets the primary language for the input locale
  3384. * @link https://php.net/manual/en/locale.getprimarylanguage.php
  3385. * @param string $locale <p>
  3386. * The locale to extract the primary language code from
  3387. * </p>
  3388. * @return string The language code associated with the language or <b>NULL</b> in case of error.
  3389. */
  3390. function locale_get_primary_language($locale) { }
  3391. /**
  3392. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3393. * Gets the script for the input locale
  3394. * @link https://php.net/manual/en/locale.getscript.php
  3395. * @param string $locale <p>
  3396. * The locale to extract the script code from
  3397. * </p>
  3398. * @return string The script subtag for the locale or <b>NULL</b> if not present
  3399. */
  3400. function locale_get_script($locale) { }
  3401. /**
  3402. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3403. * Gets the region for the input locale
  3404. * @link https://php.net/manual/en/locale.getregion.php
  3405. * @param string $locale <p>
  3406. * The locale to extract the region code from
  3407. * </p>
  3408. * @return string The region subtag for the locale or <b>NULL</b> if not present
  3409. */
  3410. function locale_get_region($locale) { }
  3411. /**
  3412. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3413. * Gets the keywords for the input locale
  3414. * @link https://php.net/manual/en/locale.getkeywords.php
  3415. * @param string $locale <p>
  3416. * The locale to extract the keywords from
  3417. * </p>
  3418. * @return array Associative array containing the keyword-value pairs for this locale
  3419. */
  3420. function locale_get_keywords($locale) { }
  3421. /**
  3422. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3423. * Returns an appropriately localized display name for script of the input locale
  3424. * @link https://php.net/manual/en/locale.getdisplayscript.php
  3425. * @param string $locale <p>
  3426. * The locale to return a display script for
  3427. * </p>
  3428. * @param string $in_locale [optional] <p>
  3429. * Optional format locale to use to display the script name
  3430. * </p>
  3431. * @return string Display name of the script for the $locale in the format appropriate for
  3432. * $in_locale.
  3433. */
  3434. function locale_get_display_script($locale, $in_locale = null) { }
  3435. /**
  3436. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3437. * Returns an appropriately localized display name for region of the input locale
  3438. * @link https://php.net/manual/en/locale.getdisplayregion.php
  3439. * @param string $locale <p>
  3440. * The locale to return a display region for.
  3441. * </p>
  3442. * @param string $in_locale [optional] <p>
  3443. * Optional format locale to use to display the region name
  3444. * </p>
  3445. * @return string display name of the region for the $locale in the format appropriate for
  3446. * $in_locale.
  3447. */
  3448. function locale_get_display_region($locale, $in_locale = null) { }
  3449. /**
  3450. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3451. * Returns an appropriately localized display name for the input locale
  3452. * @link https://php.net/manual/en/locale.getdisplayname.php
  3453. * @param string $locale <p>
  3454. * The locale to return a display name for.
  3455. * </p>
  3456. * @param string $in_locale [optional] <p>optional format locale</p>
  3457. * @return string Display name of the locale in the format appropriate for $in_locale.
  3458. */
  3459. function locale_get_display_name($locale, $in_locale = null) { }
  3460. /**
  3461. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3462. * Returns an appropriately localized display name for language of the inputlocale
  3463. * @link https://php.net/manual/en/locale.getdisplaylanguage.php
  3464. * @param string $locale <p>
  3465. * The locale to return a display language for
  3466. * </p>
  3467. * @param string $in_locale [optional] <p>
  3468. * Optional format locale to use to display the language name
  3469. * </p>
  3470. * @return string display name of the language for the $locale in the format appropriate for
  3471. * $in_locale.
  3472. */
  3473. function locale_get_display_language($locale, $in_locale = null) { }
  3474. /**
  3475. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3476. * Returns an appropriately localized display name for variants of the input locale
  3477. * @link https://php.net/manual/en/locale.getdisplayvariant.php
  3478. * @param string $locale <p>
  3479. * The locale to return a display variant for
  3480. * </p>
  3481. * @param string $in_locale [optional] <p>
  3482. * Optional format locale to use to display the variant name
  3483. * </p>
  3484. * @return string Display name of the variant for the $locale in the format appropriate for
  3485. * $in_locale.
  3486. */
  3487. function locale_get_display_variant($locale, $in_locale = null) { }
  3488. /**
  3489. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3490. * Returns a correctly ordered and delimited locale ID
  3491. * @link https://php.net/manual/en/locale.composelocale.php
  3492. * @param array $subtags <p>
  3493. * an array containing a list of key-value pairs, where the keys identify
  3494. * the particular locale ID subtags, and the values are the associated
  3495. * subtag values.
  3496. * <p>
  3497. * The 'variant' and 'private' subtags can take maximum 15 values
  3498. * whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed
  3499. * with the suffix ranging from 0-14. Hence the keys for the input array
  3500. * can be variant0, variant1, ...,variant14. In the returned locale id,
  3501. * the subtag is ordered by suffix resulting in variant0 followed by
  3502. * variant1 followed by variant2 and so on.
  3503. * </p>
  3504. * <p>
  3505. * The 'variant', 'private' and 'extlang' multiple values can be specified both
  3506. * as array under specific key (e.g. 'variant') and as multiple numbered keys
  3507. * (e.g. 'variant0', 'variant1', etc.).
  3508. * </p>
  3509. * </p>
  3510. * @return string The corresponding locale identifier.
  3511. */
  3512. function locale_compose(array $subtags) { }
  3513. /**
  3514. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3515. * Returns a key-value array of locale ID subtag elements.
  3516. * @link https://php.net/manual/en/locale.parselocale.php
  3517. * @param string $locale <p>
  3518. * The locale to extract the subtag array from. Note: The 'variant' and
  3519. * 'private' subtags can take maximum 15 values whereas 'extlang' can take
  3520. * maximum 3 values.
  3521. * </p>
  3522. * @return array an array containing a list of key-value pairs, where the keys
  3523. * identify the particular locale ID subtags, and the values are the
  3524. * associated subtag values. The array will be ordered as the locale id
  3525. * subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the
  3526. * returned array will have variant0=&gt;varX , variant1=&gt;varY ,
  3527. * variant2=&gt;varZ
  3528. */
  3529. function locale_parse($locale) { }
  3530. /**
  3531. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3532. * Gets the variants for the input locale
  3533. * @link https://php.net/manual/en/locale.getallvariants.php
  3534. * @param string $locale <p>
  3535. * The locale to extract the variants from
  3536. * </p>
  3537. * @return array The array containing the list of all variants subtag for the locale
  3538. * or <b>NULL</b> if not present
  3539. */
  3540. function locale_get_all_variants($locale) { }
  3541. /**
  3542. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3543. * Checks if a language tag filter matches with locale
  3544. * @link https://php.net/manual/en/locale.filtermatches.php
  3545. * @param string $langtag <p>
  3546. * The language tag to check
  3547. * </p>
  3548. * @param string $locale <p>
  3549. * The language range to check against
  3550. * </p>
  3551. * @param bool $canonicalize [optional] <p>
  3552. * If true, the arguments will be converted to canonical form before
  3553. * matching.
  3554. * </p>
  3555. * @return bool <b>TRUE</b> if $locale matches $langtag <b>FALSE</b> otherwise.
  3556. */
  3557. function locale_filter_matches($langtag, $locale, $canonicalize = false) { }
  3558. /**
  3559. * @param $arg1
  3560. */
  3561. function locale_canonicalize($arg1) { }
  3562. /**
  3563. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3564. * Searches the language tag list for the best match to the language
  3565. * @link https://php.net/manual/en/locale.lookup.php
  3566. * @param array $langtag <p>
  3567. * An array containing a list of language tags to compare to
  3568. * <i>locale</i>. Maximum 100 items allowed.
  3569. * </p>
  3570. * @param string $locale <p>
  3571. * The locale to use as the language range when matching.
  3572. * </p>
  3573. * @param bool $canonicalize [optional] <p>
  3574. * If true, the arguments will be converted to canonical form before
  3575. * matching.
  3576. * </p>
  3577. * @param string $default [optional] <p>
  3578. * The locale to use if no match is found.
  3579. * </p>
  3580. * @return string The closest matching language tag or default value.
  3581. */
  3582. function locale_lookup(array $langtag, $locale, $canonicalize = false, $default = null) { }
  3583. /**
  3584. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3585. * Tries to find out best available locale based on HTTP "Accept-Language" header
  3586. * @link https://php.net/manual/en/locale.acceptfromhttp.php
  3587. * @param string $header <p>
  3588. * The string containing the "Accept-Language" header according to format in RFC 2616.
  3589. * </p>
  3590. * @return string The corresponding locale identifier.
  3591. */
  3592. function locale_accept_from_http($header) { }
  3593. /**
  3594. * @param $locale
  3595. * @param $pattern
  3596. */
  3597. function msgfmt_create($locale, $pattern) { }
  3598. /**
  3599. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3600. * Format the message
  3601. * @link https://php.net/manual/en/messageformatter.format.php
  3602. * @param MessageFormatter $fmt
  3603. * @param array $args <p>
  3604. * Arguments to insert into the format string
  3605. * </p>
  3606. * @return string|false The formatted string, or <b>FALSE</b> if an error occurred
  3607. */
  3608. function msgfmt_format(MessageFormatter $fmt, array $args) { }
  3609. /**
  3610. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3611. * Quick format message
  3612. * @link https://php.net/manual/en/messageformatter.formatmessage.php
  3613. * @param string $locale <p>
  3614. * The locale to use for formatting locale-dependent parts
  3615. * </p>
  3616. * @param string $pattern <p>
  3617. * The pattern string to insert things into.
  3618. * The pattern uses an 'apostrophe-friendly' syntax; it is run through
  3619. * umsg_autoQuoteApostrophe
  3620. * before being interpreted.
  3621. * </p>
  3622. * @param array $args <p>
  3623. * The array of values to insert into the format string
  3624. * </p>
  3625. * @return string|false The formatted pattern string or <b>FALSE</b> if an error occurred
  3626. */
  3627. function msgfmt_format_message(string $locale, string $pattern, array $args) { }
  3628. /**
  3629. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3630. * Parse input string according to pattern
  3631. * @link https://php.net/manual/en/messageformatter.parse.php
  3632. * @param MessageFormatter $fmt
  3633. * @param string $value <p>
  3634. * The string to parse
  3635. * </p>
  3636. * @return array|false An array containing the items extracted, or <b>FALSE</b> on error
  3637. */
  3638. function msgfmt_parse(MessageFormatter $fmt, $value) { }
  3639. /**
  3640. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3641. * Quick parse input string
  3642. * @link https://php.net/manual/en/messageformatter.parsemessage.php
  3643. * @param MessageFormatter $fmt
  3644. * @param string $locale <p>
  3645. * The locale to use for parsing locale-dependent parts
  3646. * </p>
  3647. * @param string $pattern <p>
  3648. * The pattern with which to parse the <i>value</i>.
  3649. * </p>
  3650. * @param string $source <p>
  3651. * The string to parse, conforming to the <i>pattern</i>.
  3652. * </p>
  3653. * @return array|false An array containing items extracted, or <b>FALSE</b> on error
  3654. */
  3655. function msgfmt_parse_message(MessageFormatter $fmt, $locale, $pattern, $source) { }
  3656. /**
  3657. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3658. * Set the pattern used by the formatter
  3659. * @link https://php.net/manual/en/messageformatter.setpattern.php
  3660. * @param MessageFormatter $fmt
  3661. * @param string $pattern <p>
  3662. * The pattern string to use in this message formatter.
  3663. * The pattern uses an 'apostrophe-friendly' syntax; it is run through
  3664. * umsg_autoQuoteApostrophe
  3665. * before being interpreted.
  3666. * </p>
  3667. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3668. */
  3669. function msgfmt_set_pattern(MessageFormatter $fmt, $pattern) { }
  3670. /**
  3671. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3672. * Get the pattern used by the formatter
  3673. * @link https://php.net/manual/en/messageformatter.getpattern.php
  3674. * @param MessageFormatter $fmt
  3675. * @param $mf
  3676. * @return string The pattern string for this message formatter
  3677. */
  3678. function msgfmt_get_pattern(MessageFormatter $fmt, $mf) { }
  3679. /**
  3680. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3681. * Get the locale for which the formatter was created.
  3682. * @link https://php.net/manual/en/messageformatter.getlocale.php
  3683. * @param MessageFormatter $fmt
  3684. * @param $mf
  3685. * @return string The locale name
  3686. */
  3687. function msgfmt_get_locale(MessageFormatter $fmt, $mf) { }
  3688. /**
  3689. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3690. * Get the error code from last operation
  3691. * @link https://php.net/manual/en/messageformatter.geterrorcode.php
  3692. * @param MessageFormatter $fmt
  3693. * @param $nf
  3694. * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
  3695. */
  3696. function msgfmt_get_error_code(MessageFormatter $fmt, $nf) { }
  3697. /**
  3698. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3699. * Get the error text from the last operation
  3700. * @link https://php.net/manual/en/messageformatter.geterrormessage.php
  3701. * @param MessageFormatter $fmt
  3702. * @param $coll
  3703. * @return string Description of the last error.
  3704. */
  3705. function msgfmt_get_error_message(MessageFormatter $fmt, $coll) { }
  3706. /**
  3707. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3708. * Create a date formatter
  3709. * @link https://php.net/manual/en/intldateformatter.create.php
  3710. * @param string|null $locale <p>
  3711. * Locale to use when formatting or parsing.
  3712. * </p>
  3713. * @param int $datetype <p>
  3714. * Date type to use (<b>none</b>,
  3715. * <b>short</b>, <b>medium</b>,
  3716. * <b>long</b>, <b>full</b>).
  3717. * This is one of the
  3718. * IntlDateFormatter constants.
  3719. * </p>
  3720. * @param int $timetype <p>
  3721. * Time type to use (<b>none</b>,
  3722. * <b>short</b>, <b>medium</b>,
  3723. * <b>long</b>, <b>full</b>).
  3724. * This is one of the
  3725. * IntlDateFormatter constants.
  3726. * </p>
  3727. * @param string|null $timezone [optional] <p>
  3728. * Time zone ID, default is system default.
  3729. * </p>
  3730. * @param int|null $calendar [optional] <p>
  3731. * Calendar to use for formatting or parsing; default is Gregorian.
  3732. * This is one of the
  3733. * IntlDateFormatter calendar constants.
  3734. * </p>
  3735. * @param string $pattern [optional] <p>
  3736. * Optional pattern to use when formatting or parsing.
  3737. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime.
  3738. * </p>
  3739. * @return IntlDateFormatter
  3740. */
  3741. function datefmt_create($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = '') { }
  3742. /**
  3743. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3744. * Get the datetype used for the IntlDateFormatter
  3745. * @link https://php.net/manual/en/intldateformatter.getdatetype.php
  3746. * @param $mf
  3747. * @return int The current date type value of the formatter.
  3748. */
  3749. function datefmt_get_datetype(MessageFormatter $mf) { }
  3750. /**
  3751. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3752. * Get the timetype used for the IntlDateFormatter
  3753. * @link https://php.net/manual/en/intldateformatter.gettimetype.php
  3754. * @param $mf
  3755. * @return int The current date type value of the formatter.
  3756. */
  3757. function datefmt_get_timetype(MessageFormatter $mf) { }
  3758. /**
  3759. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3760. * Get the calendar used for the IntlDateFormatter
  3761. * @link https://php.net/manual/en/intldateformatter.getcalendar.php
  3762. * @param $mf
  3763. * @return int The calendar being used by the formatter.
  3764. */
  3765. function datefmt_get_calendar(MessageFormatter $mf) { }
  3766. /**
  3767. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3768. * sets the calendar used to the appropriate calendar, which must be
  3769. * @link https://php.net/manual/en/intldateformatter.setcalendar.php
  3770. * @param MessageFormatter $mf
  3771. * @param int $which <p>
  3772. * The calendar to use.
  3773. * Default is <b>IntlDateFormatter::GREGORIAN</b>.
  3774. * </p>
  3775. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3776. */
  3777. function datefmt_set_calendar(MessageFormatter $mf, $which) { }
  3778. /**
  3779. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3780. * Get the locale used by formatter
  3781. * @link https://php.net/manual/en/intldateformatter.getlocale.php
  3782. * @param MessageFormatter $mf
  3783. * @param int $which [optional]
  3784. * @return string|false the locale of this formatter or 'false' if error
  3785. */
  3786. function datefmt_get_locale(MessageFormatter $mf, $which = null) { }
  3787. /**
  3788. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3789. * Get the timezone-id used for the IntlDateFormatter
  3790. * @link https://php.net/manual/en/intldateformatter.gettimezoneid.php
  3791. * @param $mf
  3792. * @return string ID string for the time zone used by this formatter.
  3793. */
  3794. function datefmt_get_timezone_id(MessageFormatter $mf) { }
  3795. /**
  3796. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 3.0.0)<br/>
  3797. * Get copy of formatter's calendar object
  3798. * @link https://www.php.net/manual/en/intldateformatter.getcalendarobject.php
  3799. * @return IntlCalendar A copy of the internal calendar object used by this formatter.
  3800. */
  3801. function datefmt_get_calendar_object() { }
  3802. /**
  3803. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  3804. * Get formatter's timezone
  3805. * @link https://www.php.net/manual/en/intldateformatter.gettimezone.php
  3806. * @return IntlTimeZone|false The associated IntlTimeZone object or FALSE on failure.
  3807. */
  3808. function datefmt_get_timezone() { }
  3809. /**
  3810. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3811. * Sets the time zone to use
  3812. * @link https://php.net/manual/en/intldateformatter.settimezoneid.php
  3813. * @param MessageFormatter $mf
  3814. * @param string $zone <p>
  3815. * The time zone ID string of the time zone to use.
  3816. * If <b>NULL</b> or the empty string, the default time zone for the runtime is used.
  3817. * </p>
  3818. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3819. * @deprecated 5.5 https://www.php.net/manual/en/migration55.deprecated.php
  3820. * @removed 7.0
  3821. */
  3822. function datefmt_set_timezone_id(MessageFormatter $mf, $zone) { }
  3823. /**
  3824. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  3825. * Sets formatter's timezone
  3826. * @link https://php.net/manual/en/intldateformatter.settimezone.php
  3827. * @param MessageFormatter $mf
  3828. * @param mixed $zone <p>
  3829. * The timezone to use for this formatter. This can be specified in the
  3830. * following forms:
  3831. * <ul>
  3832. * <li>
  3833. * <p>
  3834. * <b>NULL</b>, in which case the default timezone will be used, as specified in
  3835. * the ini setting {@link "https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" date.timezone} or
  3836. * through the function {@link "https://www.php.net/manual/en/function.date-default-timezone-set.php" date_default_timezone_set()} and as
  3837. * returned by {@link "https://www.php.net/manual/en/function.date-default-timezone-get.php" date_default_timezone_get()}.
  3838. * </p>
  3839. * </li>
  3840. * <li>
  3841. * <p>
  3842. * An {@link "https://www.php.net/manual/en/class.intltimezone.php" IntlTimeZone}, which will be used directly.
  3843. * </p>
  3844. * </li>
  3845. * <li>
  3846. * <p>
  3847. * A {@link "https://www.php.net/manual/en/class.datetimezone.php" DateTimeZone}. Its identifier will be extracted
  3848. * and an ICU timezone object will be created; the timezone will be backed
  3849. * by ICU's database, not PHP's.
  3850. * </p>
  3851. * </li>
  3852. * <li>
  3853. * <p>
  3854. * A {@link "https://www.php.net/manual/en/language.types.string.php" string}, which should be a valid ICU timezone identifier.
  3855. * See <b>IntlTimeZone::createTimeZoneIDEnumeration()</b>. Raw offsets such as <em>"GMT+08:30"</em> are also accepted.
  3856. * </p>
  3857. * </li>
  3858. * </ul>
  3859. * </p>
  3860. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3861. */
  3862. function datefmt_set_timezone(MessageFormatter $mf, $zone) { }
  3863. /**
  3864. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3865. * Get the pattern used for the IntlDateFormatter
  3866. * @link https://php.net/manual/en/intldateformatter.getpattern.php
  3867. * @param $mf
  3868. * @return string The pattern string being used to format/parse.
  3869. */
  3870. function datefmt_get_pattern(MessageFormatter $mf) { }
  3871. /**
  3872. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3873. * Set the pattern used for the IntlDateFormatter
  3874. * @link https://php.net/manual/en/intldateformatter.setpattern.php
  3875. * @param MessageFormatter $mf
  3876. * @param string $pattern <p>
  3877. * New pattern string to use.
  3878. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime.
  3879. * </p>
  3880. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3881. * Bad formatstrings are usually the cause of the failure.
  3882. */
  3883. function datefmt_set_pattern(MessageFormatter $mf, $pattern) { }
  3884. /**
  3885. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3886. * Get the lenient used for the IntlDateFormatter
  3887. * @link https://php.net/manual/en/intldateformatter.islenient.php
  3888. * @param $mf
  3889. * @return bool <b>TRUE</b> if parser is lenient, <b>FALSE</b> if parser is strict. By default the parser is lenient.
  3890. */
  3891. function datefmt_is_lenient(MessageFormatter $mf) { }
  3892. /**
  3893. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3894. * Set the leniency of the parser
  3895. * @link https://php.net/manual/en/intldateformatter.setlenient.php
  3896. * @param MessageFormatter $mf
  3897. * @param bool $lenient <p>
  3898. * Sets whether the parser is lenient or not, default is <b>TRUE</b> (lenient).
  3899. * </p>
  3900. * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  3901. */
  3902. function datefmt_set_lenient(MessageFormatter $mf, $lenient) { }
  3903. /**
  3904. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3905. * Format the date/time value as a string
  3906. * @link https://php.net/manual/en/intldateformatter.format.php
  3907. * @param MessageFormatter $mf
  3908. * @param mixed $value <p>
  3909. * Value to format. This may be a <b>DateTime</b> object,
  3910. * an integer representing a Unix timestamp value (seconds
  3911. * since epoch, UTC) or an array in the format output by
  3912. * <b>localtime</b>.
  3913. * </p>
  3914. * @return string|false The formatted string or, if an error occurred, <b>FALSE</b>.
  3915. */
  3916. function datefmt_format(MessageFormatter $mf, $value) { }
  3917. /**
  3918. * (PHP 5 &gt;= 5.5.0, PECL intl &gt;= 3.0.0)<br/>
  3919. * Formats an object
  3920. * @link https://www.php.net/manual/en/intldateformatter.formatobject.php
  3921. * @param object $object <p>
  3922. * An object of type IntlCalendar or DateTime. The timezone information in the object will be used.
  3923. * </p>
  3924. * @param mixed $format [optional] <p>
  3925. * How to format the date/time. This can either be an {https://www.php.net/manual/en/language.types.array.php array} with
  3926. * two elements (first the date style, then the time style, these being one
  3927. * of the constants <b>IntlDateFormatter::NONE</b>,
  3928. * <b>IntlDateFormatter::SHORT</b>,
  3929. * <b>IntlDateFormatter::MEDIUM</b>,
  3930. * <b>IntlDateFormatter::LONG</b>,
  3931. * <b>IntlDateFormatter::FULL</b>), a long with
  3932. * the value of one of these constants (in which case it will be used both
  3933. * for the time and the date) or a {@link https://www.php.net/manual/en/language.types.string.php} with the format
  3934. * described in {@link http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details the ICU documentation}
  3935. * documentation. If <b>NULL</b>, the default style will be used.
  3936. * </p>
  3937. * @param string|null $locale [optional] <p>
  3938. * The locale to use, or NULL to use the default one.</p>
  3939. * @return string|false The formatted string or, if an error occurred, <b>FALSE</b>.
  3940. */
  3941. function datefmt_format_object($object, $format = null, $locale = null) { }
  3942. /**
  3943. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3944. * Parse string to a timestamp value
  3945. * @link https://php.net/manual/en/intldateformatter.parse.php
  3946. * @param MessageFormatter $mf
  3947. * @param string $value <p>
  3948. * string to convert to a time
  3949. * </p>
  3950. * @param int $position [optional] <p>
  3951. * Position at which to start the parsing in $value (zero-based).
  3952. * If no error occurs before $value is consumed, $parse_pos will contain -1
  3953. * otherwise it will contain the position at which parsing ended (and the error occurred).
  3954. * This variable will contain the end position if the parse fails.
  3955. * If $parse_pos > strlen($value), the parse fails immediately.
  3956. * </p>
  3957. * @return int timestamp parsed value
  3958. */
  3959. function datefmt_parse(MessageFormatter $mf, $value, &$position = null) { }
  3960. /**
  3961. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3962. * Parse string to a field-based time value
  3963. * @link https://php.net/manual/en/intldateformatter.localtime.php
  3964. * @param MessageFormatter $mf
  3965. * @param string $value <p>
  3966. * string to convert to a time
  3967. * </p>
  3968. * @param int $position [optional] <p>
  3969. * Position at which to start the parsing in $value (zero-based).
  3970. * If no error occurs before $value is consumed, $parse_pos will contain -1
  3971. * otherwise it will contain the position at which parsing ended .
  3972. * If $parse_pos > strlen($value), the parse fails immediately.
  3973. * </p>
  3974. * @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field
  3975. */
  3976. function datefmt_localtime(MessageFormatter $mf, $value, &$position = null) { }
  3977. /**
  3978. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3979. * Get the error code from last operation
  3980. * @link https://php.net/manual/en/intldateformatter.geterrorcode.php
  3981. * @param MessageFormatter $mf
  3982. * @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
  3983. */
  3984. function datefmt_get_error_code(MessageFormatter $mf) { }
  3985. /**
  3986. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3987. * Get the error text from the last operation.
  3988. * @link https://php.net/manual/en/intldateformatter.geterrormessage.php
  3989. * @param MessageFormatter $mf
  3990. * @param $coll
  3991. * @return string Description of the last error.
  3992. */
  3993. function datefmt_get_error_message(MessageFormatter $mf, $coll) { }
  3994. /**
  3995. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  3996. * Get string length in grapheme units
  3997. * @link https://php.net/manual/en/function.grapheme-strlen.php
  3998. * @param string $input <p>
  3999. * The string being measured for length. It must be a valid UTF-8 string.
  4000. * </p>
  4001. * @return int|false|null The length of the string on success, and 0 if the string is empty.
  4002. */
  4003. function grapheme_strlen($input) { }
  4004. /**
  4005. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4006. * Find position (in grapheme units) of first occurrence of a string
  4007. * @link https://php.net/manual/en/function.grapheme-strpos.php
  4008. * @param string $haystack <p>
  4009. * The string to look in. Must be valid UTF-8.
  4010. * </p>
  4011. * @param string $needle <p>
  4012. * The string to look for. Must be valid UTF-8.
  4013. * </p>
  4014. * @param int $offset [optional] <p>
  4015. * The optional $offset parameter allows you to specify where in $haystack to
  4016. * start searching as an offset in grapheme units (not bytes or characters).
  4017. * The position returned is still relative to the beginning of haystack
  4018. * regardless of the value of $offset.
  4019. * </p>
  4020. * @return int|false the position as an integer. If needle is not found, strpos() will return boolean FALSE.
  4021. */
  4022. function grapheme_strpos($haystack, $needle, $offset = 0) { }
  4023. /**
  4024. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4025. * Find position (in grapheme units) of first occurrence of a case-insensitive string
  4026. * @link https://php.net/manual/en/function.grapheme-stripos.php
  4027. * @param string $haystack <p>
  4028. * The string to look in. Must be valid UTF-8.
  4029. * </p>
  4030. * @param string $needle <p>
  4031. * The string to look for. Must be valid UTF-8.
  4032. * </p>
  4033. * @param int $offset [optional] <p>
  4034. * The optional $offset parameter allows you to specify where in haystack to
  4035. * start searching as an offset in grapheme units (not bytes or characters).
  4036. * The position returned is still relative to the beginning of haystack
  4037. * regardless of the value of $offset.
  4038. * </p>
  4039. * @return int|false the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE.
  4040. */
  4041. function grapheme_stripos($haystack, $needle, $offset = 0) { }
  4042. /**
  4043. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4044. * Find position (in grapheme units) of last occurrence of a string
  4045. * @link https://php.net/manual/en/function.grapheme-strrpos.php
  4046. * @param string $haystack <p>
  4047. * The string to look in. Must be valid UTF-8.
  4048. * </p>
  4049. * @param string $needle <p>
  4050. * The string to look for. Must be valid UTF-8.
  4051. * </p>
  4052. * @param int $offset [optional] <p>
  4053. * The optional $offset parameter allows you to specify where in $haystack to
  4054. * start searching as an offset in grapheme units (not bytes or characters).
  4055. * The position returned is still relative to the beginning of haystack
  4056. * regardless of the value of $offset.
  4057. * </p>
  4058. * @return int|false the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE.
  4059. */
  4060. function grapheme_strrpos($haystack, $needle, $offset = 0) { }
  4061. /**
  4062. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4063. * Find position (in grapheme units) of last occurrence of a case-insensitive string
  4064. * @link https://php.net/manual/en/function.grapheme-strripos.php
  4065. * @param string $haystack <p>
  4066. * The string to look in. Must be valid UTF-8.
  4067. * </p>
  4068. * @param string $needle <p>
  4069. * The string to look for. Must be valid UTF-8.
  4070. * </p>
  4071. * @param int $offset [optional] <p>
  4072. * The optional $offset parameter allows you to specify where in $haystack to
  4073. * start searching as an offset in grapheme units (not bytes or characters).
  4074. * The position returned is still relative to the beginning of haystack
  4075. * regardless of the value of $offset.
  4076. * </p>
  4077. * @return int|false the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE.
  4078. */
  4079. function grapheme_strripos($haystack, $needle, $offset = 0) { }
  4080. /**
  4081. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4082. * Return part of a string
  4083. * @link https://php.net/manual/en/function.grapheme-substr.php
  4084. * @param string $string <p>
  4085. * The input string. Must be valid UTF-8.
  4086. * </p>
  4087. * @param int $start <p>
  4088. * Start position in default grapheme units.
  4089. * If $start is non-negative, the returned string will start at the
  4090. * $start'th position in $string, counting from zero. If $start is negative,
  4091. * the returned string will start at the $start'th grapheme unit from the
  4092. * end of string.
  4093. * </p>
  4094. * @param int $length [optional] <p>
  4095. * Length in grapheme units.
  4096. * If $length is given and is positive, the string returned will contain
  4097. * at most $length grapheme units beginning from $start (depending on the
  4098. * length of string). If $length is given and is negative, then
  4099. * that many grapheme units will be omitted from the end of string (after the
  4100. * start position has been calculated when a start is negative). If $start
  4101. * denotes a position beyond this truncation, <b>FALSE</b> will be returned.
  4102. * </p>
  4103. * @return string|false <p>the extracted part of $string,<br />
  4104. or <strong>FALSE</strong> if $length is negative and $start denotes a position beyond truncation $length,<br />
  4105. or also <strong>FALSE</strong> if $start denotes a position beyond $string length</p>
  4106. */
  4107. function grapheme_substr($string, $start, $length = null) { }
  4108. /**
  4109. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4110. * Returns part of haystack string from the first occurrence of needle to the end of haystack.
  4111. * @link https://php.net/manual/en/function.grapheme-strstr.php
  4112. * @param string $haystack <p>
  4113. * The input string. Must be valid UTF-8.
  4114. * </p>
  4115. * @param string $needle <p>
  4116. * The string to look for. Must be valid UTF-8.
  4117. * </p>
  4118. * @param bool $before_needle [optional] <p>
  4119. * If <b>TRUE</b>, grapheme_strstr() returns the part of the
  4120. * haystack before the first occurrence of the needle (excluding the needle).
  4121. * </p>
  4122. * @return string|false the portion of string, or FALSE if needle is not found.
  4123. */
  4124. function grapheme_strstr($haystack, $needle, $before_needle = false) { }
  4125. /**
  4126. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4127. * Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack.
  4128. * @link https://php.net/manual/en/function.grapheme-stristr.php
  4129. * @param string $haystack <p>
  4130. * The input string. Must be valid UTF-8.
  4131. * </p>
  4132. * @param string $needle <p>
  4133. * The string to look for. Must be valid UTF-8.
  4134. * </p>
  4135. * @param bool $before_needle [optional] <p>
  4136. * If <b>TRUE</b>, grapheme_strstr() returns the part of the
  4137. * haystack before the first occurrence of the needle (excluding needle).
  4138. * </p>
  4139. * @return string|false the portion of $haystack, or FALSE if $needle is not found.
  4140. */
  4141. function grapheme_stristr($haystack, $needle, $before_needle = false) { }
  4142. /**
  4143. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  4144. * Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8.
  4145. * @link https://php.net/manual/en/function.grapheme-extract.php
  4146. * @param string $haystack <p>
  4147. * String to search.
  4148. * </p>
  4149. * @param int $size <p>
  4150. * Maximum number items - based on the $extract_type - to return.
  4151. * </p>
  4152. * @param int $extract_type [optional] <p>
  4153. * Defines the type of units referred to by the $size parameter:
  4154. * </p>
  4155. * <p>
  4156. * GRAPHEME_EXTR_COUNT (default) - $size is the number of default
  4157. * grapheme clusters to extract.
  4158. * GRAPHEME_EXTR_MAXBYTES - $size is the maximum number of bytes
  4159. * returned.
  4160. * GRAPHEME_EXTR_MAXCHARS - $size is the maximum number of UTF-8
  4161. * characters returned.
  4162. * </p>
  4163. * @param int $start [optional] <p>
  4164. * Starting position in $haystack in bytes - if given, it must be zero or a
  4165. * positive value that is less than or equal to the length of $haystack in
  4166. * bytes. If $start does not point to the first byte of a UTF-8
  4167. * character, the start position is moved to the next character boundary.
  4168. * </p>
  4169. * @param int $next [optional] <p>
  4170. * Reference to a value that will be set to the next starting position.
  4171. * When the call returns, this may point to the first byte position past the end of the string.
  4172. * </p>
  4173. * @return string|false A string starting at offset $start and ending on a default grapheme cluster
  4174. * boundary that conforms to the $size and $extract_type specified.
  4175. */
  4176. function grapheme_extract($haystack, $size, $extract_type = null, $start = 0, &$next = null) { }
  4177. /**
  4178. * (PHP 5 &gt;= 5.3.0, PHP 7, PECL intl &gt;= 1.0.2, PHP 7, PECL idn &gt;= 0.1)<br/>
  4179. * Convert domain name to IDNA ASCII form.
  4180. * @link https://php.net/manual/en/function.idn-to-ascii.php
  4181. * @param string $domain <p>
  4182. * Domain to convert. In PHP 5 must be UTF-8 encoded.
  4183. * If e.g. an ISO-8859-1 (aka Western Europe latin1) encoded string is
  4184. * passed it will be converted into an ACE encoded "xn--" string.
  4185. * It will not be the one you expected though!
  4186. * </p>
  4187. * @param int $options [optional] <p>
  4188. * Conversion options - combination of IDNA_* constants (except IDNA_ERROR_* constants).
  4189. * </p>
  4190. * @param int $variant [optional] <p>
  4191. * Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46.
  4192. * </p>
  4193. * @param array $idna_info [optional] <p>
  4194. * This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for variant.
  4195. * In that case, it will be filled with an array with the keys 'result',
  4196. * the possibly illegal result of the transformation, 'isTransitionalDifferent',
  4197. * a boolean indicating whether the usage of the transitional mechanisms of UTS #46
  4198. * either has or would have changed the result and 'errors',
  4199. * which is an int representing a bitset of the error constants IDNA_ERROR_*.
  4200. * </p>
  4201. * @return string|false The ACE encoded version of the domain name or <b>FALSE</b> on failure.
  4202. */
  4203. function idn_to_ascii($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, array &$idna_info = null) { }
  4204. /**
  4205. * (PHP 5 &gt;= 5.3.0, PHP 7, PECL intl &gt;= 1.0.2, PHP 7, PECL idn &gt;= 0.1)<br/>
  4206. * Convert domain name from IDNA ASCII to Unicode.
  4207. * @link https://php.net/manual/en/function.idn-to-utf8.php
  4208. * @param string $domain <p>
  4209. * Domain to convert in IDNA ASCII-compatible format.
  4210. * The ASCII encoded domain name. Looks like "xn--..." if the it originally contained non-ASCII characters.
  4211. * </p>
  4212. * @param int $options [optional] <p>
  4213. * Conversion options - combination of IDNA_* constants (except IDNA_ERROR_* constants).
  4214. * </p>
  4215. * @param int $variant [optional] <p>
  4216. * Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46.
  4217. * </p>
  4218. * @param array &$idna_info [optional] <p>
  4219. * This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for variant.
  4220. * In that case, it will be filled with an array with the keys 'result',
  4221. * the possibly illegal result of the transformation, 'isTransitionalDifferent',
  4222. * a boolean indicating whether the usage of the transitional mechanisms of UTS #46
  4223. * either has or would have changed the result and 'errors',
  4224. * which is an int representing a bitset of the error constants IDNA_ERROR_*.
  4225. * </p>
  4226. * @return string|false The UTF-8 encoded version of the domain name or <b>FALSE</b> on failure.
  4227. * RFC 3490 4.2 states though "ToUnicode never fails. If any step fails, then the original input
  4228. * sequence is returned immediately in that step."
  4229. */
  4230. function idn_to_utf8($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, array &$idna_info = null) { }
  4231. /**
  4232. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4233. * Create a new IntlCalendar
  4234. * @link https://www.php.net/manual/en/intlcalendar.createinstance.php
  4235. * @param mixed $timeZone [optional] <p> <p>
  4236. * The timezone to use.
  4237. * </p>
  4238. *
  4239. * <ul>
  4240. * <li>
  4241. * <p>
  4242. * <b>NULL</b>, in which case the default timezone will be used, as specified in
  4243. * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or
  4244. * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as
  4245. * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}.
  4246. * </p>
  4247. * </li>
  4248. * <li>
  4249. * <p>
  4250. * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly.
  4251. * </p>
  4252. * </li>
  4253. * <li>
  4254. * <p>
  4255. * A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted
  4256. * and an ICU timezone object will be created; the timezone will be backed
  4257. * by ICU's database, not PHP's.
  4258. * </p>
  4259. * </li>
  4260. * <li>
  4261. * <p>
  4262. * A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier.
  4263. * See <b>IntlTimeZone::createTimeZoneIDEnumeration()</b>. Raw
  4264. * offsets such as <em>"GMT+08:30"</em> are also accepted.
  4265. * </p>
  4266. * </li>
  4267. * </ul>
  4268. * </p>
  4269. * @param string $locale [optional] <p>
  4270. * A locale to use or <b>NULL</b> to use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.default-locale the default locale}.
  4271. * </p>
  4272. * @return IntlCalendar
  4273. * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} instance or <b>NULL</b> on
  4274. * failure.
  4275. * @since 5.5
  4276. */
  4277. function intlcal_create_instance($timeZone = null, $locale = null) { }
  4278. /**
  4279. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4280. * Get set of locale keyword values
  4281. * @param string $key <p>
  4282. * The locale keyword for which relevant values are to be queried. Only
  4283. * <em>'calendar'</em> is supported.
  4284. * </p>
  4285. * @param string $locale <p>
  4286. * The locale onto which the keyword/value pair are to be appended.
  4287. * </p>
  4288. * @param bool $commonlyUsed
  4289. * <p>
  4290. * Whether to show only the values commonly used for the specified locale.
  4291. * </p>
  4292. * @return Iterator|false An iterator that yields strings with the locale keyword values or <b>FALSE</b> on failure.
  4293. * @since 5.5
  4294. */
  4295. function intlcal_get_keyword_values_for_locale($key, $locale, $commonlyUsed) { }
  4296. /**
  4297. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4298. * Get number representing the current time
  4299. * @link https://www.php.net/manual/en/intlcalendar.getnow.php
  4300. * @return float A float representing a number of milliseconds since the epoch, not counting leap seconds.
  4301. * @since 5.5
  4302. */
  4303. function intlcal_get_now() { }
  4304. /**
  4305. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4306. * Get array of locales for which there is data
  4307. * @link https://www.php.net/manual/en/intlcalendar.getavailablelocales.php
  4308. * @return array An array of strings, one for which locale.
  4309. * @since 5.5
  4310. */
  4311. function intlcal_get_available_locales() { }
  4312. /**
  4313. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4314. * Get the value for a field
  4315. * @link https://www.php.net/manual/en/intlcalendar.get.php
  4316. * @param IntlCalendar $calendar <p>
  4317. * The calendar object, on the procedural style interface.
  4318. * </p>
  4319. * @param int $field <p>
  4320. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4321. * values between <em>0</em> and
  4322. * <b>IntlCalendar::FIELD_COUNT</b>.
  4323. * </p>
  4324. * @return int An integer with the value of the time field.
  4325. * @since 5.5
  4326. */
  4327. function intl_get($calendar, $field) { }
  4328. /**
  4329. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4330. * Get time currently represented by the object
  4331. * @param IntlCalendar $calendar <p>The calendar whose time will be checked against this object's time.</p>
  4332. * @return float
  4333. * A {@link https://www.php.net/manual/en/language.types.float.php float} representing the number of milliseconds elapsed since the
  4334. * reference time (1 Jan 1970 00:00:00 UTC).
  4335. * @since 5.5
  4336. */
  4337. function intlcal_get_time($calendar) { }
  4338. /**
  4339. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4340. * Set the calendar time in milliseconds since the epoch
  4341. * @link https://www.php.net/manual/en/intlcalendar.settime.php
  4342. * @param float $date <p>
  4343. * An instant represented by the number of number of milliseconds between
  4344. * such instant and the epoch, ignoring leap seconds.
  4345. * </p>
  4346. * @return bool
  4347. * Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  4348. * @since 5.5
  4349. */
  4350. function intlcal_set_time($date) { }
  4351. /**
  4352. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4353. * Add a (signed) amount of time to a field
  4354. * @link https://www.php.net/manual/en/intlcalendar.add.php
  4355. * @param IntlCalendar $calendar <p>
  4356. * The calendar object, on the procedural style interface.
  4357. * </p>
  4358. * @param int $field <p>
  4359. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}.
  4360. * These are integer values between <em>0</em> and
  4361. * <b>IntlCalendar::FIELD_COUNT</b>.
  4362. * </p>
  4363. * @param int $amount <p>The signed amount to add to the current field. If the amount is positive, the instant will be moved forward; if it is negative, the instant wil be moved into the past. The unit is implicit to the field type.
  4364. * For instance, hours for IntlCalendar::FIELD_HOUR_OF_DAY.</p>
  4365. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  4366. * @since 5.5
  4367. */
  4368. function intlcal_add($calendar, $field, $amount) { }
  4369. /**
  4370. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4371. * Set the timezone used by this calendar
  4372. * @link https://www.php.net/manual/en/intlcalendar.settimezone.php
  4373. * @param IntlCalendar $calendar <p>
  4374. * The calendar object, on the procedural style interface.
  4375. * </p>
  4376. * @param mixed $timeZone <p>
  4377. * The new timezone to be used by this calendar. It can be specified in the
  4378. * following ways:
  4379. *
  4380. * </p><ul>
  4381. * <li>
  4382. * <p>
  4383. * <b>NULL</b>, in which case the default timezone will be used, as specified in
  4384. * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or
  4385. * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as
  4386. * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}.
  4387. * </p>
  4388. * </li>
  4389. * <li>
  4390. * <p>
  4391. * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly.
  4392. * </p>
  4393. * </li>
  4394. * <li>
  4395. * <p>
  4396. * A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted
  4397. * and an ICU timezone object will be created; the timezone will be backed
  4398. * by ICU's database, not PHP's.
  4399. * </p>
  4400. * </li>
  4401. * <li>
  4402. * <p>
  4403. * A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier.
  4404. * See <b>IntlTimeZone::createTimeZoneIDEnumeration()</b>. Raw
  4405. * offsets such as <em>"GMT+08:30"</em> are also accepted.
  4406. * </p>
  4407. * </li>
  4408. * </ul>
  4409. * @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  4410. * @since 5.5
  4411. */
  4412. function intlcal_set_time_zone($calendar, $timeZone) { }
  4413. /**
  4414. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4415. * Whether this object's time is after that of the passed object
  4416. * https://www.php.net/manual/en/intlcalendar.after.php
  4417. * @param IntlCalendar $calendarObject <p>
  4418. * The calendar object, on the procedural style interface.
  4419. * </p>
  4420. * @param IntlCalendar $calendar <p>The calendar whose time will be checked against this object's time.</p>
  4421. * @return bool
  4422. * Returns <b>TRUE</b> if this object's current time is after that of the
  4423. * <em>calendar</em> argument's time. Returns <b>FALSE</b> otherwise.
  4424. * Also returns <b>FALSE</b> on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or
  4425. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions.
  4426. * @since 5.5
  4427. */
  4428. function intlcal_after(IntlCalendar $calendarObject, IntlCalendar $calendar) { }
  4429. /**
  4430. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4431. * Whether this object's time is before that of the passed object
  4432. * @link https://www.php.net/manual/en/intlcalendar.before.php
  4433. * @param IntlCalendar $calendarObject <p>
  4434. * The calendar object, on the procedural style interface.
  4435. * </p>
  4436. * @param IntlCalendar $calendar <p> The calendar whose time will be checked against this object's time.</p>
  4437. * @return bool
  4438. * Returns <b>TRUE</B> if this object's current time is before that of the
  4439. * <em>calendar</em> argument's time. Returns <b>FALSE</b> otherwise.
  4440. * Also returns <b>FALSE</b> on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or
  4441. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions.
  4442. * </p>
  4443. * @since 5.5
  4444. */
  4445. function intlcal_before(IntlCalendar $calendarObject, IntlCalendar $calendar) { }
  4446. /**
  4447. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4448. * Set a time field or several common fields at once
  4449. * @link https://www.php.net/manual/en/intlcalendar.set.php
  4450. * @param IntlCalendar $calendar <p>
  4451. * The calendar object, on the procedural style interface.
  4452. * </p>
  4453. * @param int $year <p>
  4454. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4455. * values between <em>0</em> and
  4456. * <b>IntlCalendar::FIELD_COUNT</b>.
  4457. * </p>
  4458. * @param int $month <p>
  4459. * The new value for <b>IntlCalendar::FIELD_MONTH</b>.
  4460. * </p>
  4461. * @param int $dayOfMonth [optional] <p>
  4462. * The new value for <b>IntlCalendar::FIELD_DAY_OF_MONTH</b>.
  4463. * The month sequence is zero-based, i.e., January is represented by 0,
  4464. * February by 1, ..., December is 11 and Undecember (if the calendar has
  4465. * it) is 12.
  4466. * </p>
  4467. * @param int $hour [optional]
  4468. * <p>
  4469. * The new value for <b>IntlCalendar::FIELD_HOUR_OF_DAY</b>.
  4470. * </p>
  4471. * @param int $minute [optional]
  4472. * <p>
  4473. * The new value for <b>IntlCalendar::FIELD_MINUTE</b>.
  4474. * </p>
  4475. * @param int $second [optional] <p>
  4476. * The new value for <b>IntlCalendar::FIELD_SECOND</b>.
  4477. *</p>
  4478. * @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
  4479. * @since 5.5
  4480. */
  4481. function intlcal_set($calendar, $year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { }
  4482. /**
  4483. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4484. * Add value to field without carrying into more significant fields
  4485. * @link https://www.php.net/manual/en/intlcalendar.roll.php
  4486. * @param IntlCalendar $calendar <p>
  4487. * The calendar object, on the procedural style interface.
  4488. * </p>
  4489. * @param int $field <p>One of the
  4490. * {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time
  4491. * {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}.
  4492. * These are integer values between <em>0</em> and
  4493. * <b>IntlCalendar::FIELD_COUNT</b>.
  4494. * </p>
  4495. * @param mixed $amountOrUpOrDown <p>
  4496. * The (signed) amount to add to the field, <b>TRUE</b> for rolling up (adding
  4497. * <em>1</em>), or <b>FALSE</b> for rolling down (subtracting
  4498. * <em>1</em>).
  4499. * </p>
  4500. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
  4501. * @since 5.5
  4502. */
  4503. function intlcal_roll($calendar, $field, $amountOrUpOrDown) { }
  4504. /**
  4505. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4506. * Clear a field or all fields
  4507. * @link https://www.php.net/manual/en/intlcalendar.clear.php
  4508. * @param IntlCalendar $calendar <p>
  4509. * The calendar object, on the procedural style interface.
  4510. * </p>
  4511. * @param int $field [optional] <p>
  4512. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4513. * values between <em>0</em> and
  4514. * <b>IntlCalendar::FIELD_COUNT</b>.
  4515. * </p>
  4516. * @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. Failure can only occur is invalid arguments are provided.
  4517. * @since 5.5
  4518. */
  4519. function intlcal_clear($calendar, $field = null) { }
  4520. /**
  4521. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4522. * Calculate difference between given time and this object's time
  4523. * @link https://www.php.net/manual/en/intlcalendar.fielddifference.php
  4524. * @param IntlCalendar $calendar <p>
  4525. * The calendar object, on the procedural style interface.
  4526. * </p>
  4527. * @param float $when <p>
  4528. * The time against which to compare the quantity represented by the
  4529. * <em>field</em>. For the result to be positive, the time
  4530. * given for this parameter must be ahead of the time of the object the
  4531. * method is being invoked on.
  4532. * </p>
  4533. * @param int $field <p>
  4534. * The field that represents the quantity being compared.
  4535. * </p>
  4536. *
  4537. * <p>
  4538. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4539. * values between <em>0</em> and
  4540. * <b>IntlCalendar::FIELD_COUNT</b>.
  4541. * </p>
  4542. * @return int Returns a (signed) difference of time in the unit associated with the
  4543. * specified field or <b>FALSE</b> on failure.
  4544. * @since 5.5
  4545. */
  4546. function intlcal_field_difference($calendar, $when, $field) { }
  4547. /**
  4548. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4549. * The maximum value for a field, considering the object's current time
  4550. * @link https://www.php.net/manual/en/intlcalendar.getactualmaximum.php
  4551. * @param IntlCalendar $calendar <p>
  4552. * The calendar object, on the procedural style interface.
  4553. * </p>
  4554. * @param int $field <p>
  4555. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4556. * values between <em>0</em> and
  4557. * <b>IntlCalendar::FIELD_COUNT</b>.
  4558. * </p>
  4559. * @return int
  4560. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the maximum value in the units associated
  4561. * with the given <em>field</em> or <b>FALSE</b> on failure.
  4562. * @since 5.5
  4563. */
  4564. function intlcal_get_actual_maximum($calendar, $field) { }
  4565. /**
  4566. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4567. * The minimum value for a field, considering the object's current time
  4568. * @link https://www.php.net/manual/en/intlcalendar.getactualminimum.php
  4569. * @param IntlCalendar $calendar <p>
  4570. * The calendar object, on the procedural style interface.
  4571. * </p>
  4572. * @param int $field <p>
  4573. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}.
  4574. * These are integer values between <em>0</em> and
  4575. * <b>IntlCalendar::FIELD_COUNT</b>.
  4576. * </p>
  4577. * @return int
  4578. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the minimum value in the field's
  4579. * unit or <b>FALSE</b> on failure.
  4580. * @since 5.5
  4581. */
  4582. function intlcal_get_actual_minimum($calendar, $field) { }
  4583. /**
  4584. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4585. * @link https://www.php.net/manual/en/intlcalendar.getdayofweektype.php
  4586. * Tell whether a day is a weekday, weekend or a day that has a transition between the two
  4587. * @param IntlCalendar $calendar <p>
  4588. * The calendar object, on the procedural style interface.
  4589. * </p>
  4590. * @param int $dayOfWeek <p>
  4591. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  4592. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  4593. * <b>IntlCalendar::DOW_SATURDAY</b>.
  4594. * </p>
  4595. * @return int
  4596. * Returns one of the constants
  4597. * <b>IntlCalendar::DOW_TYPE_WEEKDAY</b>,
  4598. * <b>IntlCalendar::DOW_TYPE_WEEKEND</b>,
  4599. * <b>IntlCalendar::DOW_TYPE_WEEKEND_OFFSET</b> or
  4600. * <b>IntlCalendar::DOW_TYPE_WEEKEND_CEASE</b> or <b>FALSE</b> on failure.
  4601. * @since 5.5
  4602. */
  4603. function intlcal_get_day_of_week_type($calendar, $dayOfWeek) { }
  4604. /**
  4605. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4606. * Get the first day of the week for the calendar's locale
  4607. * @link https://www.php.net/manual/en/intlcalendar.getfirstdayofweek.php
  4608. * @param IntlCalendar $calendar <p>
  4609. * The calendar object, on the procedural style interface.
  4610. * </p>
  4611. * @return int
  4612. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  4613. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  4614. * <b>IntlCalendar::DOW_SATURDAY</b> or <b>FALSE</b> on failure.
  4615. * @since 5.5
  4616. */
  4617. function intlcal_get_first_day_of_week($calendar) { }
  4618. /**
  4619. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4620. * Get the largest local minimum value for a field
  4621. * @link https://www.php.net/manual/en/intlcalendar.getgreatestminimum.php
  4622. * @param IntlCalendar $calendar <p>
  4623. * The calendar object, on the procedural style interface.
  4624. * </p>
  4625. * @param int $field <p>
  4626. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4627. * values between <em>0</em> and
  4628. * <b>IntlCalendar::FIELD_COUNT</b>.
  4629. * @return int
  4630. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a field value, in the field's
  4631. * unit, or <b>FALSE</b> on failure.
  4632. * @since 5.5
  4633. */
  4634. function intlcal_greates_minimum($calendar, $field) { }
  4635. /**
  4636. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  4637. * Get data from the bundle
  4638. * @link https://php.net/manual/en/resourcebundle.get.php
  4639. * @param IntlCalendar $calendar <p>
  4640. * The calendar object, on the procedural style interface.
  4641. * </p>
  4642. * @param string|int $index <p>
  4643. * Data index, must be string or integer.
  4644. * </p>
  4645. * @return mixed the data located at the index or <b>NULL</b> on error. Strings, integers and binary data strings
  4646. * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are
  4647. * returned as <b>ResourceBundle</b> object.
  4648. */
  4649. function intlcal_get($calendar, $index) { }
  4650. /**
  4651. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4652. * Get the smallest local maximum for a field
  4653. * @link https://www.php.net/manual/en/intlcalendar.getleastmaximum.php
  4654. * @param IntlCalendar $calendar <p>
  4655. * The calendar object, on the procedural style interface.
  4656. * </p>
  4657. * @param int $field <p>
  4658. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4659. * values between <em>0</em> and
  4660. * <b>IntlCalendar::FIELD_COUNT</b>.
  4661. * </p>
  4662. * @return int
  4663. * An {@link https://www.php.net/manual/en/language.types.integer.ph int} representing a field value in the field's
  4664. * unit or <b>FALSE</b> on failure.
  4665. * </p>
  4666. * @since 5.5
  4667. */
  4668. function intlcal_get_least_maximum($calendar, $field) { }
  4669. /**
  4670. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4671. * Get the largest local minimum value for a field
  4672. * @link https://www.php.net/manual/en/intlcalendar.getgreatestminimum.php
  4673. * @param IntlCalendar $calendar <p>
  4674. * The calendar object, on the procedural style interface.
  4675. * </p>
  4676. * @param int $field <p>
  4677. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4678. * values between <em>0</em> and
  4679. * <b>IntlCalendar::FIELD_COUNT</b>.
  4680. * @return int
  4681. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a field value, in the field's
  4682. * unit, or <b>FALSE</b> on failure.
  4683. * @since 5.5
  4684. */
  4685. function intlcal_get_greatest_minimum($calendar, $field) { }
  4686. /**
  4687. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4688. * Get the locale associated with the object
  4689. * @link https://www.php.net/manual/en/intlcalendar.getlocale.php
  4690. * @param IntlCalendar $calendar <p>
  4691. * The calendar object, on the procedural style interface.
  4692. * </p>
  4693. * @param int $localeType <p>
  4694. * Whether to fetch the actual locale (the locale from which the calendar
  4695. * data originates, with <b>Locale::ACTUAL_LOCALE</b>) or the
  4696. * valid locale, i.e., the most specific locale supported by ICU relatively
  4697. * to the requested locale – see <b>Locale::VALID_LOCALE</b>.
  4698. * From the most general to the most specific, the locales are ordered in
  4699. * this fashion – actual locale, valid locale, requested locale.
  4700. * </p>
  4701. * @return string
  4702. * A locale string or <b>FALSE</b> on failure.
  4703. * @since 5.5
  4704. */
  4705. function intlcal_get_locale($calendar, $localeType) { }
  4706. /**
  4707. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4708. * Get the global maximum value for a field
  4709. * @link https://www.php.net/manual/en/intlcalendar.getmaximum.php
  4710. * @param IntlCalendar $calendar <p>
  4711. * The calendar object, on the procedural style interface.
  4712. * </p>
  4713. * @param int $field <p>
  4714. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4715. * values between <em>0</em> and
  4716. * <b>IntlCalendar::FIELD_COUNT</b>.
  4717. * </p>
  4718. * @return string
  4719. * A locale string or <b>FALSE</b> on failure.
  4720. * @since 5.5
  4721. */
  4722. function intcal_get_maximum($calendar, $field) { }
  4723. /**
  4724. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4725. * @link https://www.php.net/manual/en/intlcalendar.getminimaldaysinfirstweek.php
  4726. * Get minimal number of days the first week in a year or month can have
  4727. * @param IntlCalendar $calendar <p>
  4728. * The calendar object, on the procedural style interface.
  4729. * </p>
  4730. * @return int
  4731. * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a number of days or <b>FALSE</b> on failure.
  4732. * @since 5.5
  4733. */
  4734. function intlcal_get_minimal_days_in_first_week($calendar) { }
  4735. /**
  4736. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4737. * Get the global minimum value for a field
  4738. * @link https://www.php.net/manual/en/intlcalendar.getminimum.php
  4739. * @param IntlCalendar $calendar <p>
  4740. * The calendar object, on the procedural style interface.
  4741. * </p>
  4742. * @param int $field <p>
  4743. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field}. These are integer
  4744. * values between <em>0</em> and
  4745. * <b>IntlCalendar::FIELD_COUNT</b>.
  4746. * </p>
  4747. * @return int
  4748. * An int representing a value for the given field in the field's unit or FALSE on failure.
  4749. * @since 5.5
  4750. */
  4751. function intlcal_get_minimum($calendar, $field) { }
  4752. /**
  4753. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4754. * Get the object's timezone
  4755. * @link https://www.php.net/manual/en/intlcalendar.gettimezone.php
  4756. * @param IntlCalendar $calendar <p>
  4757. * The calendar object, on the procedural style interface.
  4758. * </p>
  4759. * @return IntlTimeZone
  4760. * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone} object corresponding to the one used
  4761. * internally in this object.
  4762. * @since 5.5
  4763. */
  4764. function intlcal_get_time_zone($calendar) { }
  4765. /**
  4766. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4767. * Get the calendar type
  4768. * @link https://www.php.net/manual/en/intlcalendar.gettype.php
  4769. * @param IntlCalendar $calendar <p>
  4770. * The calendar object, on the procedural style interface.
  4771. * </p>
  4772. * @return string
  4773. * A {@link https://www.php.net/manual/en/language.types.string.php string} representing the calendar type, such as
  4774. * <em>'gregorian'</em>, <em>'islamic'</em>, etc.
  4775. * @since 5.5
  4776. */
  4777. function intlcal_get_type($calendar) { }
  4778. /**
  4779. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4780. * Get time of the day at which weekend begins or ends
  4781. * @link https://www.php.net/manual/en/intlcalendar.getweekendtransition.php
  4782. * @param IntlCalendar $calendar <p>
  4783. * The calendar object, on the procedural style interface.
  4784. * </p>
  4785. * @param string $dayOfWeek <p>
  4786. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  4787. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  4788. * <b>IntlCalendar::DOW_SATURDAY</b>.
  4789. * </p>
  4790. * @return int
  4791. * The number of milliseconds into the day at which the the weekend begins or
  4792. * ends or <b>FALSE</b> on failure.
  4793. * @since 5.5
  4794. */
  4795. function intlcal_get_weekend_transition($calendar, $dayOfWeek) { }
  4796. /**
  4797. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4798. * Whether the object's time is in Daylight Savings Time
  4799. * @link https://www.php.net/manual/en/intlcalendar.indaylighttime.php
  4800. * @param IntlCalendar $calendar <p>
  4801. * The calendar object, on the procedural style interface.
  4802. * </p>
  4803. * @return bool
  4804. * Returns <b>TRUE</b> if the date is in Daylight Savings Time, <b>FALSE</b> otherwise.
  4805. * The value <b>FALSE</b> may also be returned on failure, for instance after
  4806. * specifying invalid field values on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query
  4807. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.
  4808. * @since 5.5
  4809. */
  4810. function intlcal_in_daylight_time($calendar) { }
  4811. /**
  4812. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4813. * Whether date/time interpretation is in lenient mode
  4814. * @link https://www.php.net/manual/en/intlcalendar.islenient.php
  4815. * @param IntlCalendar $calendar <p>
  4816. * The calendar object, on the procedural style interface.
  4817. * </p>
  4818. * @return bool
  4819. * A {@link https://www.php.net/manual/en/language.types.boolean.php bool} representing whether the calendar is set to lenient mode.
  4820. * @since 5.5
  4821. */
  4822. function intlcal_is_lenient($calendar) { }
  4823. /**
  4824. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4825. * Whether a field is set
  4826. * @link https://www.php.net/manual/en/intlcalendar.isset.php
  4827. * @param IntlCalendar $calendar <p>
  4828. * The calendar object, on the procedural style interface.
  4829. * </p>
  4830. * @param int $field <p>
  4831. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4832. * values between <em>0</em> and
  4833. * <b>IntlCalendar::FIELD_COUNT</b>.
  4834. * </p>
  4835. * @return bool Assuming there are no argument errors, returns <b>TRUE</b> iif the field is set.
  4836. * @since 5.5
  4837. */
  4838. function intlcal_is_set($calendar, $field) { }
  4839. /**
  4840. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4841. * Get the global maximum value for a field
  4842. * @link https://www.php.net/manual/en/intlcalendar.getmaximum.php
  4843. * @param IntlCalendar $calendar <p>
  4844. * The calendar object, on the procedural style interface.
  4845. * </p>
  4846. * @param int $field <p>
  4847. * One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
  4848. * values between <em>0</em> and
  4849. * <b>IntlCalendar::FIELD_COUNT</b>.
  4850. * </p>
  4851. * @return string
  4852. * A locale string or <b>FALSE</b> on failure.
  4853. * @since 5.5
  4854. */
  4855. function intlcal_get_maximum($calendar, $field) { }
  4856. /**
  4857. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4858. * Whether another calendar is equal but for a different time
  4859. * @link https://www.php.net/manual/en/intlcalendar.isequivalentto.php
  4860. * @param IntlCalendar $calendarObject <p>
  4861. * The calendar object, on the procedural style interface.
  4862. * </p>
  4863. * @param IntlCalendar $calendar The other calendar against which the comparison is to be made.
  4864. * @return bool
  4865. * Assuming there are no argument errors, returns <b>TRUE</b> iif the calendars are equivalent except possibly for their set time.
  4866. * @since 5.5
  4867. */
  4868. function intlcal_is_equivalent_to(IntlCalendar $calendarObject, IntlCalendar $calendar) { }
  4869. /**
  4870. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4871. * Whether a certain date/time is in the weekend
  4872. * @link https://www.php.net/manual/en/intlcalendar.isweekend.php
  4873. * @param IntlCalendar $calendar <p>
  4874. * The calendar object, on the procedural style interface.
  4875. * </p>
  4876. * @param float|null $date [optional] <p>
  4877. * An optional timestamp representing the number of milliseconds since the
  4878. * epoch, excluding leap seconds. If <b>NULL</b>, this object's current time is
  4879. * used instead.
  4880. * </p>
  4881. * @return bool
  4882. * <p> A {@link https://www.php.net/manual/en/language.types.boolean.php bool} indicating whether the given or this object's time occurs
  4883. * in a weekend.
  4884. * </p>
  4885. * <p>
  4886. * The value <b>FALSE</b> may also be returned on failure, for instance after giving
  4887. * a date out of bounds on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query
  4888. * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.</p>
  4889. * @since 5.5
  4890. */
  4891. function intlcal_is_weekend($calendar, $date = null) { }
  4892. /**
  4893. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4894. * Set the day on which the week is deemed to start
  4895. * @link https://www.php.net/manual/en/intlcalendar.setfirstdayofweek.php
  4896. * @param IntlCalendar $calendar <p>
  4897. * The calendar object, on the procedural style interface.
  4898. * </p>
  4899. * @param int $dayOfWeek <p>
  4900. * One of the constants <b>IntlCalendar::DOW_SUNDAY</b>,
  4901. * <b>IntlCalendar::DOW_MONDAY</b>, ...,
  4902. * <b>IntlCalendar::DOW_SATURDAY</b>.
  4903. * </p>
  4904. * @return bool Returns TRUE on success. Failure can only happen due to invalid parameters.
  4905. * @since 5.5
  4906. */
  4907. function intlcal_set_first_day_of_week($calendar, $dayOfWeek) { }
  4908. /**
  4909. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4910. * Set whether date/time interpretation is to be lenient
  4911. * @link https://www.php.net/manual/en/intlcalendar.setlenient.php
  4912. * @param IntlCalendar $calendar <p>
  4913. * The calendar object, on the procedural style interface.
  4914. * </p>
  4915. * @param string $isLenient <p>
  4916. * Use <b>TRUE</b> to activate the lenient mode; <b>FALSE</b> otherwise.
  4917. * </p>
  4918. * @return bool Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
  4919. * @since 5.5
  4920. */
  4921. function intlcal_set_lenient($calendar, $isLenient) { }
  4922. /**
  4923. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4924. * Get behavior for handling repeating wall time
  4925. * @link https://www.php.net/manual/en/intlcalendar.getrepeatedwalltimeoption.php
  4926. * @param IntlCalendar $calendar <p>
  4927. * The calendar object, on the procedural style interface.
  4928. * </p>
  4929. * @return int
  4930. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b> or
  4931. * <b>IntlCalendar::WALLTIME_LAST</b>.
  4932. * @since 5.5
  4933. */
  4934. function intlcal_get_repeated_wall_time_option($calendar) { }
  4935. /**
  4936. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4937. * Compare time of two IntlCalendar objects for equality
  4938. * @link https://www.php.net/manual/en/intlcalendar.equals.php
  4939. * @param IntlCalendar $calendarObject <p>
  4940. * The calendar object, on the procedural style interface.
  4941. * </p>
  4942. * @param IntlCalendar $calendar
  4943. * @return bool <p>
  4944. * Returns <b>TRUE</b> if the current time of both this and the passed in
  4945. * {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object are the same, or <b>FALSE</b>
  4946. * otherwise. The value <b>FALSE</b> can also be returned on failure. This can only
  4947. * happen if bad arguments are passed in. In any case, the two cases can be
  4948. * distinguished by calling {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()}.
  4949. * </p>
  4950. * @since 5.5
  4951. */
  4952. function intlcal_equals($calendarObject, $calendar) { }
  4953. /**
  4954. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4955. * Get behavior for handling skipped wall time
  4956. * @link https://www.php.net/manual/en/intlcalendar.getskippedwalltimeoption.php
  4957. * @param IntlCalendar $calendar <p>
  4958. * The calendar object, on the procedural style interface.
  4959. * </p>
  4960. * @return int
  4961. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b>,
  4962. * <b>IntlCalendar::WALLTIME_LAST</b> or
  4963. * <b>IntlCalendar::WALLTIME_NEXT_VALID</b>.
  4964. * @since 5.5
  4965. */
  4966. function intlcal_get_skipped_wall_time_option($calendar) { }
  4967. /**
  4968. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4969. * Set behavior for handling repeating wall times at negative timezone offset transitions
  4970. * @link https://www.php.net/manual/en/intlcalendar.setrepeatedwalltimeoption.php
  4971. * @param IntlCalendar $calendar <p>
  4972. * The calendar object, on the procedural style interface.
  4973. * </p>
  4974. * @param int $wallTimeOption <p>
  4975. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b> or
  4976. * <b>IntlCalendar::WALLTIME_LAST</b>.
  4977. * </p>
  4978. * @return bool
  4979. * Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
  4980. * @since 5.5
  4981. */
  4982. function intlcal_set_repeated_wall_time_option($calendar, $wallTimeOption) { }
  4983. /**
  4984. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  4985. * Set behavior for handling skipped wall times at positive timezone offset transitions
  4986. * @link https://www.php.net/manual/en/intlcalendar.setskippedwalltimeoption.php
  4987. * @param IntlCalendar $calendar <p>
  4988. * The calendar object, on the procedural style interface.
  4989. * </p>
  4990. * @param int $wallTimeOption <p>
  4991. * One of the constants <b>IntlCalendar::WALLTIME_FIRST</b>,
  4992. * <b>IntlCalendar::WALLTIME_LAST</b> or
  4993. * <b>IntlCalendar::WALLTIME_NEXT_VALID</b>.
  4994. * </p>
  4995. * @return bool
  4996. * <p>
  4997. * Returns <b>TRUE</b> on success. Failure can only happen due to invalid parameters.
  4998. * </p>
  4999. * @since 5.5
  5000. */
  5001. function intlcal_set_skipped_wall_time_option($calendar, $wallTimeOption) { }
  5002. /**
  5003. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a2)<br/>
  5004. * Create an IntlCalendar from a DateTime object or string
  5005. * @link https://www.php.net/manual/en/intlcalendar.fromdatetime.php
  5006. * @param mixed $dateTime <p>
  5007. * A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object or a {@link https://www.php.net/manual/en/language.types.string.php string} that
  5008. * can be passed to {@link https://www.php.net/manual/en/datetime.construct.php DateTime::__construct()}.
  5009. * </p>
  5010. * @return IntlCalendar
  5011. * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object or <b>NULL</b> in case of
  5012. * failure. If a {@link https://www.php.net/manual/en/language.types.string.php string} is passed, any exception that occurs
  5013. * inside the {@link https://www.php.net/manual/en/class.datetime.php DateTime} constructor is propagated.
  5014. * @since 5.5
  5015. */
  5016. function intlcal_from_date_time($dateTime) { }
  5017. /**
  5018. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a2)<br/>
  5019. * Convert an IntlCalendar into a DateTime object
  5020. * @link https://www.php.net/manual/en/intlcalendar.todatetime.php
  5021. * @param IntlCalendar $calendar <p>
  5022. * The calendar object, on the procedural style interface.
  5023. * </p>
  5024. * @return DateTime|false
  5025. * A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object with the same timezone as this
  5026. * object (though using PHP's database instead of ICU's) and the same time,
  5027. * except for the smaller precision (second precision instead of millisecond).
  5028. * Returns <b>FALSE</b> on failure.
  5029. * @since 5.5
  5030. */
  5031. function intlcal_to_date_time($calendar) { }
  5032. /**
  5033. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5034. * Get last error code on the object
  5035. * @link https://www.php.net/manual/en/intlcalendar.geterrorcode.php
  5036. * @param IntlCalendar $calendar <p>
  5037. * The calendar object, on the procedural style interface.
  5038. * </p>
  5039. * @return int An ICU error code indicating either success, failure or a warning.
  5040. * @since 5.5
  5041. */
  5042. function intlcal_get_error_code($calendar) { }
  5043. /**
  5044. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5045. * Get last error message on the object
  5046. * @link https://www.php.net/manual/en/intlcalendar.geterrormessage.php
  5047. * @param IntlCalendar $calendar <p>
  5048. * The calendar object, on the procedural style interface.
  5049. * </p>
  5050. * @return string The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existance of an error.
  5051. * @since 5.5
  5052. */
  5053. function intlcal_get_error_message($calendar) { }
  5054. /**
  5055. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5056. * Get the number of IDs in the equivalency group that includes the given ID
  5057. * @link https://www.php.net/manual/en/intltimezone.countequivalentids.php
  5058. * @param string $zoneId
  5059. * @return int
  5060. * @since 5.5
  5061. */
  5062. function intltz_count_equivalent_ids($zoneId) { }
  5063. /**
  5064. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5065. * Create a new copy of the default timezone for this host
  5066. * @link https://www.php.net/manual/en/intltimezone.createdefault.php
  5067. * @return IntlTimeZone
  5068. * @since 5.5
  5069. */
  5070. function intlz_create_default() { }
  5071. /**
  5072. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5073. * @link https://www.php.net/manual/en/intltimezone.createenumeration.php
  5074. * @param mixed $countryOrRawOffset [optional]
  5075. * @return IntlIterator
  5076. * @since 5.5
  5077. */
  5078. function intltz_create_enumeration($countryOrRawOffset) { }
  5079. /**
  5080. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5081. * @link https://www.php.net/manual/en/intltimezone.createtimezone.php
  5082. * @param string $zoneId
  5083. * @return IntlTimeZone
  5084. * @since 5.5
  5085. */
  5086. function intltz_create_time_zone($zoneId) { }
  5087. /**
  5088. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5089. * @link https://www.php.net/manual/en/intltimezone.fromdatetimezone.php
  5090. * @param DateTimeZone $zoneId
  5091. * @return IntlTimeZone
  5092. * @since 5.5
  5093. */
  5094. function intltz_from_date_time_zone($zoneId) { }
  5095. /**
  5096. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5097. * Get the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID
  5098. * @link https://www.php.net/manual/en/intltimezone.getcanonicalid.php
  5099. * @param string $zoneId
  5100. * @param bool $isSystemID [optional]
  5101. * @return string
  5102. * @since 5.5
  5103. */
  5104. function intltz_get_canonical_id($zoneId, &$isSystemID) { }
  5105. /**
  5106. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5107. * Get a name of this time zone suitable for presentation to the user
  5108. * @param IntlTimeZone $obj - <p>
  5109. * The time zone object, on the procedural style interface.
  5110. * </p>
  5111. * @param bool $isDaylight [optional]
  5112. * @param int $style [optional]
  5113. * @param string $locale [optional]
  5114. * @return string
  5115. * @since 5.5
  5116. */
  5117. function intltz_get_display_name($obj, $isDaylight, $style, $locale) { }
  5118. /**
  5119. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5120. * Get the amount of time to be added to local standard time to get local wall clock time
  5121. * @param IntlTimeZone $obj - <p>
  5122. * The time zone object, on the procedural style interface.
  5123. * </p>
  5124. * @link https://www.php.net/manual/en/intltimezone.getequivalentid.php
  5125. * @return int
  5126. * @since 5.5
  5127. */
  5128. function intltz_get_dst_savings($obj) { }
  5129. /**
  5130. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5131. * Get an ID in the equivalency group that includes the given ID
  5132. * @link https://www.php.net/manual/en/intltimezone.getequivalentid.php
  5133. * @param string $zoneId
  5134. * @param int $index
  5135. * @return string
  5136. * @since 5.5
  5137. */
  5138. function intltz_get_equivalent_id($zoneId, $index) { }
  5139. /**
  5140. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5141. * Get last error code on the object
  5142. * @link https://www.php.net/manual/en/intltimezone.geterrorcode.php
  5143. * @param IntlTimeZone $obj - <p>
  5144. * The time zone object, on the procedural style interface.
  5145. * </p>
  5146. * @return int
  5147. * @since 5.5
  5148. */
  5149. function intltz_get_error_code($obj) { }
  5150. /**
  5151. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5152. * Get last error message on the object
  5153. * @link https://www.php.net/manual/en/intltimezone.geterrormessage.php
  5154. * @param IntlTimeZone $obj - <p>
  5155. * The time zone object, on the procedural style interface.
  5156. * </p>
  5157. * @return string
  5158. * @since 5.5
  5159. */
  5160. function intltz_get_error_message($obj) { }
  5161. /**
  5162. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5163. * Create GMT (UTC) timezone
  5164. * @link https://www.php.net/manual/en/intltimezone.getgmt.php
  5165. * @return IntlTimeZone
  5166. * @since 5.5
  5167. */
  5168. function intltz_getGMT() { }
  5169. /**
  5170. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5171. * Get timezone ID
  5172. * @link https://www.php.net/manual/en/intltimezone.getid.php
  5173. * @param IntlTimeZone $obj
  5174. * @return string
  5175. * @since 5.5
  5176. */
  5177. function intltz_get_id($obj) { }
  5178. /**
  5179. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5180. * Get the time zone raw and GMT offset for the given moment in time
  5181. * @link https://www.php.net/manual/en/intltimezone.getoffset.php
  5182. * @param IntlTimeZone $obj
  5183. * @param float $date
  5184. * @param bool $local
  5185. * @param int $rawOffset
  5186. * @param int $dstOffset
  5187. * @return int
  5188. * @since 5.5
  5189. */
  5190. function intltz_get_offset($obj, $date, $local, &$rawOffset, &$dstOffset) { }
  5191. /**
  5192. * Get the raw GMT offset (before taking daylight savings time into account
  5193. * @link https://www.php.net/manual/en/intltimezone.getrawoffset.php
  5194. * @param IntlTimeZone $obj
  5195. * @return int
  5196. */
  5197. function intltz_get_raw_offset($obj) { }
  5198. /**
  5199. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5200. * Get the timezone data version currently used by ICU
  5201. * @link https://www.php.net/manual/en/intltimezone.gettzdataversion.php
  5202. * @param IntlTimeZone $obj
  5203. * @return string
  5204. * @since 5.5
  5205. */
  5206. function intltz_get_tz_data_version($obj) { }
  5207. /**
  5208. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5209. * Check if this zone has the same rules and offset as another zone
  5210. * @link https://www.php.net/manual/en/intltimezone.hassamerules.php
  5211. * @param IntlTimeZone $obj
  5212. * @param IntlTimeZone $otherTimeZone
  5213. * @return bool
  5214. * @since 5.5
  5215. */
  5216. function intltz_has_same_rules($obj, $otherTimeZone) { }
  5217. /**
  5218. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5219. * Convert to DateTimeZone object
  5220. * @link https://www.php.net/manual/ru/intltimezone.todatetimezone.php
  5221. * @param $obj
  5222. * @return DateTimeZone
  5223. * @since 5.5
  5224. */
  5225. function intltz_to_date_time_zone($obj) { }
  5226. /**
  5227. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5228. * Check if this time zone uses daylight savings time
  5229. * @link https://www.php.net/manual/ru/intltimezone.usedaylighttime.php
  5230. * @param $obj
  5231. * @return bool
  5232. * @since 5.5
  5233. */
  5234. function intltz_use_daylight_time($obj) { }
  5235. /**
  5236. * (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
  5237. * @param mixed $timeZone
  5238. * @param string $locale
  5239. * @return IntlGregorianCalendar
  5240. * @since 5.5
  5241. */
  5242. function intlgregcal_create_instance($timeZone = null, $locale = null) { }
  5243. /**
  5244. * @param IntlGregorianCalendar $obj
  5245. * @param double $change
  5246. *
  5247. */
  5248. function intlgregcal_set_gregorian_change($obj, $change) { }
  5249. /**
  5250. * @param IntlGregorianCalendar $obj
  5251. * @return double $change
  5252. */
  5253. function intlgregcal_get_gregorian_change($obj) { }
  5254. /**
  5255. * @param int $year
  5256. * @return bool
  5257. */
  5258. function intlgregcal_is_leap_year($year) { }
  5259. /**
  5260. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  5261. * Create a resource bundle
  5262. * @link https://php.net/manual/en/resourcebundle.create.php
  5263. * @param string $locale <p>
  5264. * Locale for which the resources should be loaded (locale name, e.g. en_CA).
  5265. * </p>
  5266. * @param string $bundlename <p>
  5267. * The directory where the data is stored or the name of the .dat file.
  5268. * </p>
  5269. * @param bool $fallback [optional] <p>
  5270. * Whether locale should match exactly or fallback to parent locale is allowed.
  5271. * </p>
  5272. * @return ResourceBundle|false <b>ResourceBundle</b> object or <b>FALSE</b> on error.
  5273. */
  5274. function resourcebundle_create($locale, $bundlename, $fallback = null) { }
  5275. /**
  5276. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  5277. * Get data from the bundle
  5278. * @link https://php.net/manual/en/resourcebundle.get.php
  5279. * @param ResourceBundle $r
  5280. * @param string|int $index <p>
  5281. * Data index, must be string or integer.
  5282. * </p>
  5283. * @return mixed the data located at the index or <b>NULL</b> on error. Strings, integers and binary data strings
  5284. * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are
  5285. * returned as <b>ResourceBundle</b> object.
  5286. */
  5287. function resourcebundle_get(ResourceBundle $r, $index) { }
  5288. /**
  5289. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  5290. * Get number of elements in the bundle
  5291. * @link https://php.net/manual/en/resourcebundle.count.php
  5292. * @param ResourceBundle $r
  5293. * @param $bundle
  5294. * @return int number of elements in the bundle.
  5295. */
  5296. function resourcebundle_count(ResourceBundle $r, $bundle) { }
  5297. /**
  5298. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  5299. * Get supported locales
  5300. * @link https://php.net/manual/en/resourcebundle.locales.php
  5301. * @param string $bundlename <p>
  5302. * Path of ResourceBundle for which to get available locales, or
  5303. * empty string for default locales list.
  5304. * </p>
  5305. * @return array the list of locales supported by the bundle.
  5306. */
  5307. function resourcebundle_locales($bundlename) { }
  5308. /**
  5309. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  5310. * Get bundle's last error code.
  5311. * @link https://php.net/manual/en/resourcebundle.geterrorcode.php
  5312. * @param $bundle
  5313. * @return int error code from last bundle object call.
  5314. */
  5315. function resourcebundle_get_error_code(ResourceBundle $bundle) { }
  5316. /**
  5317. * (PHP &gt;= 5.3.2, PECL intl &gt;= 2.0.0)<br/>
  5318. * Get bundle's last error message.
  5319. * @link https://php.net/manual/en/resourcebundle.geterrormessage.php
  5320. * @param $bundle
  5321. * @return string error message from last bundle object's call.
  5322. */
  5323. function resourcebundle_get_error_message(ResourceBundle $bundle) { }
  5324. /**
  5325. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5326. * Create a transliterator
  5327. * @link https://php.net/manual/en/transliterator.create.php
  5328. * @param string $id <p>
  5329. * The id.
  5330. * </p>
  5331. * @param int $direction [optional] <p>
  5332. * The direction, defaults to
  5333. * >Transliterator::FORWARD.
  5334. * May also be set to
  5335. * Transliterator::REVERSE.
  5336. * </p>
  5337. * @return Transliterator|null a <b>Transliterator</b> object on success,
  5338. * or <b>NULL</b> on failure.
  5339. * @since 5.4
  5340. */
  5341. function transliterator_create($id, $direction = null) { }
  5342. /**
  5343. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5344. * Create transliterator from rules
  5345. * @link https://php.net/manual/en/transliterator.createfromrules.php
  5346. * @param string $rules <p>
  5347. * The rules.
  5348. * </p>
  5349. * @param string $direction [optional] <p>
  5350. * The direction, defaults to
  5351. * >Transliterator::FORWARD.
  5352. * May also be set to
  5353. * Transliterator::REVERSE.
  5354. * </p>
  5355. * @return Transliterator a <b>Transliterator</b> object on success,
  5356. * or <b>NULL</b> on failure.
  5357. * @since 5.4
  5358. */
  5359. function transliterator_create_from_rules($rules, $direction = null) { }
  5360. /**
  5361. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5362. * Get transliterator IDs
  5363. * @link https://php.net/manual/en/transliterator.listids.php
  5364. * @return array An array of registered transliterator IDs on success,
  5365. * or <b>FALSE</b> on failure.
  5366. * @since 5.4
  5367. */
  5368. function transliterator_list_ids() { }
  5369. /**
  5370. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5371. * Create an inverse transliterator
  5372. * @link https://php.net/manual/en/transliterator.createinverse.php
  5373. * @param Transliterator $orig_trans
  5374. * @return Transliterator a <b>Transliterator</b> object on success,
  5375. * or <b>NULL</b> on failure
  5376. * @since 5.4
  5377. */
  5378. function transliterator_create_inverse(Transliterator $orig_trans) { }
  5379. /**
  5380. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5381. * Transliterate a string
  5382. * @link https://php.net/manual/en/transliterator.transliterate.php
  5383. * @param Transliterator|string $transliterator
  5384. * @param string $subject <p>
  5385. * The string to be transformed.
  5386. * </p>
  5387. * @param int $start [optional] <p>
  5388. * The start index (in UTF-16 code units) from which the string will start
  5389. * to be transformed, inclusive. Indexing starts at 0. The text before will
  5390. * be left as is.
  5391. * </p>
  5392. * @param int $end [optional] <p>
  5393. * The end index (in UTF-16 code units) until which the string will be
  5394. * transformed, exclusive. Indexing starts at 0. The text after will be
  5395. * left as is.
  5396. * </p>
  5397. * @return string|false The transfomed string on success, or <b>FALSE</b> on failure.
  5398. * @since 5.4
  5399. */
  5400. function transliterator_transliterate($transliterator, $subject, $start = null, $end = null) { }
  5401. /**
  5402. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5403. * Get last error code
  5404. * @link https://php.net/manual/en/transliterator.geterrorcode.php
  5405. * @param Transliterator $trans
  5406. * @return int The error code on success,
  5407. * or <b>FALSE</b> if none exists, or on failure.
  5408. * @since 5.4
  5409. */
  5410. function transliterator_get_error_code(Transliterator $trans) { }
  5411. /**
  5412. * (PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)<br/>
  5413. * Get last error message
  5414. * @link https://php.net/manual/en/transliterator.geterrormessage.php
  5415. * @param Transliterator $trans
  5416. * @return string The error code on success,
  5417. * or <b>FALSE</b> if none exists, or on failure.
  5418. * @since 5.4
  5419. */
  5420. function transliterator_get_error_message(Transliterator $trans) { }
  5421. /**
  5422. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  5423. * Get the last error code
  5424. * @link https://php.net/manual/en/function.intl-get-error-code.php
  5425. * @return int Error code returned by the last API function call.
  5426. */
  5427. function intl_get_error_code() { }
  5428. /**
  5429. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  5430. * Get description of the last error
  5431. * @link https://php.net/manual/en/function.intl-get-error-message.php
  5432. * @return string Description of an error occurred in the last API function call.
  5433. */
  5434. function intl_get_error_message() { }
  5435. /**
  5436. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  5437. * Check whether the given error code indicates failure
  5438. * @link https://php.net/manual/en/function.intl-is-failure.php
  5439. * @param int $error_code <p>
  5440. * is a value that returned by functions:
  5441. * <b>intl_get_error_code</b>,
  5442. * <b>collator_get_error_code</b> .
  5443. * </p>
  5444. * @return bool <b>TRUE</b> if it the code indicates some failure, and <b>FALSE</b>
  5445. * in case of success or a warning.
  5446. */
  5447. function intl_is_failure($error_code) { }
  5448. /**
  5449. * (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
  5450. * Get symbolic name for a given error code
  5451. * @link https://php.net/manual/en/function.intl-error-name.php
  5452. * @param int $error_code <p>
  5453. * ICU error code.
  5454. * </p>
  5455. * @return string The returned string will be the same as the name of the error code
  5456. * constant.
  5457. */
  5458. function intl_error_name($error_code) { }
  5459. /**
  5460. * Gets the Decomposition_Mapping property for the given UTF-8 encoded code point
  5461. *
  5462. * @link https://www.php.net/manual/en/normalizer.getrawdecomposition.php
  5463. *
  5464. * @param string $input
  5465. * @return string|null
  5466. *
  5467. * @since 7.3
  5468. */
  5469. function normalizer_get_raw_decomposition($input) { }
  5470. /**
  5471. * @since 5.5
  5472. */
  5473. function intltz_create_default() { }
  5474. /**
  5475. * @since 5.5
  5476. */
  5477. function intltz_get_gmt() { }
  5478. /**
  5479. * @since 5.5
  5480. */
  5481. function intltz_get_unknown() { }
  5482. /**
  5483. * @since 5.5
  5484. */
  5485. function intltz_create_time_zone_id_enumeration($zoneType, $region = null, $rawOffset = null) { }
  5486. /**
  5487. * @since 5.5
  5488. */
  5489. function intltz_get_region($zoneId) { }
  5490. /**
  5491. * Set minimal number of days the first week in a year or month can have
  5492. *
  5493. * @link https://www.php.net/manual/en/intlcalendar.setminimaldaysinfirstweek.php
  5494. *
  5495. * @param IntlCalendar $calendar
  5496. * @param int $numberOfDays
  5497. * @return bool
  5498. *
  5499. * @since 5.5.1
  5500. */
  5501. function intlcal_set_minimal_days_in_first_week(IntlCalendar $calendar, $numberOfDays) { }
  5502. /**
  5503. * Limit on locale length, set to 80 in PHP code. Locale names longer
  5504. * than this limit will not be accepted.
  5505. * @link https://php.net/manual/en/intl.constants.php
  5506. */
  5507. define ('INTL_MAX_LOCALE_LEN', 80);
  5508. define ('INTL_ICU_VERSION', "4.8.1.1");
  5509. define ('INTL_ICU_DATA_VERSION', "4.8.1");
  5510. define ('ULOC_ACTUAL_LOCALE', 0);
  5511. define ('ULOC_VALID_LOCALE', 1);
  5512. define ('GRAPHEME_EXTR_COUNT', 0);
  5513. define ('GRAPHEME_EXTR_MAXBYTES', 1);
  5514. define ('GRAPHEME_EXTR_MAXCHARS', 2);
  5515. define ('U_USING_FALLBACK_WARNING', -128);
  5516. define ('U_ERROR_WARNING_START', -128);
  5517. define ('U_USING_DEFAULT_WARNING', -127);
  5518. define ('U_SAFECLONE_ALLOCATED_WARNING', -126);
  5519. define ('U_STATE_OLD_WARNING', -125);
  5520. define ('U_STRING_NOT_TERMINATED_WARNING', -124);
  5521. define ('U_SORT_KEY_TOO_SHORT_WARNING', -123);
  5522. define ('U_AMBIGUOUS_ALIAS_WARNING', -122);
  5523. define ('U_DIFFERENT_UCA_VERSION', -121);
  5524. define ('U_ERROR_WARNING_LIMIT', -119);
  5525. define ('U_ZERO_ERROR', 0);
  5526. define ('U_ILLEGAL_ARGUMENT_ERROR', 1);
  5527. define ('U_MISSING_RESOURCE_ERROR', 2);
  5528. define ('U_INVALID_FORMAT_ERROR', 3);
  5529. define ('U_FILE_ACCESS_ERROR', 4);
  5530. define ('U_INTERNAL_PROGRAM_ERROR', 5);
  5531. define ('U_MESSAGE_PARSE_ERROR', 6);
  5532. define ('U_MEMORY_ALLOCATION_ERROR', 7);
  5533. define ('U_INDEX_OUTOFBOUNDS_ERROR', 8);
  5534. define ('U_PARSE_ERROR', 9);
  5535. define ('U_INVALID_CHAR_FOUND', 10);
  5536. define ('U_TRUNCATED_CHAR_FOUND', 11);
  5537. define ('U_ILLEGAL_CHAR_FOUND', 12);
  5538. define ('U_INVALID_TABLE_FORMAT', 13);
  5539. define ('U_INVALID_TABLE_FILE', 14);
  5540. define ('U_BUFFER_OVERFLOW_ERROR', 15);
  5541. define ('U_UNSUPPORTED_ERROR', 16);
  5542. define ('U_RESOURCE_TYPE_MISMATCH', 17);
  5543. define ('U_ILLEGAL_ESCAPE_SEQUENCE', 18);
  5544. define ('U_UNSUPPORTED_ESCAPE_SEQUENCE', 19);
  5545. define ('U_NO_SPACE_AVAILABLE', 20);
  5546. define ('U_CE_NOT_FOUND_ERROR', 21);
  5547. define ('U_PRIMARY_TOO_LONG_ERROR', 22);
  5548. define ('U_STATE_TOO_OLD_ERROR', 23);
  5549. define ('U_TOO_MANY_ALIASES_ERROR', 24);
  5550. define ('U_ENUM_OUT_OF_SYNC_ERROR', 25);
  5551. define ('U_INVARIANT_CONVERSION_ERROR', 26);
  5552. define ('U_INVALID_STATE_ERROR', 27);
  5553. define ('U_COLLATOR_VERSION_MISMATCH', 28);
  5554. define ('U_USELESS_COLLATOR_ERROR', 29);
  5555. define ('U_NO_WRITE_PERMISSION', 30);
  5556. define ('U_STANDARD_ERROR_LIMIT', 31);
  5557. define ('U_BAD_VARIABLE_DEFINITION', 65536);
  5558. define ('U_PARSE_ERROR_START', 65536);
  5559. define ('U_MALFORMED_RULE', 65537);
  5560. define ('U_MALFORMED_SET', 65538);
  5561. define ('U_MALFORMED_SYMBOL_REFERENCE', 65539);
  5562. define ('U_MALFORMED_UNICODE_ESCAPE', 65540);
  5563. define ('U_MALFORMED_VARIABLE_DEFINITION', 65541);
  5564. define ('U_MALFORMED_VARIABLE_REFERENCE', 65542);
  5565. define ('U_MISMATCHED_SEGMENT_DELIMITERS', 65543);
  5566. define ('U_MISPLACED_ANCHOR_START', 65544);
  5567. define ('U_MISPLACED_CURSOR_OFFSET', 65545);
  5568. define ('U_MISPLACED_QUANTIFIER', 65546);
  5569. define ('U_MISSING_OPERATOR', 65547);
  5570. define ('U_MISSING_SEGMENT_CLOSE', 65548);
  5571. define ('U_MULTIPLE_ANTE_CONTEXTS', 65549);
  5572. define ('U_MULTIPLE_CURSORS', 65550);
  5573. define ('U_MULTIPLE_POST_CONTEXTS', 65551);
  5574. define ('U_TRAILING_BACKSLASH', 65552);
  5575. define ('U_UNDEFINED_SEGMENT_REFERENCE', 65553);
  5576. define ('U_UNDEFINED_VARIABLE', 65554);
  5577. define ('U_UNQUOTED_SPECIAL', 65555);
  5578. define ('U_UNTERMINATED_QUOTE', 65556);
  5579. define ('U_RULE_MASK_ERROR', 65557);
  5580. define ('U_MISPLACED_COMPOUND_FILTER', 65558);
  5581. define ('U_MULTIPLE_COMPOUND_FILTERS', 65559);
  5582. define ('U_INVALID_RBT_SYNTAX', 65560);
  5583. define ('U_INVALID_PROPERTY_PATTERN', 65561);
  5584. define ('U_MALFORMED_PRAGMA', 65562);
  5585. define ('U_UNCLOSED_SEGMENT', 65563);
  5586. define ('U_ILLEGAL_CHAR_IN_SEGMENT', 65564);
  5587. define ('U_VARIABLE_RANGE_EXHAUSTED', 65565);
  5588. define ('U_VARIABLE_RANGE_OVERLAP', 65566);
  5589. define ('U_ILLEGAL_CHARACTER', 65567);
  5590. define ('U_INTERNAL_TRANSLITERATOR_ERROR', 65568);
  5591. define ('U_INVALID_ID', 65569);
  5592. define ('U_INVALID_FUNCTION', 65570);
  5593. define ('U_PARSE_ERROR_LIMIT', 65571);
  5594. define ('U_UNEXPECTED_TOKEN', 65792);
  5595. define ('U_FMT_PARSE_ERROR_START', 65792);
  5596. define ('U_MULTIPLE_DECIMAL_SEPARATORS', 65793);
  5597. define ('U_MULTIPLE_DECIMAL_SEPERATORS', 65793);
  5598. define ('U_MULTIPLE_EXPONENTIAL_SYMBOLS', 65794);
  5599. define ('U_MALFORMED_EXPONENTIAL_PATTERN', 65795);
  5600. define ('U_MULTIPLE_PERCENT_SYMBOLS', 65796);
  5601. define ('U_MULTIPLE_PERMILL_SYMBOLS', 65797);
  5602. define ('U_MULTIPLE_PAD_SPECIFIERS', 65798);
  5603. define ('U_PATTERN_SYNTAX_ERROR', 65799);
  5604. define ('U_ILLEGAL_PAD_POSITION', 65800);
  5605. define ('U_UNMATCHED_BRACES', 65801);
  5606. define ('U_UNSUPPORTED_PROPERTY', 65802);
  5607. define ('U_UNSUPPORTED_ATTRIBUTE', 65803);
  5608. define ('U_FMT_PARSE_ERROR_LIMIT', 65810);
  5609. define ('U_BRK_INTERNAL_ERROR', 66048);
  5610. define ('U_BRK_ERROR_START', 66048);
  5611. define ('U_BRK_HEX_DIGITS_EXPECTED', 66049);
  5612. define ('U_BRK_SEMICOLON_EXPECTED', 66050);
  5613. define ('U_BRK_RULE_SYNTAX', 66051);
  5614. define ('U_BRK_UNCLOSED_SET', 66052);
  5615. define ('U_BRK_ASSIGN_ERROR', 66053);
  5616. define ('U_BRK_VARIABLE_REDFINITION', 66054);
  5617. define ('U_BRK_MISMATCHED_PAREN', 66055);
  5618. define ('U_BRK_NEW_LINE_IN_QUOTED_STRING', 66056);
  5619. define ('U_BRK_UNDEFINED_VARIABLE', 66057);
  5620. define ('U_BRK_INIT_ERROR', 66058);
  5621. define ('U_BRK_RULE_EMPTY_SET', 66059);
  5622. define ('U_BRK_UNRECOGNIZED_OPTION', 66060);
  5623. define ('U_BRK_MALFORMED_RULE_TAG', 66061);
  5624. define ('U_BRK_ERROR_LIMIT', 66062);
  5625. define ('U_REGEX_INTERNAL_ERROR', 66304);
  5626. define ('U_REGEX_ERROR_START', 66304);
  5627. define ('U_REGEX_RULE_SYNTAX', 66305);
  5628. define ('U_REGEX_INVALID_STATE', 66306);
  5629. define ('U_REGEX_BAD_ESCAPE_SEQUENCE', 66307);
  5630. define ('U_REGEX_PROPERTY_SYNTAX', 66308);
  5631. define ('U_REGEX_UNIMPLEMENTED', 66309);
  5632. define ('U_REGEX_MISMATCHED_PAREN', 66310);
  5633. define ('U_REGEX_NUMBER_TOO_BIG', 66311);
  5634. define ('U_REGEX_BAD_INTERVAL', 66312);
  5635. define ('U_REGEX_MAX_LT_MIN', 66313);
  5636. define ('U_REGEX_INVALID_BACK_REF', 66314);
  5637. define ('U_REGEX_INVALID_FLAG', 66315);
  5638. define ('U_REGEX_LOOK_BEHIND_LIMIT', 66316);
  5639. define ('U_REGEX_SET_CONTAINS_STRING', 66317);
  5640. define ('U_REGEX_ERROR_LIMIT', 66324);
  5641. define ('U_IDNA_PROHIBITED_ERROR', 66560);
  5642. define ('U_IDNA_ERROR_START', 66560);
  5643. define ('U_IDNA_UNASSIGNED_ERROR', 66561);
  5644. define ('U_IDNA_CHECK_BIDI_ERROR', 66562);
  5645. define ('U_IDNA_STD3_ASCII_RULES_ERROR', 66563);
  5646. define ('U_IDNA_ACE_PREFIX_ERROR', 66564);
  5647. define ('U_IDNA_VERIFICATION_ERROR', 66565);
  5648. define ('U_IDNA_LABEL_TOO_LONG_ERROR', 66566);
  5649. define ('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567);
  5650. define ('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568);
  5651. define ('U_IDNA_ERROR_LIMIT', 66569);
  5652. define ('U_STRINGPREP_PROHIBITED_ERROR', 66560);
  5653. define ('U_STRINGPREP_UNASSIGNED_ERROR', 66561);
  5654. define ('U_STRINGPREP_CHECK_BIDI_ERROR', 66562);
  5655. define ('U_ERROR_LIMIT', 66818);
  5656. /**
  5657. * Prohibit processing of unassigned codepoints in the input for IDN
  5658. * functions and do not check if the input conforms to domain name ASCII rules.
  5659. * @link https://php.net/manual/en/intl.constants.php
  5660. */
  5661. define ('IDNA_DEFAULT', 0);
  5662. /**
  5663. * Allow processing of unassigned codepoints in the input for IDN functions.
  5664. * @link https://php.net/manual/en/intl.constants.php
  5665. */
  5666. define ('IDNA_ALLOW_UNASSIGNED', 1);
  5667. /**
  5668. * Check if the input for IDN functions conforms to domain name ASCII rules.
  5669. * @link https://php.net/manual/en/intl.constants.php
  5670. */
  5671. define ('IDNA_USE_STD3_RULES', 2);
  5672. /**
  5673. * Check whether the input conforms to the BiDi rules.
  5674. * Ignored by the IDNA2003 implementation, which always performs this check.
  5675. * @link https://php.net/manual/en/intl.constants.php
  5676. */
  5677. define ('IDNA_CHECK_BIDI', 4);
  5678. /**
  5679. * Check whether the input conforms to the CONTEXTJ rules.
  5680. * Ignored by the IDNA2003 implementation, as this check is new in IDNA2008.
  5681. * @link https://php.net/manual/en/intl.constants.php
  5682. */
  5683. define ('IDNA_CHECK_CONTEXTJ', 8);
  5684. /**
  5685. * Option for nontransitional processing in
  5686. * <b>idn_to_ascii</b>. Transitional processing is activated
  5687. * by default. This option is ignored by the IDNA2003 implementation.
  5688. * @link https://php.net/manual/en/intl.constants.php
  5689. */
  5690. define ('IDNA_NONTRANSITIONAL_TO_ASCII', 16);
  5691. /**
  5692. * Option for nontransitional processing in
  5693. * <b>idn_to_utf8</b>. Transitional processing is activated
  5694. * by default. This option is ignored by the IDNA2003 implementation.
  5695. * @link https://php.net/manual/en/intl.constants.php
  5696. */
  5697. define ('IDNA_NONTRANSITIONAL_TO_UNICODE', 32);
  5698. /**
  5699. * Use IDNA 2003 algorithm in {@see idn_to_utf8} and
  5700. * {@see idn_to_ascii}. This is the default.
  5701. * @link https://php.net/manual/en/intl.constants.php
  5702. * @deprecated 7.2 Use {@see INTL_IDNA_VARIANT_UTS46} instead.
  5703. * @removed 8.0
  5704. */
  5705. define ('INTL_IDNA_VARIANT_2003', 0);
  5706. /**
  5707. * Use UTS #46 algorithm in <b>idn_to_utf8</b> and
  5708. * <b>idn_to_ascii</b>.
  5709. * @link https://php.net/manual/en/intl.constants.php
  5710. */
  5711. define ('INTL_IDNA_VARIANT_UTS46', 1);
  5712. /**
  5713. * Errors reported in a bitset returned by the UTS #46 algorithm in
  5714. * <b>idn_to_utf8</b> and
  5715. * <b>idn_to_ascii</b>.
  5716. * @link https://php.net/manual/en/intl.constants.php
  5717. */
  5718. define ('IDNA_ERROR_EMPTY_LABEL', 1);
  5719. /**
  5720. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5721. * @since 5.4
  5722. */
  5723. define ('IDNA_ERROR_LABEL_TOO_LONG', 2);
  5724. /**
  5725. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5726. * @since 5.4
  5727. */
  5728. define ('IDNA_ERROR_DOMAIN_NAME_TOO_LONG', 4);
  5729. /**
  5730. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5731. * @since 5.4
  5732. */
  5733. define ('IDNA_ERROR_LEADING_HYPHEN', 8);
  5734. /**
  5735. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5736. * @since 5.4
  5737. */
  5738. define ('IDNA_ERROR_TRAILING_HYPHEN', 16);
  5739. /**
  5740. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5741. * @since 5.4
  5742. */
  5743. define ('IDNA_ERROR_HYPHEN_3_4', 32);
  5744. /**
  5745. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5746. * @since 5.4
  5747. */
  5748. define ('IDNA_ERROR_LEADING_COMBINING_MARK', 64);
  5749. /**
  5750. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5751. * @since 5.4
  5752. */
  5753. define ('IDNA_ERROR_DISALLOWED', 128);
  5754. /**
  5755. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5756. * @since 5.4
  5757. */
  5758. define ('IDNA_ERROR_PUNYCODE', 256);
  5759. /**
  5760. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5761. * @since 5.4
  5762. */
  5763. define ('IDNA_ERROR_LABEL_HAS_DOT', 512);
  5764. /**
  5765. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5766. * @since 5.4
  5767. */
  5768. define ('IDNA_ERROR_INVALID_ACE_LABEL', 1024);
  5769. /**
  5770. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5771. * @since 5.4
  5772. */
  5773. define ('IDNA_ERROR_BIDI', 2048);
  5774. /**
  5775. * @link https://www.php.net/manual/en/migration54.global-constants.php
  5776. * @since 5.4
  5777. */
  5778. define ('IDNA_ERROR_CONTEXTJ', 4096);
  5779. /**
  5780. * @since 5.5
  5781. */
  5782. class IntlBreakIterator implements IteratorAggregate
  5783. {
  5784. /* Constants */
  5785. const DONE = -1;
  5786. const WORD_NONE = 0;
  5787. const WORD_NONE_LIMIT = 100;
  5788. const WORD_NUMBER = 100;
  5789. const WORD_NUMBER_LIMIT = 200;
  5790. const WORD_LETTER = 200;
  5791. const WORD_LETTER_LIMIT = 300;
  5792. const WORD_KANA = 300;
  5793. const WORD_KANA_LIMIT = 400;
  5794. const WORD_IDEO = 400;
  5795. const WORD_IDEO_LIMIT = 500;
  5796. const LINE_SOFT = 0;
  5797. const LINE_SOFT_LIMIT = 100;
  5798. const LINE_HARD = 100;
  5799. const LINE_HARD_LIMIT = 200;
  5800. const SENTENCE_TERM = 0;
  5801. const SENTENCE_TERM_LIMIT = 100;
  5802. const SENTENCE_SEP = 100;
  5803. const SENTENCE_SEP_LIMIT = 200;
  5804. /* Methods */
  5805. /**
  5806. * (PHP 5 &gt;=5.5.0)<br/>
  5807. * Private constructor for disallowing instantiation
  5808. */
  5809. private function __construct() { }
  5810. /**
  5811. * (PHP 5 &gt;=5.5.0)<br/>
  5812. * Create break iterator for boundaries of combining character sequences
  5813. * @link https://www.php.net/manual/en/intlbreakiterator.createcharacterinstance.php
  5814. * @param string $locale
  5815. * @return IntlBreakIterator
  5816. */
  5817. public static function createCharacterInstance($locale = null) { }
  5818. /**
  5819. * (PHP 5 &gt;=5.5.0)<br/>
  5820. * Create break iterator for boundaries of code points
  5821. * @link https://www.php.net/manual/en/intlbreakiterator.createcodepointinstance.php
  5822. * @return IntlBreakIterator
  5823. */
  5824. public static function createCodePointInstance() { }
  5825. /**
  5826. * (PHP 5 &gt;=5.5.0)<br/>
  5827. * Create break iterator for logically possible line breaks
  5828. * @link https://www.php.net/manual/en/intlbreakiterator.createlineinstance.php
  5829. * @param string $locale
  5830. * @return IntlBreakIterator
  5831. */
  5832. public static function createLineInstance($locale) { }
  5833. /**
  5834. * (PHP 5 &gt;=5.5.0)<br/>
  5835. * Create break iterator for sentence breaks
  5836. * @link https://www.php.net/manual/en/intlbreakiterator.createsentenceinstance.php
  5837. * @param string $locale
  5838. * @return IntlBreakIterator
  5839. */
  5840. public static function createSentenceInstance($locale) { }
  5841. /**
  5842. * (PHP 5 &gt;=5.5.0)<br/>
  5843. * Create break iterator for title-casing breaks
  5844. * @link https://www.php.net/manual/en/intlbreakiterator.createtitleinstance.php
  5845. * @param string $locale
  5846. * @return IntlBreakIterator
  5847. */
  5848. public static function createTitleInstance($locale) { }
  5849. /**
  5850. * (PHP 5 &gt;=5.5.0)<br/>
  5851. * Create break iterator for word breaks
  5852. * @link https://www.php.net/manual/en/intlbreakiterator.createwordinstance.php
  5853. * @param string $locale
  5854. * @return IntlBreakIterator
  5855. */
  5856. public static function createWordInstance($locale) { }
  5857. /**
  5858. * (PHP 5 &gt;=5.5.0)<br/>
  5859. * Get index of current position
  5860. * @link https://www.php.net/manual/en/intlbreakiterator.current.php
  5861. * @return int
  5862. */
  5863. public function current() { }
  5864. /**
  5865. * (PHP 5 &gt;=5.5.0)<br/>
  5866. * Set position to the first character in the text
  5867. * @link https://www.php.net/manual/en/intlbreakiterator.first.php
  5868. */
  5869. public function first() { }
  5870. /**
  5871. * (PHP 5 &gt;=5.5.0)<br/>
  5872. * Advance the iterator to the first boundary following specified offset
  5873. * @link https://www.php.net/manual/en/intlbreakiterator.following.php
  5874. * @param int $offset
  5875. */
  5876. public function following($offset) { }
  5877. /**
  5878. * (PHP 5 &gt;=5.5.0)<br/>
  5879. * Get last error code on the object
  5880. * @link https://www.php.net/manual/en/intlbreakiterator.geterrorcode.php
  5881. * @return int
  5882. */
  5883. public function getErrorCode() { }
  5884. /**
  5885. * (PHP 5 &gt;=5.5.0)<br/>
  5886. * Get last error message on the object
  5887. * @link https://www.php.net/manual/en/intlbreakiterator.geterrormessage.php
  5888. * @return string
  5889. */
  5890. public function getErrorMessage() { }
  5891. /**
  5892. * (PHP 5 &gt;=5.5.0)<br/>
  5893. * Get the locale associated with the object
  5894. * @link https://www.php.net/manual/en/intlbreakiterator.getlocale.php
  5895. * @param string $locale_type
  5896. */
  5897. public function getLocale($locale_type) { }
  5898. /**
  5899. * (PHP 5 &gt;=5.5.0)<br/>
  5900. * Create iterator for navigating fragments between boundaries
  5901. * @link https://www.php.net/manual/en/intlbreakiterator.getpartsiterator.php
  5902. * @param string $key_type [optional]
  5903. */
  5904. public function getPartsIterator($key_type = IntlPartsIterator::KEY_SEQUENTIAL) { }
  5905. /**
  5906. * (PHP 5 &gt;=5.5.0)<br/>
  5907. * Get the text being scanned
  5908. * @link https://www.php.net/manual/en/intlbreakiterator.gettext.php
  5909. */
  5910. public function getText() { }
  5911. /**
  5912. * (PHP 5 &gt;=5.5.0)<br/>
  5913. * Tell whether an offset is a boundary's offset
  5914. * @link https://www.php.net/manual/en/intlbreakiterator.isboundary.php
  5915. * @param string $offset
  5916. */
  5917. public function isBoundary($offset) { }
  5918. /**
  5919. * (PHP 5 &gt;=5.5.0)<br/>
  5920. * Set the iterator position to index beyond the last character
  5921. * @link https://www.php.net/manual/en/intlbreakiterator.last.php
  5922. * @return int
  5923. */
  5924. public function last() { }
  5925. /**
  5926. * (PHP 5 &gt;=5.5.0)<br/>
  5927. * @link https://www.php.net/manual/en/intlbreakiterator.next.php
  5928. * @param string $offset [optional]
  5929. * @return int
  5930. */
  5931. public function next($offset = null) { }
  5932. /**
  5933. * (PHP 5 &gt;=5.5.0)<br/>
  5934. * @link https://www.php.net/manual/en/intlbreakiterator.preceding.php
  5935. * @param int $offset
  5936. */
  5937. public function preceding($offset) { }
  5938. /**
  5939. * (PHP 5 &gt;=5.5.0)<br/>
  5940. * Set the iterator position to the boundary immediately before the current
  5941. * @link https://www.php.net/manual/en/intlbreakiterator.previous.php
  5942. * @return int
  5943. */
  5944. public function previous() { }
  5945. /**
  5946. * (PHP 5 &gt;=5.5.0)<br/>
  5947. * Set the text being scanned
  5948. * @link https://www.php.net/manual/en/intlbreakiterator.settext.php
  5949. * @param string $text
  5950. */
  5951. public function setText($text) { }
  5952. public function getIterator(){}
  5953. }
  5954. class IntlRuleBasedBreakIterator extends IntlBreakIterator implements Traversable {
  5955. /* Methods */
  5956. /**
  5957. * (PHP 5 &gt;=5.5.0)<br/>
  5958. * @link https://www.php.net/manual/en/intlbreakiterator.construct.php
  5959. * @param string $rules
  5960. * @param string $areCompiled [optional]
  5961. */
  5962. public function __construct($rules, $areCompiled) { }
  5963. /**
  5964. * (PHP 5 &gt;=5.5.0)<br/>
  5965. * Create break iterator for boundaries of combining character sequences
  5966. * @link https://www.php.net/manual/en/intlbreakiterator.createcharacterinstance.php
  5967. * @param string $locale
  5968. * @return IntlRuleBasedBreakIterator
  5969. */
  5970. public static function createCharacterInstance($locale) { }
  5971. /*
  5972. * (PHP 5 &gt;=5.5.0)<br/>
  5973. * Create break iterator for boundaries of code points
  5974. * @link https://www.php.net/manual/en/intlbreakiterator.createcodepointinstance.php
  5975. * @return IntlRuleBasedBreakIterator
  5976. */
  5977. public static function createCodePointInstance() { }
  5978. /**
  5979. * (PHP 5 &gt;=5.5.0)<br/>
  5980. * Create break iterator for logically possible line breaks
  5981. * @link https://www.php.net/manual/en/intlbreakiterator.createlineinstance.php
  5982. * @param string $locale
  5983. * @return IntlRuleBasedBreakIterator
  5984. */
  5985. public static function createLineInstance($locale) { }
  5986. /**
  5987. * (PHP 5 &gt;=5.5.0)<br/>
  5988. * Create break iterator for sentence breaks
  5989. * @link https://www.php.net/manual/en/intlbreakiterator.createsentenceinstance.php
  5990. * @param string $locale
  5991. * @return IntlRuleBasedBreakIterator
  5992. */
  5993. public static function createSentenceInstance($locale) { }
  5994. /**
  5995. * (PHP 5 &gt;=5.5.0)<br/>
  5996. * Create break iterator for title-casing breaks
  5997. * @link https://www.php.net/manual/en/intlbreakiterator.createtitleinstance.php
  5998. * @param string $locale
  5999. * @return IntlRuleBasedBreakIterator
  6000. */
  6001. public static function createTitleInstance($locale) { }
  6002. /**
  6003. * (PHP 5 &gt;=5.5.0)<br/>
  6004. * Create break iterator for word breaks
  6005. * @link https://www.php.net/manual/en/intlbreakiterator.createwordinstance.php
  6006. * @param string $locale
  6007. * @return IntlRuleBasedBreakIterator
  6008. */
  6009. public static function createWordInstance($locale) { }
  6010. /**
  6011. * (PHP 5 &gt;=5.5.0)<br/>
  6012. * @link https://www.php.net/manual/en/intlrulebasedbreakiterator.getbinaryrules.php
  6013. * Get the binary form of compiled rules
  6014. * @return string
  6015. */
  6016. public function getBinaryRules() { }
  6017. /**
  6018. * (PHP 5 &gt;=5.5.0)<br/>
  6019. * @link https://www.php.net/manual/en/intlrulebasedbreakiterator.getrules.php
  6020. * Get the rule set used to create this object
  6021. * @return string
  6022. */
  6023. public function getRules() { }
  6024. /**
  6025. * (PHP 5 &gt;=5.5.0)<br/>
  6026. * @link https://www.php.net/manual/en/intlrulebasedbreakiterator.getrulesstatus.php
  6027. * Get the largest status value from the break rules that determined the current break position
  6028. * @return int
  6029. */
  6030. public function getRuleStatus() { }
  6031. /**
  6032. * (PHP 5 &gt;=5.5.0)<br/>
  6033. * @link https://www.php.net/manual/en/intlrulebasedbreakiterator.getrulestatusvec.php
  6034. * Get the status values from the break rules that determined the current break position
  6035. * @return array
  6036. */
  6037. public function getRuleStatusVec() { }
  6038. }
  6039. /**
  6040. * @link https://www.php.net/manual/en/class.intlpartsiterator.php
  6041. * @since 5.5
  6042. */
  6043. class IntlPartsIterator extends IntlIterator implements Iterator {
  6044. const KEY_SEQUENTIAL = 0 ;
  6045. const KEY_LEFT = 1 ;
  6046. const KEY_RIGHT = 2 ;
  6047. /**
  6048. * @return IntlBreakIterator
  6049. */
  6050. public function getBreakIterator() { }
  6051. }
  6052. class IntlCodePointBreakIterator extends IntlBreakIterator implements Traversable {
  6053. /**
  6054. * (PHP 5 &gt;=5.5.0)<br/>
  6055. * Get last code point passed over after advancing or receding the iterator
  6056. * @link https://www.php.net/manual/en/intlcodepointbreakiterator.getlastcodepoint.php
  6057. * @return int
  6058. */
  6059. public function getLastCodePoint() { }
  6060. }
  6061. class UConverter {
  6062. /* Constants */
  6063. const REASON_UNASSIGNED = 0;
  6064. const REASON_ILLEGAL = 1;
  6065. const REASON_IRREGULAR = 2;
  6066. const REASON_RESET = 3;
  6067. const REASON_CLOSE = 4;
  6068. const REASON_CLONE = 5;
  6069. const UNSUPPORTED_CONVERTER = -1;
  6070. const SBCS = 0;
  6071. const DBCS = 1;
  6072. const MBCS = 2;
  6073. const LATIN_1 = 3;
  6074. const UTF8 = 4;
  6075. const UTF16_BigEndian = 5;
  6076. const UTF16_LittleEndian = 6;
  6077. const UTF32_BigEndian = 7;
  6078. const UTF32_LittleEndian = 8;
  6079. const EBCDIC_STATEFUL = 9;
  6080. const ISO_2022 = 10;
  6081. const LMBCS_1 = 11;
  6082. const LMBCS_2 = 12;
  6083. const LMBCS_3 = 13;
  6084. const LMBCS_4 = 14;
  6085. const LMBCS_5 = 15;
  6086. const LMBCS_6 = 16;
  6087. const LMBCS_8 = 17;
  6088. const LMBCS_11 = 18;
  6089. const LMBCS_16 = 19;
  6090. const LMBCS_17 = 20;
  6091. const LMBCS_18 = 21;
  6092. const LMBCS_19 = 22;
  6093. const LMBCS_LAST = 22;
  6094. const HZ = 23;
  6095. const SCSU = 24;
  6096. const ISCII = 25;
  6097. const US_ASCII = 26;
  6098. const UTF7 = 27;
  6099. const BOCU1 = 28;
  6100. const UTF16 = 29;
  6101. const UTF32 = 30;
  6102. const CESU8 = 31;
  6103. const IMAP_MAILBOX = 32;
  6104. /* Methods */
  6105. /**
  6106. * (PHP 5 &gt;=5.5.0)<br/>
  6107. * Create UConverter object
  6108. * @link https://php.net/manual/en/uconverter.construct.php
  6109. * @param string $destination_encoding
  6110. * @param string $source_encoding
  6111. */
  6112. public function __construct($destination_encoding = null, $source_encoding = null) { }
  6113. /**
  6114. * (PHP 5 &gt;=5.5.0)<br/>
  6115. * Convert string from one charset to anothe
  6116. * @link https://php.net/manual/en/uconverter.convert.php
  6117. * @param string $str
  6118. * @param bool $reverse
  6119. * @return string
  6120. */
  6121. public function convert($str, $reverse) { }
  6122. /**
  6123. * (PHP 5 &gt;=5.5.0)<br/>
  6124. * Default "from" callback function
  6125. * @link https://php.net/manual/en/uconverter.fromucallback.php
  6126. * @param int $reason
  6127. * @param string $source
  6128. * @param string $codePoint
  6129. * @param int $error
  6130. * @return mixed
  6131. */
  6132. public function fromUCallback($reason, $source, $codePoint, &$error) { }
  6133. /**
  6134. * (PHP 5 &gt;=5.5.0)<br/>
  6135. * Get the aliases of the given name
  6136. * @link https://php.net/manual/en/uconverter.getaliases.php
  6137. * @param string $name
  6138. * @return array
  6139. */
  6140. public static function getAliases($name = null) { }
  6141. /**
  6142. * (PHP 5 &gt;=5.5.0)<br/>
  6143. * Get the available canonical converter names
  6144. * @link https://php.net/manual/en/uconverter.getavailable.php
  6145. * @return array
  6146. */
  6147. public static function getAvailable() { }
  6148. /**
  6149. * (PHP 5 &gt;=5.5.0)<br/>
  6150. * Get the destination encoding
  6151. * @link https://php.net/manual/en/uconverter.getdestinationencoding.php
  6152. * @return string
  6153. */
  6154. public function getDestinationEncoding() { }
  6155. /**
  6156. * (PHP 5 &gt;=5.5.0)<br/>
  6157. * Get the destination converter type
  6158. * @link https://php.net/manual/en/uconverter.getdestinationtype.php
  6159. * @return int
  6160. */
  6161. public function getDestinationType() { }
  6162. /**
  6163. * (PHP 5 &gt;=5.5.0)<br/>
  6164. * Get last error code on the object
  6165. * @link https://php.net/manual/en/uconverter.geterrorcode.php
  6166. * @return int
  6167. */
  6168. public function getErrorCode() { }
  6169. /**
  6170. * (PHP 5 &gt;=5.5.0)<br/>
  6171. * Get last error message on the object
  6172. * @link https://php.net/manual/en/uconverter.geterrormessage.php
  6173. * @return string
  6174. */
  6175. public function getErrorMessage() { }
  6176. /**
  6177. * (PHP 5 &gt;=5.5.0)<br/>
  6178. * Get the source encoding
  6179. * @link https://php.net/manual/en/uconverter.getsourceencoding.php
  6180. * @return string
  6181. */
  6182. public function getSourceEncoding() { }
  6183. /**
  6184. * (PHP 5 &gt;=5.5.0)<br/>
  6185. * Get the source convertor type
  6186. * @link https://php.net/manual/en/uconverter.getsourcetype.php
  6187. * @return int
  6188. */
  6189. public function getSourceType() { }
  6190. /**
  6191. * (PHP 5 &gt;=5.5.0)<br/>
  6192. * Get standards associated to converter names
  6193. * @link https://php.net/manual/en/uconverter.getstandards.php
  6194. * @return array
  6195. */
  6196. public static function getStandards() { }
  6197. /**
  6198. * (PHP 5 &gt;=5.5.0)<br/>
  6199. * Get substitution chars
  6200. * @link https://php.net/manual/en/uconverter.getsubstchars.php
  6201. * @return string
  6202. */
  6203. public function getSubstChars() { }
  6204. /**
  6205. * (PHP 5 &gt;=5.5.0)<br/>
  6206. * Get string representation of the callback reason
  6207. * @link https://php.net/manual/en/uconverter.reasontext.php
  6208. * @param int $reason
  6209. * @return string
  6210. */
  6211. public static function reasonText($reason) { }
  6212. /**
  6213. * (PHP 5 &gt;=5.5.0)<br/>
  6214. * Set the destination encoding
  6215. * @link https://php.net/manual/en/uconverter.setdestinationencoding.php
  6216. * @param string $encoding
  6217. * @return void
  6218. */
  6219. public function setDestinationEncoding($encoding) { }
  6220. /**
  6221. * (PHP 5 &gt;=5.5.0)<br/>
  6222. * Set the source encoding
  6223. * @link https://php.net/manual/en/uconverter.setsourceencoding.php
  6224. * @param string $encoding
  6225. * @return void
  6226. */
  6227. public function setSourceEncoding($encoding) { }
  6228. /**
  6229. * (PHP 5 &gt;=5.5.0)<br/>
  6230. * Set the substitution chars
  6231. * @link https://php.net/manual/en/uconverter.setsubstchars.php
  6232. * @param string $chars
  6233. * @return void
  6234. */
  6235. public function setSubstChars($chars) { }
  6236. /**
  6237. * (PHP 5 &gt;=5.5.0)<br/>
  6238. * Default "to" callback function
  6239. * @link https://php.net/manual/en/uconverter.toucallback.php
  6240. * @param int $reason
  6241. * @param string $source
  6242. * @param string $codeUnits
  6243. * @param int $error
  6244. * @return mixed
  6245. */
  6246. public function toUCallback($reason, $source, $codeUnits, &$error) { }
  6247. /**
  6248. * (PHP 5 &gt;=5.5.0)<br/>
  6249. * Convert string from one charset to another
  6250. * @link https://php.net/manual/en/uconverter.transcode.php
  6251. * @param string $str
  6252. * @param string $toEncoding
  6253. * @param string $fromEncoding
  6254. * @param array $options
  6255. * @return string
  6256. */
  6257. public static function transcode($str, $toEncoding, $fromEncoding, array $options = []) { }
  6258. }
  6259. // End of intl v.1.1.0
  6260. ?>