autodoc.xml 200 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235
  1. <?xml version="1.0" standalone="yes"?>
  2. <library-reference><header name="boost/algorithm/string.hpp">
  3. <para>Cumulative include for string_algo library </para></header>
  4. <header name="boost/algorithm/string/case_conv.hpp">
  5. <para>Defines sequence case-conversion algorithms. Algorithms convert each element in the input sequence to the desired case using provided locales. </para><namespace name="boost">
  6. <namespace name="algorithm">
  7. <overloaded-function name="to_lower_copy"><signature><type>OutputIteratorT</type><template>
  8. <template-type-parameter name="OutputIteratorT"/>
  9. <template-type-parameter name="RangeT"/>
  10. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input range </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for conversion </para></description></parameter></signature><signature><type>SequenceT</type><template>
  11. <template-type-parameter name="SequenceT"/>
  12. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Convert to lower case. </purpose><description><para>Each element of the input sequence is converted to lower case. The result is a copy of the input converted to lower case. It is returned as a sequence or copied to the output iterator.</para><para>
  13. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  14. </note>
  15. </para></description><returns><para>An output iterator pointing just after the last inserted character or a copy of the input</para>
  16. </returns></overloaded-function>
  17. <function name="to_lower"><type>void</type><template>
  18. <template-type-parameter name="WritableRangeT"/>
  19. </template><parameter name="Input"><paramtype>WritableRangeT &amp;</paramtype><description><para>A range </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>a locale used for conversion </para></description></parameter><purpose>Convert to lower case. </purpose><description><para>Each element of the input sequence is converted to lower case. The input sequence is modified in-place.</para><para>
  20. </para></description></function>
  21. <overloaded-function name="to_upper_copy"><signature><type>OutputIteratorT</type><template>
  22. <template-type-parameter name="OutputIteratorT"/>
  23. <template-type-parameter name="RangeT"/>
  24. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input range </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for conversion </para></description></parameter></signature><signature><type>SequenceT</type><template>
  25. <template-type-parameter name="SequenceT"/>
  26. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Convert to upper case. </purpose><description><para>Each element of the input sequence is converted to upper case. The result is a copy of the input converted to upper case. It is returned as a sequence or copied to the output iterator</para><para>
  27. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  28. </note>
  29. </para></description><returns><para>An output iterator pointing just after the last inserted character or a copy of the input</para>
  30. </returns></overloaded-function>
  31. <function name="to_upper"><type>void</type><template>
  32. <template-type-parameter name="WritableRangeT"/>
  33. </template><parameter name="Input"><paramtype>WritableRangeT &amp;</paramtype><description><para>An input range </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>a locale used for conversion </para></description></parameter><purpose>Convert to upper case. </purpose><description><para>Each element of the input sequence is converted to upper case. The input sequence is modified in-place.</para><para>
  34. </para></description></function>
  35. </namespace>
  36. </namespace>
  37. </header>
  38. <header name="boost/algorithm/string/classification.hpp">
  39. <para>Classification predicates are included in the library to give some more convenience when using algorithms like <computeroutput>trim()</computeroutput> and <computeroutput>all()</computeroutput>. They wrap functionality of STL classification functions ( e.g. <computeroutput>std::isspace()</computeroutput> ) into generic functors. </para><namespace name="boost">
  40. <namespace name="algorithm">
  41. <function name="is_classified"><type><emphasis>unspecified</emphasis></type><parameter name="Type"><paramtype>std::ctype_base::mask</paramtype><description><para>A <computeroutput>std::ctype</computeroutput> category </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_classified predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate. This predicate holds if the input is of specified <computeroutput>std::ctype</computeroutput> category.</para><para>
  42. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  43. </returns></function>
  44. <function name="is_space"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_space predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::space</computeroutput> category.</para><para>
  45. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  46. </returns></function>
  47. <function name="is_alnum"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_alnum predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::alnum</computeroutput> category.</para><para>
  48. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  49. </returns></function>
  50. <function name="is_alpha"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_alpha predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::alpha</computeroutput> category.</para><para>
  51. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  52. </returns></function>
  53. <function name="is_cntrl"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_cntrl predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::cntrl</computeroutput> category.</para><para>
  54. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  55. </returns></function>
  56. <function name="is_digit"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_digit predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::digit</computeroutput> category.</para><para>
  57. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  58. </returns></function>
  59. <function name="is_graph"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_graph predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::graph</computeroutput> category.</para><para>
  60. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  61. </returns></function>
  62. <function name="is_lower"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_lower predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::lower</computeroutput> category.</para><para>
  63. </para></description><returns><para>An instance of <computeroutput>is_classified</computeroutput> predicate </para>
  64. </returns></function>
  65. <function name="is_print"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_print predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::print</computeroutput> category.</para><para>
  66. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  67. </returns></function>
  68. <function name="is_punct"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_punct predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::punct</computeroutput> category.</para><para>
  69. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  70. </returns></function>
  71. <function name="is_upper"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_upper predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::upper</computeroutput> category.</para><para>
  72. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  73. </returns></function>
  74. <function name="is_xdigit"><type><emphasis>unspecified</emphasis></type><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for classification </para></description></parameter><purpose>is_xdigit predicate </purpose><description><para>Construct the <computeroutput>is_classified</computeroutput> predicate for the <computeroutput>ctype_base::xdigit</computeroutput> category.</para><para>
  75. </para></description><returns><para>An instance of the <computeroutput>is_classified</computeroutput> predicate </para>
  76. </returns></function>
  77. <function name="is_any_of"><type><emphasis>unspecified</emphasis></type><template>
  78. <template-type-parameter name="RangeT"/>
  79. </template><parameter name="Set"><paramtype>const RangeT &amp;</paramtype><description><para>A set of characters to be recognized </para></description></parameter><purpose>is_any_of predicate </purpose><description><para>Construct the <computeroutput>is_any_of</computeroutput> predicate. The predicate holds if the input is included in the specified set of characters.</para><para>
  80. </para></description><returns><para>An instance of the <computeroutput>is_any_of</computeroutput> predicate </para>
  81. </returns></function>
  82. <function name="is_from_range"><type><emphasis>unspecified</emphasis></type><template>
  83. <template-type-parameter name="CharT"/>
  84. </template><parameter name="From"><paramtype>CharT</paramtype><description><para>The start of the range </para></description></parameter><parameter name="To"><paramtype>CharT</paramtype><description><para>The end of the range </para></description></parameter><purpose>is_from_range predicate </purpose><description><para>Construct the <computeroutput>is_from_range</computeroutput> predicate. The predicate holds if the input is included in the specified range. (i.e. From &lt;= Ch &lt;= To )</para><para>
  85. </para></description><returns><para>An instance of the <computeroutput>is_from_range</computeroutput> predicate </para>
  86. </returns></function>
  87. <function name="operator&amp;&amp;"><type><emphasis>unspecified</emphasis></type><template>
  88. <template-type-parameter name="Pred1T"/>
  89. <template-type-parameter name="Pred2T"/>
  90. </template><parameter name="Pred1"><paramtype>const predicate_facade&lt; Pred1T &gt; &amp;</paramtype><description><para>The first predicate </para></description></parameter><parameter name="Pred2"><paramtype>const predicate_facade&lt; Pred2T &gt; &amp;</paramtype><description><para>The second predicate </para></description></parameter><purpose>predicate 'and' composition predicate </purpose><description><para>Construct the <computeroutput>class_and</computeroutput> predicate. This predicate can be used to logically combine two classification predicates. <computeroutput>class_and</computeroutput> holds, if both predicates return true.</para><para>
  91. </para></description><returns><para>An instance of the <computeroutput>class_and</computeroutput> predicate </para>
  92. </returns></function>
  93. <function name="operator||"><type><emphasis>unspecified</emphasis></type><template>
  94. <template-type-parameter name="Pred1T"/>
  95. <template-type-parameter name="Pred2T"/>
  96. </template><parameter name="Pred1"><paramtype>const predicate_facade&lt; Pred1T &gt; &amp;</paramtype><description><para>The first predicate </para></description></parameter><parameter name="Pred2"><paramtype>const predicate_facade&lt; Pred2T &gt; &amp;</paramtype><description><para>The second predicate </para></description></parameter><purpose>predicate 'or' composition predicate </purpose><description><para>Construct the <computeroutput>class_or</computeroutput> predicate. This predicate can be used to logically combine two classification predicates. <computeroutput>class_or</computeroutput> holds, if one of the predicates return true.</para><para>
  97. </para></description><returns><para>An instance of the <computeroutput>class_or</computeroutput> predicate </para>
  98. </returns></function>
  99. <function name="operator!"><type><emphasis>unspecified</emphasis></type><template>
  100. <template-type-parameter name="PredT"/>
  101. </template><parameter name="Pred"><paramtype>const predicate_facade&lt; PredT &gt; &amp;</paramtype><description><para>The predicate to be negated </para></description></parameter><purpose>predicate negation operator </purpose><description><para>Construct the <computeroutput>class_not</computeroutput> predicate. This predicate represents a negation. <computeroutput>class_or</computeroutput> holds if of the predicates return false.</para><para>
  102. </para></description><returns><para>An instance of the <computeroutput>class_not</computeroutput> predicate </para>
  103. </returns></function>
  104. </namespace>
  105. </namespace>
  106. </header>
  107. <header name="boost/algorithm/string/compare.hpp">
  108. <para>Defines element comparison predicates. Many algorithms in this library can take an additional argument with a predicate used to compare elements. This makes it possible, for instance, to have case insensitive versions of the algorithms. </para><namespace name="boost">
  109. <namespace name="algorithm">
  110. <struct name="is_equal"><purpose><classname alt="boost::algorithm::is_equal">is_equal</classname> functor </purpose><description><para>Standard STL equal_to only handle comparison between arguments of the same type. This is a less restrictive version which wraps operator ==. </para></description><method-group name="public member functions">
  111. <method name="operator()" cv="const"><type>bool</type><template>
  112. <template-type-parameter name="T1"/>
  113. <template-type-parameter name="T2"/>
  114. </template><parameter name="Arg1"><paramtype>const T1 &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const T2 &amp;</paramtype></parameter><purpose>Function operator. </purpose><description><para>Compare two operands for equality </para></description></method>
  115. </method-group>
  116. </struct><struct name="is_iequal"><purpose>case insensitive version of <classname alt="boost::algorithm::is_equal">is_equal</classname> </purpose><description><para>Case insensitive comparison predicate. Comparison is done using specified locales. </para></description><method-group name="public member functions">
  117. <method name="operator()" cv="const"><type>bool</type><template>
  118. <template-type-parameter name="T1"/>
  119. <template-type-parameter name="T2"/>
  120. </template><parameter name="Arg1"><paramtype>const T1 &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const T2 &amp;</paramtype></parameter><purpose>Function operator. </purpose><description><para>Compare two operands. Case is ignored. </para></description></method>
  121. </method-group>
  122. <constructor><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>locales used for comparison </para></description></parameter><purpose>Constructor. </purpose><description><para>
  123. </para></description></constructor>
  124. </struct><struct name="is_iless"><purpose>case insensitive version of <classname alt="boost::algorithm::is_less">is_less</classname> </purpose><description><para>Case insensitive comparison predicate. Comparison is done using specified locales. </para></description><method-group name="public member functions">
  125. <method name="operator()" cv="const"><type>bool</type><template>
  126. <template-type-parameter name="T1"/>
  127. <template-type-parameter name="T2"/>
  128. </template><parameter name="Arg1"><paramtype>const T1 &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const T2 &amp;</paramtype></parameter><purpose>Function operator. </purpose><description><para>Compare two operands. Case is ignored. </para></description></method>
  129. </method-group>
  130. <constructor><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>locales used for comparison </para></description></parameter><purpose>Constructor. </purpose><description><para>
  131. </para></description></constructor>
  132. </struct><struct name="is_less"><purpose><classname alt="boost::algorithm::is_less">is_less</classname> functor </purpose><description><para>Convenient version of standard std::less. Operation is templated, therefore it is not required to specify the exact types upon the construction </para></description><method-group name="public member functions">
  133. <method name="operator()" cv="const"><type>bool</type><template>
  134. <template-type-parameter name="T1"/>
  135. <template-type-parameter name="T2"/>
  136. </template><parameter name="Arg1"><paramtype>const T1 &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const T2 &amp;</paramtype></parameter><purpose>Functor operation. </purpose><description><para>Compare two operands using &gt; operator </para></description></method>
  137. </method-group>
  138. </struct><struct name="is_not_greater"><purpose><classname alt="boost::algorithm::is_not_greater">is_not_greater</classname> functor </purpose><description><para>Convenient version of standard std::not_greater_to. Operation is templated, therefore it is not required to specify the exact types upon the construction </para></description><method-group name="public member functions">
  139. <method name="operator()" cv="const"><type>bool</type><template>
  140. <template-type-parameter name="T1"/>
  141. <template-type-parameter name="T2"/>
  142. </template><parameter name="Arg1"><paramtype>const T1 &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const T2 &amp;</paramtype></parameter><purpose>Functor operation. </purpose><description><para>Compare two operands using &gt; operator </para></description></method>
  143. </method-group>
  144. </struct><struct name="is_not_igreater"><purpose>case insensitive version of <classname alt="boost::algorithm::is_not_greater">is_not_greater</classname> </purpose><description><para>Case insensitive comparison predicate. Comparison is done using specified locales. </para></description><method-group name="public member functions">
  145. <method name="operator()" cv="const"><type>bool</type><template>
  146. <template-type-parameter name="T1"/>
  147. <template-type-parameter name="T2"/>
  148. </template><parameter name="Arg1"><paramtype>const T1 &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const T2 &amp;</paramtype></parameter><purpose>Function operator. </purpose><description><para>Compare two operands. Case is ignored. </para></description></method>
  149. </method-group>
  150. <constructor><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>locales used for comparison </para></description></parameter><purpose>Constructor. </purpose><description><para>
  151. </para></description></constructor>
  152. </struct>
  153. </namespace>
  154. </namespace>
  155. </header>
  156. <header name="boost/algorithm/string/concept.hpp">
  157. <para>Defines concepts used in string_algo library </para><namespace name="boost">
  158. <namespace name="algorithm">
  159. <struct name="FinderConcept"><template>
  160. <template-type-parameter name="FinderT"/>
  161. <template-type-parameter name="IteratorT"/>
  162. </template><purpose>Finder concept. </purpose><description><para>Defines the Finder concept. Finder is a functor which selects an arbitrary part of a string. Search is performed on the range specified by starting and ending iterators.</para><para>Result of the find operation must be convertible to iterator_range. </para></description><method-group name="public member functions">
  163. <method name="constraints"><type>void</type></method>
  164. </method-group>
  165. </struct><struct name="FormatterConcept"><template>
  166. <template-type-parameter name="FormatterT"/>
  167. <template-type-parameter name="FinderT"/>
  168. <template-type-parameter name="IteratorT"/>
  169. </template><purpose>Formatter concept. </purpose><description><para>Defines the Formatter concept. Formatter is a functor, which takes a result from a finder operation and transforms it in a specific way.</para><para>Result must be a container supported by container_traits, or a reference to it. </para></description><method-group name="public member functions">
  170. <method name="constraints"><type>void</type></method>
  171. </method-group>
  172. </struct>
  173. </namespace>
  174. </namespace>
  175. </header>
  176. <header name="boost/algorithm/string/constants.hpp">
  177. <namespace name="boost">
  178. <namespace name="algorithm">
  179. <enum name="token_compress_mode_type"><enumvalue name="token_compress_on"><purpose>Compress adjacent tokens. </purpose></enumvalue><enumvalue name="token_compress_off"><purpose>Do not compress adjacent tokens. </purpose></enumvalue><purpose>Token compression mode. </purpose><description><para>Specifies token compression mode for the token_finder. </para></description></enum>
  180. </namespace>
  181. </namespace>
  182. </header>
  183. <header name="boost/algorithm/string/erase.hpp">
  184. <para>Defines various erase algorithms. Each algorithm removes part(s) of the input according to a searching criteria. </para><namespace name="boost">
  185. <namespace name="algorithm">
  186. <overloaded-function name="erase_range_copy"><signature><type>OutputIteratorT</type><template>
  187. <template-type-parameter name="OutputIteratorT"/>
  188. <template-type-parameter name="RangeT"/>
  189. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="SearchRange"><paramtype>const iterator_range&lt; typename range_const_iterator&lt; RangeT &gt;::type &gt; &amp;</paramtype><description><para>A range in the input to be removed </para></description></parameter></signature><signature><type>SequenceT</type><template>
  190. <template-type-parameter name="SequenceT"/>
  191. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="SearchRange"><paramtype>const iterator_range&lt; typename range_const_iterator&lt; SequenceT &gt;::type &gt; &amp;</paramtype></parameter></signature><purpose>Erase range algorithm. </purpose><description><para>Remove the given range from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  192. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  193. </note>
  194. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  195. </returns></overloaded-function>
  196. <function name="erase_range"><type>void</type><template>
  197. <template-type-parameter name="SequenceT"/>
  198. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="SearchRange"><paramtype>const iterator_range&lt; typename range_iterator&lt; SequenceT &gt;::type &gt; &amp;</paramtype><description><para>A range in the input to be removed </para></description></parameter><purpose>Erase range algorithm. </purpose><description><para>Remove the given range from the input. The input sequence is modified in-place.</para><para>
  199. </para></description></function>
  200. <overloaded-function name="erase_first_copy"><signature><type>OutputIteratorT</type><template>
  201. <template-type-parameter name="OutputIteratorT"/>
  202. <template-type-parameter name="Range1T"/>
  203. <template-type-parameter name="Range2T"/>
  204. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter></signature><signature><type>SequenceT</type><template>
  205. <template-type-parameter name="SequenceT"/>
  206. <template-type-parameter name="RangeT"/>
  207. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter></signature><purpose>Erase first algorithm. </purpose><description><para>Remove the first occurrence of the substring from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  208. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  209. </note>
  210. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  211. </returns></overloaded-function>
  212. <function name="erase_first"><type>void</type><template>
  213. <template-type-parameter name="SequenceT"/>
  214. <template-type-parameter name="RangeT"/>
  215. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><purpose>Erase first algorithm. </purpose><description><para>Remove the first occurrence of the substring from the input. The input sequence is modified in-place.</para><para>
  216. </para></description></function>
  217. <overloaded-function name="ierase_first_copy"><signature><type>OutputIteratorT</type><template>
  218. <template-type-parameter name="OutputIteratorT"/>
  219. <template-type-parameter name="Range1T"/>
  220. <template-type-parameter name="Range2T"/>
  221. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  222. <template-type-parameter name="SequenceT"/>
  223. <template-type-parameter name="RangeT"/>
  224. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Erase first algorithm ( case insensitive ) </purpose><description><para>Remove the first occurrence of the substring from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  225. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  226. </note>
  227. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  228. </returns></overloaded-function>
  229. <function name="ierase_first"><type>void</type><template>
  230. <template-type-parameter name="SequenceT"/>
  231. <template-type-parameter name="RangeT"/>
  232. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Erase first algorithm ( case insensitive ) </purpose><description><para>Remove the first occurrence of the substring from the input. The input sequence is modified in-place. Searching is case insensitive.</para><para>
  233. </para></description></function>
  234. <overloaded-function name="erase_last_copy"><signature><type>OutputIteratorT</type><template>
  235. <template-type-parameter name="OutputIteratorT"/>
  236. <template-type-parameter name="Range1T"/>
  237. <template-type-parameter name="Range2T"/>
  238. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter></signature><signature><type>SequenceT</type><template>
  239. <template-type-parameter name="SequenceT"/>
  240. <template-type-parameter name="RangeT"/>
  241. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter></signature><purpose>Erase last algorithm. </purpose><description><para>Remove the last occurrence of the substring from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  242. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  243. </note>
  244. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  245. </returns></overloaded-function>
  246. <function name="erase_last"><type>void</type><template>
  247. <template-type-parameter name="SequenceT"/>
  248. <template-type-parameter name="RangeT"/>
  249. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><purpose>Erase last algorithm. </purpose><description><para>Remove the last occurrence of the substring from the input. The input sequence is modified in-place.</para><para>
  250. </para></description></function>
  251. <overloaded-function name="ierase_last_copy"><signature><type>OutputIteratorT</type><template>
  252. <template-type-parameter name="OutputIteratorT"/>
  253. <template-type-parameter name="Range1T"/>
  254. <template-type-parameter name="Range2T"/>
  255. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  256. <template-type-parameter name="SequenceT"/>
  257. <template-type-parameter name="RangeT"/>
  258. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Erase last algorithm ( case insensitive ) </purpose><description><para>Remove the last occurrence of the substring from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  259. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  260. </note>
  261. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  262. </returns></overloaded-function>
  263. <function name="ierase_last"><type>void</type><template>
  264. <template-type-parameter name="SequenceT"/>
  265. <template-type-parameter name="RangeT"/>
  266. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Erase last algorithm ( case insensitive ) </purpose><description><para>Remove the last occurrence of the substring from the input. The input sequence is modified in-place. Searching is case insensitive.</para><para>
  267. </para></description></function>
  268. <overloaded-function name="erase_nth_copy"><signature><type>OutputIteratorT</type><template>
  269. <template-type-parameter name="OutputIteratorT"/>
  270. <template-type-parameter name="Range1T"/>
  271. <template-type-parameter name="Range2T"/>
  272. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter></signature><signature><type>SequenceT</type><template>
  273. <template-type-parameter name="SequenceT"/>
  274. <template-type-parameter name="RangeT"/>
  275. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Nth"><paramtype>int</paramtype></parameter></signature><purpose>Erase nth algorithm. </purpose><description><para>Remove the Nth occurrence of the substring in the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  276. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  277. </note>
  278. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  279. </returns></overloaded-function>
  280. <function name="erase_nth"><type>void</type><template>
  281. <template-type-parameter name="SequenceT"/>
  282. <template-type-parameter name="RangeT"/>
  283. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><purpose>Erase nth algorithm. </purpose><description><para>Remove the Nth occurrence of the substring in the input. The input sequence is modified in-place.</para><para>
  284. </para></description></function>
  285. <overloaded-function name="ierase_nth_copy"><signature><type>OutputIteratorT</type><template>
  286. <template-type-parameter name="OutputIteratorT"/>
  287. <template-type-parameter name="Range1T"/>
  288. <template-type-parameter name="Range2T"/>
  289. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  290. <template-type-parameter name="SequenceT"/>
  291. <template-type-parameter name="RangeT"/>
  292. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Nth"><paramtype>int</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Erase nth algorithm ( case insensitive ) </purpose><description><para>Remove the Nth occurrence of the substring in the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  293. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  294. </note>
  295. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  296. </returns></overloaded-function>
  297. <function name="ierase_nth"><type>void</type><template>
  298. <template-type-parameter name="SequenceT"/>
  299. <template-type-parameter name="RangeT"/>
  300. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Erase nth algorithm. </purpose><description><para>Remove the Nth occurrence of the substring in the input. The input sequence is modified in-place. Searching is case insensitive.</para><para>
  301. </para></description></function>
  302. <overloaded-function name="erase_all_copy"><signature><type>OutputIteratorT</type><template>
  303. <template-type-parameter name="OutputIteratorT"/>
  304. <template-type-parameter name="Range1T"/>
  305. <template-type-parameter name="Range2T"/>
  306. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter></signature><signature><type>SequenceT</type><template>
  307. <template-type-parameter name="SequenceT"/>
  308. <template-type-parameter name="RangeT"/>
  309. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter></signature><purpose>Erase all algorithm. </purpose><description><para>Remove all the occurrences of the string from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  310. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  311. </note>
  312. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  313. </returns></overloaded-function>
  314. <function name="erase_all"><type>void</type><template>
  315. <template-type-parameter name="SequenceT"/>
  316. <template-type-parameter name="RangeT"/>
  317. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><purpose>Erase all algorithm. </purpose><description><para>Remove all the occurrences of the string from the input. The input sequence is modified in-place.</para><para>
  318. </para></description></function>
  319. <overloaded-function name="ierase_all_copy"><signature><type>OutputIteratorT</type><template>
  320. <template-type-parameter name="OutputIteratorT"/>
  321. <template-type-parameter name="Range1T"/>
  322. <template-type-parameter name="Range2T"/>
  323. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  324. <template-type-parameter name="SequenceT"/>
  325. <template-type-parameter name="RangeT"/>
  326. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Erase all algorithm ( case insensitive ) </purpose><description><para>Remove all the occurrences of the string from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  327. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  328. </note>
  329. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  330. </returns></overloaded-function>
  331. <function name="ierase_all"><type>void</type><template>
  332. <template-type-parameter name="SequenceT"/>
  333. <template-type-parameter name="RangeT"/>
  334. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Erase all algorithm ( case insensitive ) </purpose><description><para>Remove all the occurrences of the string from the input. The input sequence is modified in-place. Searching is case insensitive.</para><para>
  335. </para></description></function>
  336. <overloaded-function name="erase_head_copy"><signature><type>OutputIteratorT</type><template>
  337. <template-type-parameter name="OutputIteratorT"/>
  338. <template-type-parameter name="RangeT"/>
  339. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the head. For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter></signature><signature><type>SequenceT</type><template>
  340. <template-type-parameter name="SequenceT"/>
  341. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="N"><paramtype>int</paramtype></parameter></signature><purpose>Erase head algorithm. </purpose><description><para>Remove the head from the input. The head is a prefix of a sequence of given size. If the sequence is shorter then required, the whole string is considered to be the head. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  342. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  343. </note>
  344. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  345. </returns></overloaded-function>
  346. <function name="erase_head"><type>void</type><template>
  347. <template-type-parameter name="SequenceT"/>
  348. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the head For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter><purpose>Erase head algorithm. </purpose><description><para>Remove the head from the input. The head is a prefix of a sequence of given size. If the sequence is shorter then required, the whole string is considered to be the head. The input sequence is modified in-place.</para><para>
  349. </para></description></function>
  350. <overloaded-function name="erase_tail_copy"><signature><type>OutputIteratorT</type><template>
  351. <template-type-parameter name="OutputIteratorT"/>
  352. <template-type-parameter name="RangeT"/>
  353. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the tail.</para></description></parameter></signature><signature><type>SequenceT</type><template>
  354. <template-type-parameter name="SequenceT"/>
  355. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="N"><paramtype>int</paramtype></parameter></signature><purpose>Erase tail algorithm. </purpose><description><para>Remove the tail from the input. The tail is a suffix of a sequence of given size. If the sequence is shorter then required, the whole string is considered to be the tail. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  356. For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted.
  357. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  358. </note>
  359. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  360. </returns></overloaded-function>
  361. <function name="erase_tail"><type>void</type><template>
  362. <template-type-parameter name="SequenceT"/>
  363. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the tail For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter><purpose>Erase tail algorithm. </purpose><description><para>Remove the tail from the input. The tail is a suffix of a sequence of given size. If the sequence is shorter then required, the whole string is considered to be the tail. The input sequence is modified in-place.</para><para>
  364. </para></description></function>
  365. </namespace>
  366. </namespace>
  367. </header>
  368. <header name="boost/algorithm/string/find.hpp">
  369. <para>Defines a set of find algorithms. The algorithms are searching for a substring of the input. The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the substring. </para><namespace name="boost">
  370. <namespace name="algorithm">
  371. <function name="find"><type>iterator_range&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  372. <template-type-parameter name="RangeT"/>
  373. <template-type-parameter name="FinderT"/>
  374. </template><parameter name="Input"><paramtype>RangeT &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Finder"><paramtype>const FinderT &amp;</paramtype><description><para>Finder object used for searching. </para></description></parameter><purpose>Generic find algorithm. </purpose><description><para>Search the input using the given finder.</para><para>
  375. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>RangeT::iterator</computeroutput> or <computeroutput>RangeT::const_iterator</computeroutput>, depending on the constness of the input parameter. </para>
  376. </returns></function>
  377. <function name="find_first"><type>iterator_range&lt; typename range_iterator&lt; Range1T &gt;::type &gt;</type><template>
  378. <template-type-parameter name="Range1T"/>
  379. <template-type-parameter name="Range2T"/>
  380. </template><parameter name="Input"><paramtype>Range1T &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><purpose>Find first algorithm. </purpose><description><para>Search for the first occurrence of the substring in the input.</para><para>
  381. <note><para>This function provides the strong exception-safety guarantee </para>
  382. </note>
  383. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>RangeT::iterator</computeroutput> or <computeroutput>RangeT::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  384. </returns></function>
  385. <function name="ifind_first"><type>iterator_range&lt; typename range_iterator&lt; Range1T &gt;::type &gt;</type><template>
  386. <template-type-parameter name="Range1T"/>
  387. <template-type-parameter name="Range2T"/>
  388. </template><parameter name="Input"><paramtype>Range1T &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Find first algorithm ( case insensitive ) </purpose><description><para>Search for the first occurrence of the substring in the input. Searching is case insensitive.</para><para>
  389. <note><para>This function provides the strong exception-safety guarantee </para>
  390. </note>
  391. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>Range1T::iterator</computeroutput> or <computeroutput>Range1T::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  392. </returns></function>
  393. <function name="find_last"><type>iterator_range&lt; typename range_iterator&lt; Range1T &gt;::type &gt;</type><template>
  394. <template-type-parameter name="Range1T"/>
  395. <template-type-parameter name="Range2T"/>
  396. </template><parameter name="Input"><paramtype>Range1T &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><purpose>Find last algorithm. </purpose><description><para>Search for the last occurrence of the substring in the input.</para><para>
  397. <note><para>This function provides the strong exception-safety guarantee </para>
  398. </note>
  399. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>Range1T::iterator</computeroutput> or <computeroutput>Range1T::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  400. </returns></function>
  401. <function name="ifind_last"><type>iterator_range&lt; typename range_iterator&lt; Range1T &gt;::type &gt;</type><template>
  402. <template-type-parameter name="Range1T"/>
  403. <template-type-parameter name="Range2T"/>
  404. </template><parameter name="Input"><paramtype>Range1T &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Find last algorithm ( case insensitive ) </purpose><description><para>Search for the last match a string in the input. Searching is case insensitive.</para><para>
  405. <note><para>This function provides the strong exception-safety guarantee </para>
  406. </note>
  407. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>Range1T::iterator</computeroutput> or <computeroutput>Range1T::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  408. </returns></function>
  409. <function name="find_nth"><type>iterator_range&lt; typename range_iterator&lt; Range1T &gt;::type &gt;</type><template>
  410. <template-type-parameter name="Range1T"/>
  411. <template-type-parameter name="Range2T"/>
  412. </template><parameter name="Input"><paramtype>Range1T &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index (zero-indexed) of the match to be found. For negative N, the matches are counted from the end of string. </para></description></parameter><purpose>Find n-th algorithm. </purpose><description><para>Search for the n-th (zero-indexed) occurrence of the substring in the input.</para><para>
  413. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>Range1T::iterator</computeroutput> or <computeroutput>Range1T::const_iterator</computeroutput>, depending on the constness of the input parameter. </para>
  414. </returns></function>
  415. <function name="ifind_nth"><type>iterator_range&lt; typename range_iterator&lt; Range1T &gt;::type &gt;</type><template>
  416. <template-type-parameter name="Range1T"/>
  417. <template-type-parameter name="Range2T"/>
  418. </template><parameter name="Input"><paramtype>Range1T &amp;</paramtype><description><para>A string which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index (zero-indexed) of the match to be found. For negative N, the matches are counted from the end of string. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Find n-th algorithm ( case insensitive ). </purpose><description><para>Search for the n-th (zero-indexed) occurrence of the substring in the input. Searching is case insensitive.</para><para>
  419. <note><para>This function provides the strong exception-safety guarantee </para>
  420. </note>
  421. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>Range1T::iterator</computeroutput> or <computeroutput>Range1T::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  422. </returns></function>
  423. <function name="find_head"><type>iterator_range&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  424. <template-type-parameter name="RangeT"/>
  425. </template><parameter name="Input"><paramtype>RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the head For N&gt;=0, at most N characters are extracted. For N&lt;0, at most size(Input)-|N| characters are extracted. </para></description></parameter><purpose>Find head algorithm. </purpose><description><para>Get the head of the input. Head is a prefix of the string of the given size. If the input is shorter then required, whole input is considered to be the head.</para><para>
  426. <note><para>This function provides the strong exception-safety guarantee </para>
  427. </note>
  428. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>Range1T::iterator</computeroutput> or <computeroutput>Range1T::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  429. </returns></function>
  430. <function name="find_tail"><type>iterator_range&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  431. <template-type-parameter name="RangeT"/>
  432. </template><parameter name="Input"><paramtype>RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the tail. For N&gt;=0, at most N characters are extracted. For N&lt;0, at most size(Input)-|N| characters are extracted. </para></description></parameter><purpose>Find tail algorithm. </purpose><description><para>Get the tail of the input. Tail is a suffix of the string of the given size. If the input is shorter then required, whole input is considered to be the tail.</para><para>
  433. <note><para>This function provides the strong exception-safety guarantee </para>
  434. </note>
  435. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>RangeT::iterator</computeroutput> or <computeroutput>RangeT::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  436. </returns></function>
  437. <function name="find_token"><type>iterator_range&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  438. <template-type-parameter name="RangeT"/>
  439. <template-type-parameter name="PredicateT"/>
  440. </template><parameter name="Input"><paramtype>RangeT &amp;</paramtype><description><para>A input string. </para></description></parameter><parameter name="Pred"><paramtype>PredicateT</paramtype><description><para>A unary predicate to identify a token </para></description></parameter><parameter name="eCompress"><paramtype>token_compress_mode_type</paramtype><default>token_compress_off</default><description><para>Enable/Disable compressing of adjacent tokens </para></description></parameter><purpose>Find token algorithm. </purpose><description><para>Look for a given token in the string. Token is a character that matches the given predicate. If the "token compress mode" is enabled, adjacent tokens are considered to be one match.</para><para>
  441. <note><para>This function provides the strong exception-safety guarantee </para>
  442. </note>
  443. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>RangeT::iterator</computeroutput> or <computeroutput>RangeT::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  444. </returns></function>
  445. </namespace>
  446. </namespace>
  447. </header>
  448. <header name="boost/algorithm/string/find_format.hpp">
  449. <para>Defines generic replace algorithms. Each algorithm replaces part(s) of the input. The part to be replaced is looked up using a Finder object. Result of finding is then used by a Formatter object to generate the replacement. </para><namespace name="boost">
  450. <namespace name="algorithm">
  451. <overloaded-function name="find_format_copy"><signature><type>OutputIteratorT</type><template>
  452. <template-type-parameter name="OutputIteratorT"/>
  453. <template-type-parameter name="RangeT"/>
  454. <template-type-parameter name="FinderT"/>
  455. <template-type-parameter name="FormatterT"/>
  456. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Finder"><paramtype>FinderT</paramtype><description><para>A Finder object used to search for a match to be replaced </para></description></parameter><parameter name="Formatter"><paramtype>FormatterT</paramtype><description><para>A Formatter object used to format a match </para></description></parameter></signature><signature><type>SequenceT</type><template>
  457. <template-type-parameter name="SequenceT"/>
  458. <template-type-parameter name="FinderT"/>
  459. <template-type-parameter name="FormatterT"/>
  460. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><parameter name="Formatter"><paramtype>FormatterT</paramtype></parameter></signature><purpose>Generic replace algorithm. </purpose><description><para>Use the Finder to search for a substring. Use the Formatter to format this substring and replace it in the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  461. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  462. </note>
  463. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  464. </returns></overloaded-function>
  465. <function name="find_format"><type>void</type><template>
  466. <template-type-parameter name="SequenceT"/>
  467. <template-type-parameter name="FinderT"/>
  468. <template-type-parameter name="FormatterT"/>
  469. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Finder"><paramtype>FinderT</paramtype><description><para>A Finder object used to search for a match to be replaced </para></description></parameter><parameter name="Formatter"><paramtype>FormatterT</paramtype><description><para>A Formatter object used to format a match </para></description></parameter><purpose>Generic replace algorithm. </purpose><description><para>Use the Finder to search for a substring. Use the Formatter to format this substring and replace it in the input. The input is modified in-place.</para><para>
  470. </para></description></function>
  471. <overloaded-function name="find_format_all_copy"><signature><type>OutputIteratorT</type><template>
  472. <template-type-parameter name="OutputIteratorT"/>
  473. <template-type-parameter name="RangeT"/>
  474. <template-type-parameter name="FinderT"/>
  475. <template-type-parameter name="FormatterT"/>
  476. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Finder"><paramtype>FinderT</paramtype><description><para>A Finder object used to search for a match to be replaced </para></description></parameter><parameter name="Formatter"><paramtype>FormatterT</paramtype><description><para>A Formatter object used to format a match </para></description></parameter></signature><signature><type>SequenceT</type><template>
  477. <template-type-parameter name="SequenceT"/>
  478. <template-type-parameter name="FinderT"/>
  479. <template-type-parameter name="FormatterT"/>
  480. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><parameter name="Formatter"><paramtype>FormatterT</paramtype></parameter></signature><purpose>Generic replace all algorithm. </purpose><description><para>Use the Finder to search for a substring. Use the Formatter to format this substring and replace it in the input. Repeat this for all matching substrings. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  481. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  482. </note>
  483. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  484. </returns></overloaded-function>
  485. <function name="find_format_all"><type>void</type><template>
  486. <template-type-parameter name="SequenceT"/>
  487. <template-type-parameter name="FinderT"/>
  488. <template-type-parameter name="FormatterT"/>
  489. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Finder"><paramtype>FinderT</paramtype><description><para>A Finder object used to search for a match to be replaced </para></description></parameter><parameter name="Formatter"><paramtype>FormatterT</paramtype><description><para>A Formatter object used to format a match </para></description></parameter><purpose>Generic replace all algorithm. </purpose><description><para>Use the Finder to search for a substring. Use the Formatter to format this substring and replace it in the input. Repeat this for all matching substrings.The input is modified in-place.</para><para>
  490. </para></description></function>
  491. </namespace>
  492. </namespace>
  493. </header>
  494. <header name="boost/algorithm/string/find_iterator.hpp">
  495. <para>Defines find iterator classes. Find iterator repeatedly applies a Finder to the specified input string to search for matches. Dereferencing the iterator yields the current match or a range between the last and the current match depending on the iterator used. </para><namespace name="boost">
  496. <namespace name="algorithm">
  497. <class name="find_iterator"><template>
  498. <template-type-parameter name="IteratorT"/>
  499. </template><inherit access="public">iterator_facade&lt; find_iterator&lt; IteratorT &gt;, const iterator_range&lt; IteratorT &gt;, forward_traversal_tag &gt;</inherit><purpose><classname alt="boost::algorithm::find_iterator">find_iterator</classname> </purpose><description><para>Find iterator encapsulates a Finder and allows for incremental searching in a string. Each increment moves the iterator to the next match.</para><para>Find iterator is a readable forward traversal iterator.</para><para>Dereferencing the iterator yields an iterator_range delimiting the current match. </para></description><method-group name="public member functions">
  500. <method name="eof" cv="const"><type>bool</type><purpose>Eof check. </purpose><description><para>Check the eof condition. Eof condition means that there is nothing more to be searched i.e. <classname alt="boost::algorithm::find_iterator">find_iterator</classname> is after the last match. </para></description></method>
  501. </method-group>
  502. <constructor><purpose>Default constructor. </purpose><description><para>Construct null iterator. All null iterators are equal.</para><para>
  503. </para></description><postconditions><para>eof()==true </para>
  504. </postconditions></constructor>
  505. <constructor><parameter name="Other"><paramtype>const <classname>find_iterator</classname> &amp;</paramtype></parameter><purpose>Copy constructor. </purpose><description><para>Construct a copy of the <classname alt="boost::algorithm::find_iterator">find_iterator</classname> </para></description></constructor>
  506. <constructor><template>
  507. <template-type-parameter name="FinderT"/>
  508. </template><parameter name="Begin"><paramtype>IteratorT</paramtype></parameter><parameter name="End"><paramtype>IteratorT</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><purpose>Constructor. </purpose><description><para>Construct new <classname alt="boost::algorithm::find_iterator">find_iterator</classname> for a given finder and a range. </para></description></constructor>
  509. <constructor><template>
  510. <template-type-parameter name="FinderT"/>
  511. <template-type-parameter name="RangeT"/>
  512. </template><parameter name="Col"><paramtype>RangeT &amp;</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><purpose>Constructor. </purpose><description><para>Construct new <classname alt="boost::algorithm::find_iterator">find_iterator</classname> for a given finder and a range. </para></description></constructor>
  513. <method-group name="private member functions">
  514. <method name="dereference" cv="const"><type>const match_type &amp;</type></method>
  515. <method name="increment"><type>void</type></method>
  516. <method name="equal" cv="const"><type>bool</type><parameter name="Other"><paramtype>const <classname>find_iterator</classname> &amp;</paramtype></parameter></method>
  517. </method-group>
  518. </class><class name="split_iterator"><template>
  519. <template-type-parameter name="IteratorT"/>
  520. </template><inherit access="public">iterator_facade&lt; split_iterator&lt; IteratorT &gt;, const iterator_range&lt; IteratorT &gt;, forward_traversal_tag &gt;</inherit><purpose><classname alt="boost::algorithm::split_iterator">split_iterator</classname> </purpose><description><para>Split iterator encapsulates a Finder and allows for incremental searching in a string. Unlike the find iterator, split iterator iterates through gaps between matches.</para><para>Find iterator is a readable forward traversal iterator.</para><para>Dereferencing the iterator yields an iterator_range delimiting the current match. </para></description><method-group name="public member functions">
  521. <method name="eof" cv="const"><type>bool</type><purpose>Eof check. </purpose><description><para>Check the eof condition. Eof condition means that there is nothing more to be searched i.e. <classname alt="boost::algorithm::find_iterator">find_iterator</classname> is after the last match. </para></description></method>
  522. </method-group>
  523. <constructor><purpose>Default constructor. </purpose><description><para>Construct null iterator. All null iterators are equal.</para><para>
  524. </para></description><postconditions><para>eof()==true </para>
  525. </postconditions></constructor>
  526. <constructor><parameter name="Other"><paramtype>const <classname>split_iterator</classname> &amp;</paramtype></parameter><purpose>Copy constructor. </purpose><description><para>Construct a copy of the <classname alt="boost::algorithm::split_iterator">split_iterator</classname> </para></description></constructor>
  527. <constructor><template>
  528. <template-type-parameter name="FinderT"/>
  529. </template><parameter name="Begin"><paramtype>IteratorT</paramtype></parameter><parameter name="End"><paramtype>IteratorT</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><purpose>Constructor. </purpose><description><para>Construct new <classname alt="boost::algorithm::split_iterator">split_iterator</classname> for a given finder and a range. </para></description></constructor>
  530. <constructor><template>
  531. <template-type-parameter name="FinderT"/>
  532. <template-type-parameter name="RangeT"/>
  533. </template><parameter name="Col"><paramtype>RangeT &amp;</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><purpose>Constructor. </purpose><description><para>Construct new <classname alt="boost::algorithm::split_iterator">split_iterator</classname> for a given finder and a collection. </para></description></constructor>
  534. <method-group name="private member functions">
  535. <method name="dereference" cv="const"><type>const match_type &amp;</type></method>
  536. <method name="increment"><type>void</type></method>
  537. <method name="equal" cv="const"><type>bool</type><parameter name="Other"><paramtype>const <classname>split_iterator</classname> &amp;</paramtype></parameter></method>
  538. </method-group>
  539. </class>
  540. <function name="make_find_iterator"><type><classname>find_iterator</classname>&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  541. <template-type-parameter name="RangeT"/>
  542. <template-type-parameter name="FinderT"/>
  543. </template><parameter name="Collection"><paramtype>RangeT &amp;</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><purpose>find iterator construction helper </purpose><description><para>Construct a find iterator to iterate through the specified string </para></description></function>
  544. <function name="make_split_iterator"><type><classname>split_iterator</classname>&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  545. <template-type-parameter name="RangeT"/>
  546. <template-type-parameter name="FinderT"/>
  547. </template><parameter name="Collection"><paramtype>RangeT &amp;</paramtype></parameter><parameter name="Finder"><paramtype>FinderT</paramtype></parameter><purpose>split iterator construction helper </purpose><description><para>Construct a split iterator to iterate through the specified collection </para></description></function>
  548. </namespace>
  549. </namespace>
  550. </header>
  551. <header name="boost/algorithm/string/finder.hpp">
  552. <para>Defines Finder generators. Finder object is a functor which is able to find a substring matching a specific criteria in the input. Finders are used as a pluggable components for replace, find and split facilities. This header contains generator functions for finders provided in this library. </para><namespace name="boost">
  553. <namespace name="algorithm">
  554. <overloaded-function name="first_finder"><signature><type><emphasis>unspecified</emphasis></type><template>
  555. <template-type-parameter name="RangeT"/>
  556. </template><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter></signature><signature><type><emphasis>unspecified</emphasis></type><template>
  557. <template-type-parameter name="RangeT"/>
  558. <template-type-parameter name="PredicateT"/>
  559. </template><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype></parameter></signature><purpose>"First" finder </purpose><description><para>Construct the <computeroutput>first_finder</computeroutput>. The finder searches for the first occurrence of the string in a given input. The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the match.</para><para>
  560. </para></description><returns><para>An instance of the <computeroutput>first_finder</computeroutput> object </para>
  561. </returns></overloaded-function>
  562. <overloaded-function name="last_finder"><signature><type><emphasis>unspecified</emphasis></type><template>
  563. <template-type-parameter name="RangeT"/>
  564. </template><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter></signature><signature><type><emphasis>unspecified</emphasis></type><template>
  565. <template-type-parameter name="RangeT"/>
  566. <template-type-parameter name="PredicateT"/>
  567. </template><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype></parameter></signature><purpose>"Last" finder </purpose><description><para>Construct the <computeroutput>last_finder</computeroutput>. The finder searches for the last occurrence of the string in a given input. The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the match.</para><para>
  568. </para></description><returns><para>An instance of the <computeroutput>last_finder</computeroutput> object </para>
  569. </returns></overloaded-function>
  570. <overloaded-function name="nth_finder"><signature><type><emphasis>unspecified</emphasis></type><template>
  571. <template-type-parameter name="RangeT"/>
  572. </template><parameter name="Search"><paramtype>const RangeT &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be find </para></description></parameter></signature><signature><type><emphasis>unspecified</emphasis></type><template>
  573. <template-type-parameter name="RangeT"/>
  574. <template-type-parameter name="PredicateT"/>
  575. </template><parameter name="Search"><paramtype>const RangeT &amp;</paramtype></parameter><parameter name="Nth"><paramtype>int</paramtype></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype></parameter></signature><purpose>"Nth" finder </purpose><description><para>Construct the <computeroutput>nth_finder</computeroutput>. The finder searches for the n-th (zero-indexed) occurrence of the string in a given input. The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the match.</para><para>
  576. </para></description><returns><para>An instance of the <computeroutput>nth_finder</computeroutput> object </para>
  577. </returns></overloaded-function>
  578. <function name="head_finder"><type><emphasis>unspecified</emphasis></type><parameter name="N"><paramtype>int</paramtype><description><para>The size of the head </para></description></parameter><purpose>"Head" finder </purpose><description><para>Construct the <computeroutput>head_finder</computeroutput>. The finder returns a head of a given input. The head is a prefix of a string up to n elements in size. If an input has less then n elements, whole input is considered a head. The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the match.</para><para>
  579. </para></description><returns><para>An instance of the <computeroutput>head_finder</computeroutput> object </para>
  580. </returns></function>
  581. <function name="tail_finder"><type><emphasis>unspecified</emphasis></type><parameter name="N"><paramtype>int</paramtype><description><para>The size of the head </para></description></parameter><purpose>"Tail" finder </purpose><description><para>Construct the <computeroutput>tail_finder</computeroutput>. The finder returns a tail of a given input. The tail is a suffix of a string up to n elements in size. If an input has less then n elements, whole input is considered a head. The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the match.</para><para>
  582. </para></description><returns><para>An instance of the <computeroutput>tail_finder</computeroutput> object </para>
  583. </returns></function>
  584. <function name="token_finder"><type><emphasis>unspecified</emphasis></type><template>
  585. <template-type-parameter name="PredicateT"/>
  586. </template><parameter name="Pred"><paramtype>PredicateT</paramtype><description><para>An element selection predicate </para></description></parameter><parameter name="eCompress"><paramtype>token_compress_mode_type</paramtype><default>token_compress_off</default><description><para>Compress flag </para></description></parameter><purpose>"Token" finder </purpose><description><para>Construct the <computeroutput>token_finder</computeroutput>. The finder searches for a token specified by a predicate. It is similar to std::find_if algorithm, with an exception that it return a range of instead of a single iterator.</para><para>If "compress token mode" is enabled, adjacent matching tokens are concatenated into one match. Thus the finder can be used to search for continuous segments of characters satisfying the given predicate.</para><para>The result is given as an <computeroutput>iterator_range</computeroutput> delimiting the match.</para><para>
  587. </para></description><returns><para>An instance of the <computeroutput>token_finder</computeroutput> object </para>
  588. </returns></function>
  589. <overloaded-function name="range_finder"><signature><type><emphasis>unspecified</emphasis></type><template>
  590. <template-type-parameter name="ForwardIteratorT"/>
  591. </template><parameter name="Begin"><paramtype>ForwardIteratorT</paramtype><description><para>Beginning of the range </para></description></parameter><parameter name="End"><paramtype>ForwardIteratorT</paramtype><description><para>End of the range </para></description></parameter></signature><signature><type><emphasis>unspecified</emphasis></type><template>
  592. <template-type-parameter name="ForwardIteratorT"/>
  593. </template><parameter name="Range"><paramtype>iterator_range&lt; ForwardIteratorT &gt;</paramtype></parameter></signature><purpose>"Range" finder </purpose><description><para>Construct the <computeroutput>range_finder</computeroutput>. The finder does not perform any operation. It simply returns the given range for any input.</para><para>
  594. </para></description><returns><para>An instance of the <computeroutput>range_finger</computeroutput> object </para>
  595. </returns></overloaded-function>
  596. </namespace>
  597. </namespace>
  598. </header>
  599. <header name="boost/algorithm/string/formatter.hpp">
  600. <para>Defines Formatter generators. Formatter is a functor which formats a string according to given parameters. A Formatter works in conjunction with a Finder. A Finder can provide additional information for a specific Formatter. An example of such a cooperation is regex_finder and regex_formatter.</para><para>Formatters are used as pluggable components for replace facilities. This header contains generator functions for the Formatters provided in this library. </para><namespace name="boost">
  601. <namespace name="algorithm">
  602. <function name="const_formatter"><type><emphasis>unspecified</emphasis></type><template>
  603. <template-type-parameter name="RangeT"/>
  604. </template><parameter name="Format"><paramtype>const RangeT &amp;</paramtype><description><para>A predefined value used as a result for formatting </para></description></parameter><purpose>Constant formatter. </purpose><description><para>Constructs a <computeroutput>const_formatter</computeroutput>. Const formatter always returns the same value, regardless of the parameter.</para><para>
  605. </para></description><returns><para>An instance of the <computeroutput>const_formatter</computeroutput> object. </para>
  606. </returns></function>
  607. <function name="identity_formatter"><type><emphasis>unspecified</emphasis></type><template>
  608. <template-type-parameter name="RangeT"/>
  609. </template><purpose>Identity formatter. </purpose><description><para>Constructs an <computeroutput>identity_formatter</computeroutput>. Identity formatter always returns the parameter.</para><para>
  610. </para></description><returns><para>An instance of the <computeroutput>identity_formatter</computeroutput> object. </para>
  611. </returns></function>
  612. <function name="empty_formatter"><type><emphasis>unspecified</emphasis></type><template>
  613. <template-type-parameter name="RangeT"/>
  614. </template><parameter name=""><paramtype>const RangeT &amp;</paramtype></parameter><purpose>Empty formatter. </purpose><description><para>Constructs an <computeroutput>empty_formatter</computeroutput>. Empty formatter always returns an empty sequence.</para><para>
  615. </para></description><returns><para>An instance of the <computeroutput>empty_formatter</computeroutput> object. </para>
  616. </returns></function>
  617. <function name="dissect_formatter"><type><emphasis>unspecified</emphasis></type><template>
  618. <template-type-parameter name="FinderT"/>
  619. </template><parameter name="Finder"><paramtype>const FinderT &amp;</paramtype><description><para>a finder used to select a portion of the formatted sequence </para></description></parameter><purpose>Empty formatter. </purpose><description><para>Constructs a <computeroutput>dissect_formatter</computeroutput>. Dissect formatter uses a specified finder to extract a portion of the formatted sequence. The first finder's match is returned as a result</para><para>
  620. </para></description><returns><para>An instance of the <computeroutput>dissect_formatter</computeroutput> object. </para>
  621. </returns></function>
  622. </namespace>
  623. </namespace>
  624. </header>
  625. <header name="boost/algorithm/string/iter_find.hpp">
  626. <para>Defines generic split algorithms. Split algorithms can be used to divide a sequence into several part according to a given criteria. Result is given as a 'container of containers' where elements are copies or references to extracted parts.</para><para>There are two algorithms provided. One iterates over matching substrings, the other one over the gaps between these matches. </para><namespace name="boost">
  627. <namespace name="algorithm">
  628. <function name="iter_find"><type>SequenceSequenceT &amp;</type><template>
  629. <template-type-parameter name="SequenceSequenceT"/>
  630. <template-type-parameter name="RangeT"/>
  631. <template-type-parameter name="FinderT"/>
  632. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A 'container container' to contain the result of search. Both outer and inner container must have constructor taking a pair of iterators as an argument. Typical type of the result is <computeroutput>std::vector&lt;boost::iterator_range&lt;iterator&gt;&gt;</computeroutput> (each element of such a vector will container a range delimiting a match). </para></description></parameter><parameter name="Input"><paramtype>RangeT &amp;&amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Finder"><paramtype>FinderT</paramtype><description><para>A Finder object used for searching </para></description></parameter><purpose>Iter find algorithm. </purpose><description><para>This algorithm executes a given finder in iteration on the input, until the end of input is reached, or no match is found. Iteration is done using built-in <classname alt="boost::algorithm::find_iterator">find_iterator</classname>, so the real searching is performed only when needed. In each iteration new match is found and added to the result.</para><para>
  633. <note><para>Prior content of the result will be overwritten. </para>
  634. </note>
  635. </para></description><returns><para>A reference to the result</para>
  636. </returns></function>
  637. <function name="iter_split"><type>SequenceSequenceT &amp;</type><template>
  638. <template-type-parameter name="SequenceSequenceT"/>
  639. <template-type-parameter name="RangeT"/>
  640. <template-type-parameter name="FinderT"/>
  641. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A 'container container' to contain the result of search. Both outer and inner container must have constructor taking a pair of iterators as an argument. Typical type of the result is <computeroutput>std::vector&lt;boost::iterator_range&lt;iterator&gt;&gt;</computeroutput> (each element of such a vector will container a range delimiting a match). </para></description></parameter><parameter name="Input"><paramtype>RangeT &amp;&amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Finder"><paramtype>FinderT</paramtype><description><para>A finder object used for searching </para></description></parameter><purpose>Split find algorithm. </purpose><description><para>This algorithm executes a given finder in iteration on the input, until the end of input is reached, or no match is found. Iteration is done using built-in <classname alt="boost::algorithm::find_iterator">find_iterator</classname>, so the real searching is performed only when needed. Each match is used as a separator of segments. These segments are then returned in the result.</para><para>
  642. <note><para>Prior content of the result will be overwritten. </para>
  643. </note>
  644. </para></description><returns><para>A reference to the result</para>
  645. </returns></function>
  646. </namespace>
  647. </namespace>
  648. </header>
  649. <header name="boost/algorithm/string/join.hpp">
  650. <para>Defines join algorithm.</para><para>Join algorithm is a counterpart to split algorithms. It joins strings from a 'list' by adding user defined separator. Additionally there is a version that allows simple filtering by providing a predicate. </para><namespace name="boost">
  651. <namespace name="algorithm">
  652. <function name="join"><type>range_value&lt; SequenceSequenceT &gt;::type</type><template>
  653. <template-type-parameter name="SequenceSequenceT"/>
  654. <template-type-parameter name="Range1T"/>
  655. </template><parameter name="Input"><paramtype>const SequenceSequenceT &amp;</paramtype><description><para>A container that holds the input strings. It must be a container-of-containers. </para></description></parameter><parameter name="Separator"><paramtype>const Range1T &amp;</paramtype><description><para>A string that will separate the joined segments. </para></description></parameter><purpose>Join algorithm. </purpose><description><para>This algorithm joins all strings in a 'list' into one long string. Segments are concatenated by given separator.</para><para>
  656. <note><para>This function provides the strong exception-safety guarantee </para>
  657. </note>
  658. </para></description><returns><para>Concatenated string.</para>
  659. </returns></function>
  660. <function name="join_if"><type>range_value&lt; SequenceSequenceT &gt;::type</type><template>
  661. <template-type-parameter name="SequenceSequenceT"/>
  662. <template-type-parameter name="Range1T"/>
  663. <template-type-parameter name="PredicateT"/>
  664. </template><parameter name="Input"><paramtype>const SequenceSequenceT &amp;</paramtype><description><para>A container that holds the input strings. It must be a container-of-containers. </para></description></parameter><parameter name="Separator"><paramtype>const Range1T &amp;</paramtype><description><para>A string that will separate the joined segments. </para></description></parameter><parameter name="Pred"><paramtype>PredicateT</paramtype><description><para>A segment selection predicate </para></description></parameter><purpose>Conditional join algorithm. </purpose><description><para>This algorithm joins all strings in a 'list' into one long string. Segments are concatenated by given separator. Only segments that satisfy the predicate will be added to the result.</para><para>
  665. <note><para>This function provides the strong exception-safety guarantee </para>
  666. </note>
  667. </para></description><returns><para>Concatenated string.</para>
  668. </returns></function>
  669. </namespace>
  670. </namespace>
  671. </header>
  672. <header name="boost/algorithm/string/predicate.hpp">
  673. <para>Defines string-related predicates. The predicates determine whether a substring is contained in the input string under various conditions: a string starts with the substring, ends with the substring, simply contains the substring or if both strings are equal. Additionaly the algorithm <computeroutput>all()</computeroutput> checks all elements of a container to satisfy a condition.</para><para>All predicates provide the strong exception guarantee. </para><namespace name="boost">
  674. <namespace name="algorithm">
  675. <overloaded-function name="starts_with"><signature><type>bool</type><template>
  676. <template-type-parameter name="Range1T"/>
  677. <template-type-parameter name="Range2T"/>
  678. <template-type-parameter name="PredicateT"/>
  679. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype><description><para>An element comparison predicate </para></description></parameter></signature><signature><type>bool</type><template>
  680. <template-type-parameter name="Range1T"/>
  681. <template-type-parameter name="Range2T"/>
  682. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>'Starts with' predicate </purpose><description><para>This predicate holds when the test string is a prefix of the Input. In other words, if the input starts with the test. When the optional predicate is specified, it is used for character-wise comparison.</para><para>
  683. <note><para>This function provides the strong exception-safety guarantee </para>
  684. </note>
  685. </para></description><returns><para>The result of the test</para>
  686. </returns></overloaded-function>
  687. <function name="istarts_with"><type>bool</type><template>
  688. <template-type-parameter name="Range1T"/>
  689. <template-type-parameter name="Range2T"/>
  690. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>'Starts with' predicate ( case insensitive ) </purpose><description><para>This predicate holds when the test string is a prefix of the Input. In other words, if the input starts with the test. Elements are compared case insensitively.</para><para>
  691. <note><para>This function provides the strong exception-safety guarantee </para>
  692. </note>
  693. </para></description><returns><para>The result of the test</para>
  694. </returns></function>
  695. <overloaded-function name="ends_with"><signature><type>bool</type><template>
  696. <template-type-parameter name="Range1T"/>
  697. <template-type-parameter name="Range2T"/>
  698. <template-type-parameter name="PredicateT"/>
  699. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype><description><para>An element comparison predicate </para></description></parameter></signature><signature><type>bool</type><template>
  700. <template-type-parameter name="Range1T"/>
  701. <template-type-parameter name="Range2T"/>
  702. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>'Ends with' predicate </purpose><description><para>This predicate holds when the test string is a suffix of the Input. In other words, if the input ends with the test. When the optional predicate is specified, it is used for character-wise comparison.</para><para>
  703. <note><para>This function provides the strong exception-safety guarantee </para>
  704. </note>
  705. </para></description><returns><para>The result of the test</para>
  706. </returns></overloaded-function>
  707. <function name="iends_with"><type>bool</type><template>
  708. <template-type-parameter name="Range1T"/>
  709. <template-type-parameter name="Range2T"/>
  710. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>'Ends with' predicate ( case insensitive ) </purpose><description><para>This predicate holds when the test container is a suffix of the Input. In other words, if the input ends with the test. Elements are compared case insensitively.</para><para>
  711. <note><para>This function provides the strong exception-safety guarantee </para>
  712. </note>
  713. </para></description><returns><para>The result of the test</para>
  714. </returns></function>
  715. <overloaded-function name="contains"><signature><type>bool</type><template>
  716. <template-type-parameter name="Range1T"/>
  717. <template-type-parameter name="Range2T"/>
  718. <template-type-parameter name="PredicateT"/>
  719. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype><description><para>An element comparison predicate </para></description></parameter></signature><signature><type>bool</type><template>
  720. <template-type-parameter name="Range1T"/>
  721. <template-type-parameter name="Range2T"/>
  722. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>'Contains' predicate </purpose><description><para>This predicate holds when the test container is contained in the Input. When the optional predicate is specified, it is used for character-wise comparison.</para><para>
  723. <note><para>This function provides the strong exception-safety guarantee </para>
  724. </note>
  725. </para></description><returns><para>The result of the test</para>
  726. </returns></overloaded-function>
  727. <function name="icontains"><type>bool</type><template>
  728. <template-type-parameter name="Range1T"/>
  729. <template-type-parameter name="Range2T"/>
  730. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>'Contains' predicate ( case insensitive ) </purpose><description><para>This predicate holds when the test container is contained in the Input. Elements are compared case insensitively.</para><para>
  731. <note><para>This function provides the strong exception-safety guarantee </para>
  732. </note>
  733. </para></description><returns><para>The result of the test</para>
  734. </returns></function>
  735. <overloaded-function name="equals"><signature><type>bool</type><template>
  736. <template-type-parameter name="Range1T"/>
  737. <template-type-parameter name="Range2T"/>
  738. <template-type-parameter name="PredicateT"/>
  739. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Comp"><paramtype>PredicateT</paramtype><description><para>An element comparison predicate </para></description></parameter></signature><signature><type>bool</type><template>
  740. <template-type-parameter name="Range1T"/>
  741. <template-type-parameter name="Range2T"/>
  742. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>'Equals' predicate </purpose><description><para>This predicate holds when the test container is equal to the input container i.e. all elements in both containers are same. When the optional predicate is specified, it is used for character-wise comparison.</para><para>
  743. <note><para>This is a two-way version of <computeroutput>std::equal</computeroutput> algorithm</para>
  744. </note>
  745. <note><para>This function provides the strong exception-safety guarantee </para>
  746. </note>
  747. </para></description><returns><para>The result of the test</para>
  748. </returns></overloaded-function>
  749. <function name="iequals"><type>bool</type><template>
  750. <template-type-parameter name="Range1T"/>
  751. <template-type-parameter name="Range2T"/>
  752. </template><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Test"><paramtype>const Range2T &amp;</paramtype><description><para>A test sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>'Equals' predicate ( case insensitive ) </purpose><description><para>This predicate holds when the test container is equal to the input container i.e. all elements in both containers are same. Elements are compared case insensitively.</para><para>
  753. <note><para>This is a two-way version of <computeroutput>std::equal</computeroutput> algorithm</para>
  754. </note>
  755. <note><para>This function provides the strong exception-safety guarantee </para>
  756. </note>
  757. </para></description><returns><para>The result of the test</para>
  758. </returns></function>
  759. <overloaded-function name="lexicographical_compare"><signature><type>bool</type><template>
  760. <template-type-parameter name="Range1T"/>
  761. <template-type-parameter name="Range2T"/>
  762. <template-type-parameter name="PredicateT"/>
  763. </template><parameter name="Arg1"><paramtype>const Range1T &amp;</paramtype><description><para>First argument </para></description></parameter><parameter name="Arg2"><paramtype>const Range2T &amp;</paramtype><description><para>Second argument </para></description></parameter><parameter name="Pred"><paramtype>PredicateT</paramtype><description><para>Comparison predicate </para></description></parameter></signature><signature><type>bool</type><template>
  764. <template-type-parameter name="Range1T"/>
  765. <template-type-parameter name="Range2T"/>
  766. </template><parameter name="Arg1"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Arg2"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>Lexicographical compare predicate. </purpose><description><para>This predicate is an overload of std::lexicographical_compare for range arguments</para><para>It check whether the first argument is lexicographically less then the second one.</para><para>If the optional predicate is specified, it is used for character-wise comparison</para><para>
  767. <note><para>This function provides the strong exception-safety guarantee </para>
  768. </note>
  769. </para></description><returns><para>The result of the test</para>
  770. </returns></overloaded-function>
  771. <function name="ilexicographical_compare"><type>bool</type><template>
  772. <template-type-parameter name="Range1T"/>
  773. <template-type-parameter name="Range2T"/>
  774. </template><parameter name="Arg1"><paramtype>const Range1T &amp;</paramtype><description><para>First argument </para></description></parameter><parameter name="Arg2"><paramtype>const Range2T &amp;</paramtype><description><para>Second argument </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Lexicographical compare predicate (case-insensitive) </purpose><description><para>This predicate is an overload of std::lexicographical_compare for range arguments. It check whether the first argument is lexicographically less then the second one. Elements are compared case insensitively</para><para>
  775. <note><para>This function provides the strong exception-safety guarantee </para>
  776. </note>
  777. </para></description><returns><para>The result of the test</para>
  778. </returns></function>
  779. <function name="all"><type>bool</type><template>
  780. <template-type-parameter name="RangeT"/>
  781. <template-type-parameter name="PredicateT"/>
  782. </template><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Pred"><paramtype>PredicateT</paramtype><description><para>A predicate </para></description></parameter><purpose>'All' predicate </purpose><description><para>This predicate holds it all its elements satisfy a given condition, represented by the predicate.</para><para>
  783. <note><para>This function provides the strong exception-safety guarantee </para>
  784. </note>
  785. </para></description><returns><para>The result of the test</para>
  786. </returns></function>
  787. </namespace>
  788. </namespace>
  789. </header>
  790. <header name="boost/algorithm/string/regex.hpp">
  791. <para>Defines regex variants of the algorithms. </para><namespace name="boost">
  792. <namespace name="algorithm">
  793. <function name="find_regex"><type>iterator_range&lt; typename range_iterator&lt; RangeT &gt;::type &gt;</type><template>
  794. <template-type-parameter name="RangeT"/>
  795. <template-type-parameter name="CharT"/>
  796. <template-type-parameter name="RegexTraitsT"/>
  797. </template><parameter name="Input"><paramtype>RangeT &amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter><purpose>Find regex algorithm. </purpose><description><para>Search for a substring matching the given regex in the input.</para><para>
  798. <note><para>This function provides the strong exception-safety guarantee </para>
  799. </note>
  800. </para></description><returns><para>An <computeroutput>iterator_range</computeroutput> delimiting the match. Returned iterator is either <computeroutput>RangeT::iterator</computeroutput> or <computeroutput>RangeT::const_iterator</computeroutput>, depending on the constness of the input parameter.</para>
  801. </returns></function>
  802. <overloaded-function name="replace_regex_copy"><signature><type>OutputIteratorT</type><template>
  803. <template-type-parameter name="OutputIteratorT"/>
  804. <template-type-parameter name="RangeT"/>
  805. <template-type-parameter name="CharT"/>
  806. <template-type-parameter name="RegexTraitsT"/>
  807. <template-type-parameter name="FormatStringTraitsT"/>
  808. <template-type-parameter name="FormatStringAllocatorT"/>
  809. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, FormatStringTraitsT, FormatStringAllocatorT &gt; &amp;</paramtype><description><para>Regex format definition </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default|format_default</default><description><para>Regex options </para></description></parameter></signature><signature><type>SequenceT</type><template>
  810. <template-type-parameter name="SequenceT"/>
  811. <template-type-parameter name="CharT"/>
  812. <template-type-parameter name="RegexTraitsT"/>
  813. <template-type-parameter name="FormatStringTraitsT"/>
  814. <template-type-parameter name="FormatStringAllocatorT"/>
  815. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype></parameter><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, FormatStringTraitsT, FormatStringAllocatorT &gt; &amp;</paramtype></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default|format_default</default></parameter></signature><purpose>Replace regex algorithm. </purpose><description><para>Search for a substring matching given regex and format it with the specified format.</para><para>The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  816. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  817. </note>
  818. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  819. </returns></overloaded-function>
  820. <function name="replace_regex"><type>void</type><template>
  821. <template-type-parameter name="SequenceT"/>
  822. <template-type-parameter name="CharT"/>
  823. <template-type-parameter name="RegexTraitsT"/>
  824. <template-type-parameter name="FormatStringTraitsT"/>
  825. <template-type-parameter name="FormatStringAllocatorT"/>
  826. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, FormatStringTraitsT, FormatStringAllocatorT &gt; &amp;</paramtype><description><para>Regex format definition </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default|format_default</default><description><para>Regex options </para></description></parameter><purpose>Replace regex algorithm. </purpose><description><para>Search for a substring matching given regex and format it with the specified format. The input string is modified in-place.</para><para>
  827. </para></description></function>
  828. <overloaded-function name="replace_all_regex_copy"><signature><type>OutputIteratorT</type><template>
  829. <template-type-parameter name="OutputIteratorT"/>
  830. <template-type-parameter name="RangeT"/>
  831. <template-type-parameter name="CharT"/>
  832. <template-type-parameter name="RegexTraitsT"/>
  833. <template-type-parameter name="FormatStringTraitsT"/>
  834. <template-type-parameter name="FormatStringAllocatorT"/>
  835. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, FormatStringTraitsT, FormatStringAllocatorT &gt; &amp;</paramtype><description><para>Regex format definition </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default|format_default</default><description><para>Regex options </para></description></parameter></signature><signature><type>SequenceT</type><template>
  836. <template-type-parameter name="SequenceT"/>
  837. <template-type-parameter name="CharT"/>
  838. <template-type-parameter name="RegexTraitsT"/>
  839. <template-type-parameter name="FormatStringTraitsT"/>
  840. <template-type-parameter name="FormatStringAllocatorT"/>
  841. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype></parameter><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, FormatStringTraitsT, FormatStringAllocatorT &gt; &amp;</paramtype></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default|format_default</default></parameter></signature><purpose>Replace all regex algorithm. </purpose><description><para>Format all substrings, matching given regex, with the specified format. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  842. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  843. </note>
  844. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  845. </returns></overloaded-function>
  846. <function name="replace_all_regex"><type>void</type><template>
  847. <template-type-parameter name="SequenceT"/>
  848. <template-type-parameter name="CharT"/>
  849. <template-type-parameter name="RegexTraitsT"/>
  850. <template-type-parameter name="FormatStringTraitsT"/>
  851. <template-type-parameter name="FormatStringAllocatorT"/>
  852. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, FormatStringTraitsT, FormatStringAllocatorT &gt; &amp;</paramtype><description><para>Regex format definition </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default|format_default</default><description><para>Regex options </para></description></parameter><purpose>Replace all regex algorithm. </purpose><description><para>Format all substrings, matching given regex, with the specified format. The input string is modified in-place.</para><para>
  853. </para></description></function>
  854. <overloaded-function name="erase_regex_copy"><signature><type>OutputIteratorT</type><template>
  855. <template-type-parameter name="OutputIteratorT"/>
  856. <template-type-parameter name="RangeT"/>
  857. <template-type-parameter name="CharT"/>
  858. <template-type-parameter name="RegexTraitsT"/>
  859. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter></signature><signature><type>SequenceT</type><template>
  860. <template-type-parameter name="SequenceT"/>
  861. <template-type-parameter name="CharT"/>
  862. <template-type-parameter name="RegexTraitsT"/>
  863. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default></parameter></signature><purpose>Erase regex algorithm. </purpose><description><para>Remove a substring matching given regex from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  864. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  865. </note>
  866. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  867. </returns></overloaded-function>
  868. <function name="erase_regex"><type>void</type><template>
  869. <template-type-parameter name="SequenceT"/>
  870. <template-type-parameter name="CharT"/>
  871. <template-type-parameter name="RegexTraitsT"/>
  872. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter><purpose>Erase regex algorithm. </purpose><description><para>Remove a substring matching given regex from the input. The input string is modified in-place.</para><para>
  873. </para></description></function>
  874. <overloaded-function name="erase_all_regex_copy"><signature><type>OutputIteratorT</type><template>
  875. <template-type-parameter name="OutputIteratorT"/>
  876. <template-type-parameter name="RangeT"/>
  877. <template-type-parameter name="CharT"/>
  878. <template-type-parameter name="RegexTraitsT"/>
  879. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter></signature><signature><type>SequenceT</type><template>
  880. <template-type-parameter name="SequenceT"/>
  881. <template-type-parameter name="CharT"/>
  882. <template-type-parameter name="RegexTraitsT"/>
  883. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default></parameter></signature><purpose>Erase all regex algorithm. </purpose><description><para>Erase all substrings, matching given regex, from the input. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  884. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  885. </note>
  886. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  887. </returns></overloaded-function>
  888. <function name="erase_all_regex"><type>void</type><template>
  889. <template-type-parameter name="SequenceT"/>
  890. <template-type-parameter name="CharT"/>
  891. <template-type-parameter name="RegexTraitsT"/>
  892. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter><purpose>Erase all regex algorithm. </purpose><description><para>Erase all substrings, matching given regex, from the input. The input string is modified in-place.</para><para>
  893. </para></description></function>
  894. <function name="find_all_regex"><type>SequenceSequenceT &amp;</type><template>
  895. <template-type-parameter name="SequenceSequenceT"/>
  896. <template-type-parameter name="RangeT"/>
  897. <template-type-parameter name="CharT"/>
  898. <template-type-parameter name="RegexTraitsT"/>
  899. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A container that can hold copies of references to the substrings. </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter><purpose>Find all regex algorithm. </purpose><description><para>This algorithm finds all substrings matching the give regex in the input.</para><para>Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are <computeroutput>std::vector&lt;std::string&gt;</computeroutput> or <computeroutput>std::list&lt;boost::iterator_range&lt;std::string::iterator&gt;&gt;</computeroutput> </para><para>
  900. <note><para>Prior content of the result will be overwritten.</para>
  901. </note>
  902. <note><para>This function provides the strong exception-safety guarantee </para>
  903. </note>
  904. </para></description><returns><para>A reference to the result</para>
  905. </returns></function>
  906. <function name="split_regex"><type>SequenceSequenceT &amp;</type><template>
  907. <template-type-parameter name="SequenceSequenceT"/>
  908. <template-type-parameter name="RangeT"/>
  909. <template-type-parameter name="CharT"/>
  910. <template-type-parameter name="RegexTraitsT"/>
  911. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A container that can hold copies of references to the substrings.</para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter><purpose>Split regex algorithm. </purpose><description><para>Tokenize expression. This function is equivalent to C strtok. Input sequence is split into tokens, separated by separators. Separator is an every match of the given regex. Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are <computeroutput>std::vector&lt;std::string&gt;</computeroutput> or <computeroutput>std::list&lt;boost::iterator_range&lt;std::string::iterator&gt;&gt;</computeroutput> </para><para>
  912. <note><para>Prior content of the result will be overwritten.</para>
  913. </note>
  914. <note><para>This function provides the strong exception-safety guarantee </para>
  915. </note>
  916. </para></description><returns><para>A reference to the result</para>
  917. </returns></function>
  918. <function name="join_if"><type>range_value&lt; SequenceSequenceT &gt;::type</type><template>
  919. <template-type-parameter name="SequenceSequenceT"/>
  920. <template-type-parameter name="Range1T"/>
  921. <template-type-parameter name="CharT"/>
  922. <template-type-parameter name="RegexTraitsT"/>
  923. </template><parameter name="Input"><paramtype>const SequenceSequenceT &amp;</paramtype><description><para>A container that holds the input strings. It must be a container-of-containers. </para></description></parameter><parameter name="Separator"><paramtype>const Range1T &amp;</paramtype><description><para>A string that will separate the joined segments. </para></description></parameter><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex options </para></description></parameter><purpose>Conditional join algorithm. </purpose><description><para>This algorithm joins all strings in a 'list' into one long string. Segments are concatenated by given separator. Only segments that match the given regular expression will be added to the result</para><para>This is a specialization of join_if algorithm.</para><para>
  924. <note><para>This function provides the strong exception-safety guarantee </para>
  925. </note>
  926. </para></description><returns><para>Concatenated string.</para>
  927. </returns></function>
  928. </namespace>
  929. </namespace>
  930. </header>
  931. <header name="boost/algorithm/string/regex_find_format.hpp">
  932. <para>Defines the <computeroutput>regex_finder</computeroutput> and <computeroutput>regex_formatter</computeroutput> generators. These two functors are designed to work together. <computeroutput>regex_formatter</computeroutput> uses additional information about a match contained in the regex_finder search result. </para><namespace name="boost">
  933. <namespace name="algorithm">
  934. <function name="regex_finder"><type><emphasis>unspecified</emphasis></type><template>
  935. <template-type-parameter name="CharT"/>
  936. <template-type-parameter name="RegexTraitsT"/>
  937. </template><parameter name="Rx"><paramtype>const basic_regex&lt; CharT, RegexTraitsT &gt; &amp;</paramtype><description><para>A regular expression </para></description></parameter><parameter name="MatchFlags"><paramtype>match_flag_type</paramtype><default>match_default</default><description><para>Regex search options </para></description></parameter><purpose>"Regex" finder </purpose><description><para>Construct the <computeroutput>regex_finder</computeroutput>. Finder uses the regex engine to search for a match. Result is given in <computeroutput>regex_search_result</computeroutput>. This is an extension of the iterator_range. In addition it contains match results from the <computeroutput>regex_search</computeroutput> algorithm.</para><para>
  938. </para></description><returns><para>An instance of the <computeroutput>regex_finder</computeroutput> object </para>
  939. </returns></function>
  940. <function name="regex_formatter"><type><emphasis>unspecified</emphasis></type><template>
  941. <template-type-parameter name="CharT"/>
  942. <template-type-parameter name="TraitsT"/>
  943. <template-type-parameter name="AllocT"/>
  944. </template><parameter name="Format"><paramtype>const std::basic_string&lt; CharT, TraitsT, AllocT &gt; &amp;</paramtype><description><para>Regex format definition </para></description></parameter><parameter name="Flags"><paramtype>match_flag_type</paramtype><default>format_default</default><description><para>Format flags </para></description></parameter><purpose>Regex formatter. </purpose><description><para>Construct the <computeroutput>regex_formatter</computeroutput>. Regex formatter uses the regex engine to format a match found by the <computeroutput>regex_finder</computeroutput>. This formatted it designed to closely cooperate with <computeroutput>regex_finder</computeroutput>.</para><para>
  945. </para></description><returns><para>An instance of the <computeroutput>regex_formatter</computeroutput> functor </para>
  946. </returns></function>
  947. </namespace>
  948. </namespace>
  949. </header>
  950. <header name="boost/algorithm/string/replace.hpp">
  951. <para>Defines various replace algorithms. Each algorithm replaces part(s) of the input according to set of searching and replace criteria. </para><namespace name="boost">
  952. <namespace name="algorithm">
  953. <overloaded-function name="replace_range_copy"><signature><type>OutputIteratorT</type><template>
  954. <template-type-parameter name="OutputIteratorT"/>
  955. <template-type-parameter name="Range1T"/>
  956. <template-type-parameter name="Range2T"/>
  957. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="SearchRange"><paramtype>const iterator_range&lt; typename range_const_iterator&lt; Range1T &gt;::type &gt; &amp;</paramtype><description><para>A range in the input to be substituted </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  958. <template-type-parameter name="SequenceT"/>
  959. <template-type-parameter name="RangeT"/>
  960. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="SearchRange"><paramtype>const iterator_range&lt; typename range_const_iterator&lt; SequenceT &gt;::type &gt; &amp;</paramtype></parameter><parameter name="Format"><paramtype>const RangeT &amp;</paramtype></parameter></signature><purpose>Replace range algorithm. </purpose><description><para>Replace the given range in the input string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  961. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  962. </note>
  963. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  964. </returns></overloaded-function>
  965. <function name="replace_range"><type>void</type><template>
  966. <template-type-parameter name="SequenceT"/>
  967. <template-type-parameter name="RangeT"/>
  968. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="SearchRange"><paramtype>const iterator_range&lt; typename range_iterator&lt; SequenceT &gt;::type &gt; &amp;</paramtype><description><para>A range in the input to be substituted </para></description></parameter><parameter name="Format"><paramtype>const RangeT &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace range algorithm. </purpose><description><para>Replace the given range in the input string. The input sequence is modified in-place.</para><para>
  969. </para></description></function>
  970. <overloaded-function name="replace_first_copy"><signature><type>OutputIteratorT</type><template>
  971. <template-type-parameter name="OutputIteratorT"/>
  972. <template-type-parameter name="Range1T"/>
  973. <template-type-parameter name="Range2T"/>
  974. <template-type-parameter name="Range3T"/>
  975. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  976. <template-type-parameter name="SequenceT"/>
  977. <template-type-parameter name="Range1T"/>
  978. <template-type-parameter name="Range2T"/>
  979. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>Replace first algorithm. </purpose><description><para>Replace the first match of the search substring in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  980. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  981. </note>
  982. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  983. </returns></overloaded-function>
  984. <function name="replace_first"><type>void</type><template>
  985. <template-type-parameter name="SequenceT"/>
  986. <template-type-parameter name="Range1T"/>
  987. <template-type-parameter name="Range2T"/>
  988. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace first algorithm. </purpose><description><para>replace the first match of the search substring in the input with the format string. The input sequence is modified in-place.</para><para>
  989. </para></description></function>
  990. <overloaded-function name="ireplace_first_copy"><signature><type>OutputIteratorT</type><template>
  991. <template-type-parameter name="OutputIteratorT"/>
  992. <template-type-parameter name="Range1T"/>
  993. <template-type-parameter name="Range2T"/>
  994. <template-type-parameter name="Range3T"/>
  995. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  996. <template-type-parameter name="SequenceT"/>
  997. <template-type-parameter name="Range2T"/>
  998. <template-type-parameter name="Range1T"/>
  999. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype></parameter><parameter name="Format"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Replace first algorithm ( case insensitive ) </purpose><description><para>Replace the first match of the search substring in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  1000. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1001. </note>
  1002. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1003. </returns></overloaded-function>
  1004. <function name="ireplace_first"><type>void</type><template>
  1005. <template-type-parameter name="SequenceT"/>
  1006. <template-type-parameter name="Range1T"/>
  1007. <template-type-parameter name="Range2T"/>
  1008. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Replace first algorithm ( case insensitive ) </purpose><description><para>Replace the first match of the search substring in the input with the format string. Input sequence is modified in-place. Searching is case insensitive.</para><para>
  1009. </para></description></function>
  1010. <overloaded-function name="replace_last_copy"><signature><type>OutputIteratorT</type><template>
  1011. <template-type-parameter name="OutputIteratorT"/>
  1012. <template-type-parameter name="Range1T"/>
  1013. <template-type-parameter name="Range2T"/>
  1014. <template-type-parameter name="Range3T"/>
  1015. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1016. <template-type-parameter name="SequenceT"/>
  1017. <template-type-parameter name="Range1T"/>
  1018. <template-type-parameter name="Range2T"/>
  1019. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>Replace last algorithm. </purpose><description><para>Replace the last match of the search string in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  1020. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1021. </note>
  1022. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1023. </returns></overloaded-function>
  1024. <function name="replace_last"><type>void</type><template>
  1025. <template-type-parameter name="SequenceT"/>
  1026. <template-type-parameter name="Range1T"/>
  1027. <template-type-parameter name="Range2T"/>
  1028. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace last algorithm. </purpose><description><para>Replace the last match of the search string in the input with the format string. Input sequence is modified in-place.</para><para>
  1029. </para></description></function>
  1030. <overloaded-function name="ireplace_last_copy"><signature><type>OutputIteratorT</type><template>
  1031. <template-type-parameter name="OutputIteratorT"/>
  1032. <template-type-parameter name="Range1T"/>
  1033. <template-type-parameter name="Range2T"/>
  1034. <template-type-parameter name="Range3T"/>
  1035. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1036. <template-type-parameter name="SequenceT"/>
  1037. <template-type-parameter name="Range1T"/>
  1038. <template-type-parameter name="Range2T"/>
  1039. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Replace last algorithm ( case insensitive ) </purpose><description><para>Replace the last match of the search string in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  1040. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1041. </note>
  1042. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1043. </returns></overloaded-function>
  1044. <function name="ireplace_last"><type>void</type><template>
  1045. <template-type-parameter name="SequenceT"/>
  1046. <template-type-parameter name="Range1T"/>
  1047. <template-type-parameter name="Range2T"/>
  1048. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Replace last algorithm ( case insensitive ) </purpose><description><para>Replace the last match of the search string in the input with the format string.The input sequence is modified in-place. Searching is case insensitive.</para><para>
  1049. </para></description></function>
  1050. <overloaded-function name="replace_nth_copy"><signature><type>OutputIteratorT</type><template>
  1051. <template-type-parameter name="OutputIteratorT"/>
  1052. <template-type-parameter name="Range1T"/>
  1053. <template-type-parameter name="Range2T"/>
  1054. <template-type-parameter name="Range3T"/>
  1055. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1056. <template-type-parameter name="SequenceT"/>
  1057. <template-type-parameter name="Range1T"/>
  1058. <template-type-parameter name="Range2T"/>
  1059. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Nth"><paramtype>int</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>Replace nth algorithm. </purpose><description><para>Replace an Nth (zero-indexed) match of the search string in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  1060. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1061. </note>
  1062. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1063. </returns></overloaded-function>
  1064. <function name="replace_nth"><type>void</type><template>
  1065. <template-type-parameter name="SequenceT"/>
  1066. <template-type-parameter name="Range1T"/>
  1067. <template-type-parameter name="Range2T"/>
  1068. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace nth algorithm. </purpose><description><para>Replace an Nth (zero-indexed) match of the search string in the input with the format string. Input sequence is modified in-place.</para><para>
  1069. </para></description></function>
  1070. <overloaded-function name="ireplace_nth_copy"><signature><type>OutputIteratorT</type><template>
  1071. <template-type-parameter name="OutputIteratorT"/>
  1072. <template-type-parameter name="Range1T"/>
  1073. <template-type-parameter name="Range2T"/>
  1074. <template-type-parameter name="Range3T"/>
  1075. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1076. <template-type-parameter name="SequenceT"/>
  1077. <template-type-parameter name="Range1T"/>
  1078. <template-type-parameter name="Range2T"/>
  1079. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Nth"><paramtype>int</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Replace nth algorithm ( case insensitive ) </purpose><description><para>Replace an Nth (zero-indexed) match of the search string in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  1080. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1081. </note>
  1082. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1083. </returns></overloaded-function>
  1084. <function name="ireplace_nth"><type>void</type><template>
  1085. <template-type-parameter name="SequenceT"/>
  1086. <template-type-parameter name="Range1T"/>
  1087. <template-type-parameter name="Range2T"/>
  1088. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Nth"><paramtype>int</paramtype><description><para>An index of the match to be replaced. The index is 0-based. For negative N, matches are counted from the end of string. </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Replace nth algorithm ( case insensitive ) </purpose><description><para>Replace an Nth (zero-indexed) match of the search string in the input with the format string. Input sequence is modified in-place. Searching is case insensitive.</para><para>
  1089. </para></description></function>
  1090. <overloaded-function name="replace_all_copy"><signature><type>OutputIteratorT</type><template>
  1091. <template-type-parameter name="OutputIteratorT"/>
  1092. <template-type-parameter name="Range1T"/>
  1093. <template-type-parameter name="Range2T"/>
  1094. <template-type-parameter name="Range3T"/>
  1095. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1096. <template-type-parameter name="SequenceT"/>
  1097. <template-type-parameter name="Range1T"/>
  1098. <template-type-parameter name="Range2T"/>
  1099. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter></signature><purpose>Replace all algorithm. </purpose><description><para>Replace all occurrences of the search string in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  1100. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1101. </note>
  1102. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1103. </returns></overloaded-function>
  1104. <function name="replace_all"><type>void</type><template>
  1105. <template-type-parameter name="SequenceT"/>
  1106. <template-type-parameter name="Range1T"/>
  1107. <template-type-parameter name="Range2T"/>
  1108. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace all algorithm. </purpose><description><para>Replace all occurrences of the search string in the input with the format string. The input sequence is modified in-place.</para><para>
  1109. </para></description></function>
  1110. <overloaded-function name="ireplace_all_copy"><signature><type>OutputIteratorT</type><template>
  1111. <template-type-parameter name="OutputIteratorT"/>
  1112. <template-type-parameter name="Range1T"/>
  1113. <template-type-parameter name="Range2T"/>
  1114. <template-type-parameter name="Range3T"/>
  1115. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range3T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1116. <template-type-parameter name="SequenceT"/>
  1117. <template-type-parameter name="Range1T"/>
  1118. <template-type-parameter name="Range2T"/>
  1119. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default></parameter></signature><purpose>Replace all algorithm ( case insensitive ) </purpose><description><para>Replace all occurrences of the search string in the input with the format string. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator. Searching is case insensitive.</para><para>
  1120. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1121. </note>
  1122. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1123. </returns></overloaded-function>
  1124. <function name="ireplace_all"><type>void</type><template>
  1125. <template-type-parameter name="SequenceT"/>
  1126. <template-type-parameter name="Range1T"/>
  1127. <template-type-parameter name="Range2T"/>
  1128. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="Search"><paramtype>const Range1T &amp;</paramtype><description><para>A substring to be searched for </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Replace all algorithm ( case insensitive ) </purpose><description><para>Replace all occurrences of the search string in the input with the format string.The input sequence is modified in-place. Searching is case insensitive.</para><para>
  1129. </para></description></function>
  1130. <overloaded-function name="replace_head_copy"><signature><type>OutputIteratorT</type><template>
  1131. <template-type-parameter name="OutputIteratorT"/>
  1132. <template-type-parameter name="Range1T"/>
  1133. <template-type-parameter name="Range2T"/>
  1134. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the head. For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1135. <template-type-parameter name="SequenceT"/>
  1136. <template-type-parameter name="RangeT"/>
  1137. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="N"><paramtype>int</paramtype></parameter><parameter name="Format"><paramtype>const RangeT &amp;</paramtype></parameter></signature><purpose>Replace head algorithm. </purpose><description><para>Replace the head of the input with the given format string. The head is a prefix of a string of given size. If the sequence is shorter then required, whole string if considered to be the head. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  1138. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1139. </note>
  1140. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1141. </returns></overloaded-function>
  1142. <function name="replace_head"><type>void</type><template>
  1143. <template-type-parameter name="SequenceT"/>
  1144. <template-type-parameter name="RangeT"/>
  1145. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the head. For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter><parameter name="Format"><paramtype>const RangeT &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace head algorithm. </purpose><description><para>Replace the head of the input with the given format string. The head is a prefix of a string of given size. If the sequence is shorter then required, the whole string is considered to be the head. The input sequence is modified in-place.</para><para>
  1146. </para></description></function>
  1147. <overloaded-function name="replace_tail_copy"><signature><type>OutputIteratorT</type><template>
  1148. <template-type-parameter name="OutputIteratorT"/>
  1149. <template-type-parameter name="Range1T"/>
  1150. <template-type-parameter name="Range2T"/>
  1151. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const Range1T &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the tail. For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter><parameter name="Format"><paramtype>const Range2T &amp;</paramtype><description><para>A substitute string </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1152. <template-type-parameter name="SequenceT"/>
  1153. <template-type-parameter name="RangeT"/>
  1154. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="N"><paramtype>int</paramtype></parameter><parameter name="Format"><paramtype>const RangeT &amp;</paramtype></parameter></signature><purpose>Replace tail algorithm. </purpose><description><para>Replace the tail of the input with the given format string. The tail is a suffix of a string of given size. If the sequence is shorter then required, whole string is considered to be the tail. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.</para><para>
  1155. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1156. </note>
  1157. </para></description><returns><para>An output iterator pointing just after the last inserted character or a modified copy of the input</para>
  1158. </returns></overloaded-function>
  1159. <function name="replace_tail"><type>void</type><template>
  1160. <template-type-parameter name="SequenceT"/>
  1161. <template-type-parameter name="RangeT"/>
  1162. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input string </para></description></parameter><parameter name="N"><paramtype>int</paramtype><description><para>Length of the tail. For N&gt;=0, at most N characters are extracted. For N&lt;0, size(Input)-|N| characters are extracted. </para></description></parameter><parameter name="Format"><paramtype>const RangeT &amp;</paramtype><description><para>A substitute string </para></description></parameter><purpose>Replace tail algorithm. </purpose><description><para>Replace the tail of the input with the given format sequence. The tail is a suffix of a string of given size. If the sequence is shorter then required, the whole string is considered to be the tail. The input sequence is modified in-place.</para><para>
  1163. </para></description></function>
  1164. </namespace>
  1165. </namespace>
  1166. </header>
  1167. <header name="boost/algorithm/string/sequence_traits.hpp">
  1168. <para>Traits defined in this header are used by various algorithms to achieve better performance for specific containers. Traits provide fail-safe defaults. If a container supports some of these features, it is possible to specialize the specific trait for this container. For lacking compilers, it is possible of define an override for a specific tester function.</para><para>Due to a language restriction, it is not currently possible to define specializations for stl containers without including the corresponding header. To decrease the overhead needed by this inclusion, user can selectively include a specialization header for a specific container. They are located in boost/algorithm/string/stl directory. Alternatively she can include boost/algorithm/string/std_collection_traits.hpp header which contains specializations for all stl containers. </para><namespace name="boost">
  1169. <namespace name="algorithm">
  1170. <class name="has_const_time_erase"><template>
  1171. <template-type-parameter name="T"/>
  1172. </template><purpose>Const time erase trait. </purpose><description><para>This trait specifies that the sequence's erase method has constant time complexity. </para></description><typedef name="type"><type>mpl::bool_&lt; <classname>has_const_time_erase</classname>&lt; T &gt;::value &gt;</type></typedef>
  1173. <data-member name="value" specifiers="static"><type>const bool</type></data-member>
  1174. </class><class name="has_const_time_insert"><template>
  1175. <template-type-parameter name="T"/>
  1176. </template><purpose>Const time insert trait. </purpose><description><para>This trait specifies that the sequence's insert method has constant time complexity. </para></description><typedef name="type"><type>mpl::bool_&lt; <classname>has_const_time_insert</classname>&lt; T &gt;::value &gt;</type></typedef>
  1177. <data-member name="value" specifiers="static"><type>const bool</type></data-member>
  1178. </class><class name="has_native_replace"><template>
  1179. <template-type-parameter name="T"/>
  1180. </template><purpose>Native replace trait. </purpose><description><para>This trait specifies that the sequence has <computeroutput>std::string</computeroutput> like replace method </para></description><typedef name="type"><type>mpl::bool_&lt; <classname>has_native_replace</classname>&lt; T &gt;::value &gt;</type></typedef>
  1181. <data-member name="value" specifiers="static"><type>const bool</type></data-member>
  1182. </class><class name="has_stable_iterators"><template>
  1183. <template-type-parameter name="T"/>
  1184. </template><purpose>Stable iterators trait. </purpose><description><para>This trait specifies that the sequence has stable iterators. It means that operations like insert/erase/replace do not invalidate iterators. </para></description><typedef name="type"><type>mpl::bool_&lt; <classname>has_stable_iterators</classname>&lt; T &gt;::value &gt;</type></typedef>
  1185. <data-member name="value" specifiers="static"><type>const bool</type></data-member>
  1186. </class>
  1187. </namespace>
  1188. </namespace>
  1189. </header>
  1190. <header name="boost/algorithm/string/split.hpp">
  1191. <para>Defines basic split algorithms. Split algorithms can be used to divide a string into several parts according to given criteria.</para><para>Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are <computeroutput>std::vector&lt;std::string&gt;</computeroutput> or <computeroutput>std::list&lt;boost::iterator_range&lt;std::string::iterator&gt;&gt;</computeroutput> </para><namespace name="boost">
  1192. <namespace name="algorithm">
  1193. <function name="find_all"><type>SequenceSequenceT &amp;</type><template>
  1194. <template-type-parameter name="SequenceSequenceT"/>
  1195. <template-type-parameter name="Range1T"/>
  1196. <template-type-parameter name="Range2T"/>
  1197. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A container that can hold copies of references to the substrings </para></description></parameter><parameter name="Input"><paramtype>Range1T &amp;&amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><purpose>Find all algorithm. </purpose><description><para>This algorithm finds all occurrences of the search string in the input.</para><para>Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are <computeroutput>std::vector&lt;std::string&gt;</computeroutput> or <computeroutput>std::list&lt;boost::iterator_range&lt;std::string::iterator&gt;&gt;</computeroutput> </para><para>
  1198. <note><para>Prior content of the result will be overwritten.</para>
  1199. </note>
  1200. <note><para>This function provides the strong exception-safety guarantee </para>
  1201. </note>
  1202. </para></description><returns><para>A reference the result</para>
  1203. </returns></function>
  1204. <function name="ifind_all"><type>SequenceSequenceT &amp;</type><template>
  1205. <template-type-parameter name="SequenceSequenceT"/>
  1206. <template-type-parameter name="Range1T"/>
  1207. <template-type-parameter name="Range2T"/>
  1208. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A container that can hold copies of references to the substrings </para></description></parameter><parameter name="Input"><paramtype>Range1T &amp;&amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Search"><paramtype>const Range2T &amp;</paramtype><description><para>A substring to be searched for. </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for case insensitive comparison </para></description></parameter><purpose>Find all algorithm ( case insensitive ) </purpose><description><para>This algorithm finds all occurrences of the search string in the input. Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are <computeroutput>std::vector&lt;std::string&gt;</computeroutput> or <computeroutput>std::list&lt;boost::iterator_range&lt;std::string::iterator&gt;&gt;</computeroutput> </para><para>Searching is case insensitive.</para><para>
  1209. <note><para>Prior content of the result will be overwritten.</para>
  1210. </note>
  1211. <note><para>This function provides the strong exception-safety guarantee </para>
  1212. </note>
  1213. </para></description><returns><para>A reference the result</para>
  1214. </returns></function>
  1215. <function name="split"><type>SequenceSequenceT &amp;</type><template>
  1216. <template-type-parameter name="SequenceSequenceT"/>
  1217. <template-type-parameter name="RangeT"/>
  1218. <template-type-parameter name="PredicateT"/>
  1219. </template><parameter name="Result"><paramtype>SequenceSequenceT &amp;</paramtype><description><para>A container that can hold copies of references to the substrings</para></description></parameter><parameter name="Input"><paramtype>RangeT &amp;&amp;</paramtype><description><para>A container which will be searched. </para></description></parameter><parameter name="Pred"><paramtype>PredicateT</paramtype><description><para>A predicate to identify separators. This predicate is supposed to return true if a given element is a separator. </para></description></parameter><parameter name="eCompress"><paramtype>token_compress_mode_type</paramtype><default>token_compress_off</default><description><para>If eCompress argument is set to token_compress_on, adjacent separators are merged together. Otherwise, every two separators delimit a token. </para></description></parameter><purpose>Split algorithm. </purpose><description><para>Tokenize expression. This function is equivalent to C strtok. Input sequence is split into tokens, separated by separators. Separators are given by means of the predicate.</para><para>Each part is copied and added as a new element to the output container. Thus the result container must be able to hold copies of the matches (in a compatible structure like std::string) or a reference to it (e.g. using the iterator range class). Examples of such a container are <computeroutput>std::vector&lt;std::string&gt;</computeroutput> or <computeroutput>std::list&lt;boost::iterator_range&lt;std::string::iterator&gt;&gt;</computeroutput> </para><para>
  1220. <note><para>Prior content of the result will be overwritten.</para>
  1221. </note>
  1222. <note><para>This function provides the strong exception-safety guarantee </para>
  1223. </note>
  1224. </para></description><returns><para>A reference the result</para>
  1225. </returns></function>
  1226. </namespace>
  1227. </namespace>
  1228. </header>
  1229. <header name="boost/algorithm/string/std_containers_traits.hpp">
  1230. <para>This file includes sequence traits for stl containers. </para></header>
  1231. <header name="boost/algorithm/string/trim.hpp">
  1232. <para>Defines trim algorithms. Trim algorithms are used to remove trailing and leading spaces from a sequence (string). Space is recognized using given locales.</para><para>Parametric (<computeroutput>_if</computeroutput>) variants use a predicate (functor) to select which characters are to be trimmed.. Functions take a selection predicate as a parameter, which is used to determine whether a character is a space. Common predicates are provided in classification.hpp header. </para><namespace name="boost">
  1233. <namespace name="algorithm">
  1234. <overloaded-function name="trim_left_copy_if"><signature><type>OutputIteratorT</type><template>
  1235. <template-type-parameter name="OutputIteratorT"/>
  1236. <template-type-parameter name="RangeT"/>
  1237. <template-type-parameter name="PredicateT"/>
  1238. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input range </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1239. <template-type-parameter name="SequenceT"/>
  1240. <template-type-parameter name="PredicateT"/>
  1241. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype></parameter></signature><purpose>Left trim - parametric. </purpose><description><para>Remove all leading spaces from the input. The supplied predicate is used to determine which characters are considered spaces. The result is a trimmed copy of the input. It is returned as a sequence or copied to the output iterator</para><para>
  1242. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1243. </note>
  1244. </para></description><returns><para>An output iterator pointing just after the last inserted character or a copy of the input</para>
  1245. </returns></overloaded-function>
  1246. <function name="trim_left_copy"><type>SequenceT</type><template>
  1247. <template-type-parameter name="SequenceT"/>
  1248. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>a locale used for 'space' classification </para></description></parameter><purpose>Left trim - parametric. </purpose><description><para>Remove all leading spaces from the input. The result is a trimmed copy of the input.</para><para>
  1249. <note><para>This function provides the strong exception-safety guarantee </para>
  1250. </note>
  1251. </para></description><returns><para>A trimmed copy of the input</para>
  1252. </returns></function>
  1253. <function name="trim_left_if"><type>void</type><template>
  1254. <template-type-parameter name="SequenceT"/>
  1255. <template-type-parameter name="PredicateT"/>
  1256. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Left trim. </purpose><description><para>Remove all leading spaces from the input. The supplied predicate is used to determine which characters are considered spaces. The input sequence is modified in-place.</para><para>
  1257. </para></description></function>
  1258. <function name="trim_left"><type>void</type><template>
  1259. <template-type-parameter name="SequenceT"/>
  1260. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Left trim. </purpose><description><para>Remove all leading spaces from the input. The Input sequence is modified in-place.</para><para>
  1261. </para></description></function>
  1262. <overloaded-function name="trim_right_copy_if"><signature><type>OutputIteratorT</type><template>
  1263. <template-type-parameter name="OutputIteratorT"/>
  1264. <template-type-parameter name="RangeT"/>
  1265. <template-type-parameter name="PredicateT"/>
  1266. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input range </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1267. <template-type-parameter name="SequenceT"/>
  1268. <template-type-parameter name="PredicateT"/>
  1269. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype></parameter></signature><purpose>Right trim - parametric. </purpose><description><para>Remove all trailing spaces from the input.</para><para>The supplied predicate is used to determine which characters are considered spaces. The result is a trimmed copy of the input. It is returned as a sequence or copied to the output iterator</para><para>
  1270. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1271. </note>
  1272. </para></description><returns><para>An output iterator pointing just after the last inserted character or a copy of the input</para>
  1273. </returns></overloaded-function>
  1274. <function name="trim_right_copy"><type>SequenceT</type><template>
  1275. <template-type-parameter name="SequenceT"/>
  1276. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Right trim. </purpose><description><para>Remove all trailing spaces from the input. The result is a trimmed copy of the input</para><para>
  1277. <note><para>This function provides the strong exception-safety guarantee </para>
  1278. </note>
  1279. </para></description><returns><para>A trimmed copy of the input</para>
  1280. </returns></function>
  1281. <function name="trim_right_if"><type>void</type><template>
  1282. <template-type-parameter name="SequenceT"/>
  1283. <template-type-parameter name="PredicateT"/>
  1284. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Right trim - parametric. </purpose><description><para>Remove all trailing spaces from the input. The supplied predicate is used to determine which characters are considered spaces. The input sequence is modified in-place.</para><para>
  1285. </para></description></function>
  1286. <function name="trim_right"><type>void</type><template>
  1287. <template-type-parameter name="SequenceT"/>
  1288. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Right trim. </purpose><description><para>Remove all trailing spaces from the input. The input sequence is modified in-place.</para><para>
  1289. </para></description></function>
  1290. <overloaded-function name="trim_copy_if"><signature><type>OutputIteratorT</type><template>
  1291. <template-type-parameter name="OutputIteratorT"/>
  1292. <template-type-parameter name="RangeT"/>
  1293. <template-type-parameter name="PredicateT"/>
  1294. </template><parameter name="Output"><paramtype>OutputIteratorT</paramtype><description><para>An output iterator to which the result will be copied </para></description></parameter><parameter name="Input"><paramtype>const RangeT &amp;</paramtype><description><para>An input range </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter></signature><signature><type>SequenceT</type><template>
  1295. <template-type-parameter name="SequenceT"/>
  1296. <template-type-parameter name="PredicateT"/>
  1297. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype></parameter></signature><purpose>Trim - parametric. </purpose><description><para>Remove all trailing and leading spaces from the input. The supplied predicate is used to determine which characters are considered spaces. The result is a trimmed copy of the input. It is returned as a sequence or copied to the output iterator</para><para>
  1298. <note><para>The second variant of this function provides the strong exception-safety guarantee </para>
  1299. </note>
  1300. </para></description><returns><para>An output iterator pointing just after the last inserted character or a copy of the input</para>
  1301. </returns></overloaded-function>
  1302. <function name="trim_copy"><type>SequenceT</type><template>
  1303. <template-type-parameter name="SequenceT"/>
  1304. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Trim. </purpose><description><para>Remove all leading and trailing spaces from the input. The result is a trimmed copy of the input</para><para>
  1305. <note><para>This function provides the strong exception-safety guarantee </para>
  1306. </note>
  1307. </para></description><returns><para>A trimmed copy of the input</para>
  1308. </returns></function>
  1309. <function name="trim_if"><type>void</type><template>
  1310. <template-type-parameter name="SequenceT"/>
  1311. <template-type-parameter name="PredicateT"/>
  1312. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Trim. </purpose><description><para>Remove all leading and trailing spaces from the input. The supplied predicate is used to determine which characters are considered spaces. The input sequence is modified in-place.</para><para>
  1313. </para></description></function>
  1314. <function name="trim"><type>void</type><template>
  1315. <template-type-parameter name="SequenceT"/>
  1316. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Trim. </purpose><description><para>Remove all leading and trailing spaces from the input. The input sequence is modified in-place.</para><para>
  1317. </para></description></function>
  1318. </namespace>
  1319. </namespace>
  1320. </header>
  1321. <header name="boost/algorithm/string/trim_all.hpp">
  1322. <para>Defines trim_all algorithms.</para><para>Just like <computeroutput>trim</computeroutput>, <computeroutput>trim_all</computeroutput> removes all trailing and leading spaces from a sequence (string). In addition, spaces in the middle of the sequence are truncated to just one character. Space is recognized using given locales.</para><para><computeroutput>trim_fill</computeroutput> acts as trim_all, but the spaces in the middle are replaces with a user-define sequence of character.</para><para>Parametric (<computeroutput>_if</computeroutput>) variants use a predicate (functor) to select which characters are to be trimmed.. Functions take a selection predicate as a parameter, which is used to determine whether a character is a space. Common predicates are provided in classification.hpp header. </para><namespace name="boost">
  1323. <namespace name="algorithm">
  1324. <function name="trim_all_copy_if"><type>SequenceT</type><template>
  1325. <template-type-parameter name="SequenceT"/>
  1326. <template-type-parameter name="PredicateT"/>
  1327. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Trim All - parametric. </purpose><description><para>Remove all leading and trailing spaces from the input and compress all other spaces to a single character. The result is a trimmed copy of the input</para><para>
  1328. </para></description><returns><para>A trimmed copy of the input </para>
  1329. </returns></function>
  1330. <function name="trim_all_if"><type>void</type><template>
  1331. <template-type-parameter name="SequenceT"/>
  1332. <template-type-parameter name="PredicateT"/>
  1333. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Trim All. </purpose><description><para>Remove all leading and trailing spaces from the input and compress all other spaces to a single character. The input sequence is modified in-place.</para><para>
  1334. </para></description></function>
  1335. <function name="trim_all_copy"><type>SequenceT</type><template>
  1336. <template-type-parameter name="SequenceT"/>
  1337. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Trim All. </purpose><description><para>Remove all leading and trailing spaces from the input and compress all other spaces to a single character. The result is a trimmed copy of the input</para><para>
  1338. </para></description><returns><para>A trimmed copy of the input </para>
  1339. </returns></function>
  1340. <function name="trim_all"><type>void</type><template>
  1341. <template-type-parameter name="SequenceT"/>
  1342. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Trim All. </purpose><description><para>Remove all leading and trailing spaces from the input and compress all other spaces to a single character. The input sequence is modified in-place.</para><para>
  1343. </para></description><returns><para>A trimmed copy of the input </para>
  1344. </returns></function>
  1345. <function name="trim_fill_copy_if"><type>SequenceT</type><template>
  1346. <template-type-parameter name="SequenceT"/>
  1347. <template-type-parameter name="RangeT"/>
  1348. <template-type-parameter name="PredicateT"/>
  1349. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Fill"><paramtype>const RangeT &amp;</paramtype><description><para>A string used to fill the inner spaces </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Trim Fill - parametric. </purpose><description><para>Remove all leading and trailing spaces from the input and replace all every block of consecutive spaces with a fill string defined by user. The result is a trimmed copy of the input</para><para>
  1350. </para></description><returns><para>A trimmed copy of the input </para>
  1351. </returns></function>
  1352. <function name="trim_fill_if"><type>void</type><template>
  1353. <template-type-parameter name="SequenceT"/>
  1354. <template-type-parameter name="RangeT"/>
  1355. <template-type-parameter name="PredicateT"/>
  1356. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Fill"><paramtype>const RangeT &amp;</paramtype><description><para>A string used to fill the inner spaces </para></description></parameter><parameter name="IsSpace"><paramtype>PredicateT</paramtype><description><para>A unary predicate identifying spaces </para></description></parameter><purpose>Trim Fill. </purpose><description><para>Remove all leading and trailing spaces from the input and replace all every block of consecutive spaces with a fill string defined by user. The input sequence is modified in-place.</para><para>
  1357. </para></description></function>
  1358. <function name="trim_fill_copy"><type>SequenceT</type><template>
  1359. <template-type-parameter name="SequenceT"/>
  1360. <template-type-parameter name="RangeT"/>
  1361. </template><parameter name="Input"><paramtype>const SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Fill"><paramtype>const RangeT &amp;</paramtype><description><para>A string used to fill the inner spaces </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Trim Fill. </purpose><description><para>Remove all leading and trailing spaces from the input and replace all every block of consecutive spaces with a fill string defined by user. The result is a trimmed copy of the input</para><para>
  1362. </para></description><returns><para>A trimmed copy of the input </para>
  1363. </returns></function>
  1364. <function name="trim_fill"><type>void</type><template>
  1365. <template-type-parameter name="SequenceT"/>
  1366. <template-type-parameter name="RangeT"/>
  1367. </template><parameter name="Input"><paramtype>SequenceT &amp;</paramtype><description><para>An input sequence </para></description></parameter><parameter name="Fill"><paramtype>const RangeT &amp;</paramtype><description><para>A string used to fill the inner spaces </para></description></parameter><parameter name="Loc"><paramtype>const std::locale &amp;</paramtype><default>std::locale()</default><description><para>A locale used for 'space' classification </para></description></parameter><purpose>Trim Fill. </purpose><description><para>Remove all leading and trailing spaces from the input and replace all every block of consecutive spaces with a fill string defined by user. The input sequence is modified in-place.</para><para>
  1368. </para></description><returns><para>A trimmed copy of the input </para>
  1369. </returns></function>
  1370. </namespace>
  1371. </namespace>
  1372. </header>
  1373. <header name="boost/algorithm/string_regex.hpp">
  1374. <para>Cumulative include for string_algo library. In addition to string.hpp contains also regex-related stuff. </para></header>
  1375. </library-reference>