Skip to content
Tcl Source Code Artifact [4f2de39107]
Login

Artifact [4f2de39107]

Artifact 4f2de3910761616f27566d12eaf92e4b09292e5c:

Ticket change [4f2de39107] - New ticket [7114ac6141b45ffa|7114ac6141] <i>Tcllib: Tcl_GetInt and Tcl_GetDouble: imperfect docu</i>. by zoltan3 on 2016-08-25 10:12:14.
D 2016-08-25T10:12:14.659
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Tcl_GetInt:\r\n-\saccepts\swhite\sspaces\sbehind\sas\swell.\r\n-\s"If\sthe\sfirst\stwo\scharacters..."\sof\sthe\spart\swith\s"digits".\r\n-\snew\s8.5+\sformats\sare\snot\sdocumented.\r\n\r\nTcl_GetDouble:\r\n-\sdecimal\spoint\scan't\sbe\somitted\sin\sall\sof\sthe\scases.\s(e.g.\s"09")\r\n\r\n\r\n-------------\r\nCurrent\sdocu:\r\n\r\nTcl_GetInt\sexpects\ssrc\sto\sconsist\sof\sa\scollection\sof\sinteger\sdigits,\soptionally\ssigned\sand\soptionally\spreceded\sby\swhite\sspace.\sIf\sthe\sfirst\stwo\scharacters\sof\ssrc\safter\sthe\soptional\swhite\sspace\sand\ssign\sare\s“0x”\sthen\ssrc\sis\sexpected\sto\sbe\sin\shexadecimal\sform;\sotherwise,\sif\sthe\sfirst\ssuch\scharacter\sis\s“0”\sthen\ssrc\sis\sexpected\sto\sbe\sin\soctal\sform;\sotherwise,\ssrc\sis\sexpected\sto\sbe\sin\sdecimal\sform.\r\n\r\nTcl_GetDouble\sexpects\ssrc\sto\sconsist\sof\sa\sfloating-point\snumber,\swhich\sis:\swhite\sspace;\sa\ssign;\sa\ssequence\sof\sdigits;\sa\sdecimal\spoint;\sa\ssequence\sof\sdigits;\sthe\sletter\s“e”;\sa\ssigned\sdecimal\sexponent;\sand\smore\swhite\sspace.\sAny\sof\sthe\sfields\smay\sbe\somitted,\sexcept\sthat\sthe\sdigits\seither\sbefore\sor\safter\sthe\sdecimal\spoint\smust\sbe\spresent\sand\sif\sthe\s“e”\sis\spresent\sthen\sit\smust\sbe\sfollowed\sby\sthe\sexponent\snumber.
J foundin 8+
J is_private 0
J login zoltan3
J priority 5\sMedium
J private_contact 7dceb98053375d4287739ffc6e155c60ee006730
J resolution None
J severity Minor
J status Open
J submitter zoltan3
J subsystem 69.\sOther
J title Tcllib:\sTcl_GetInt\sand\sTcl_GetDouble:\simperfect\sdocu
J type Bug
K 7114ac6141b45ffa2b7b1dae14e224764de051d6
U zoltan3
Z 1f9ae86755ae99d3c212dfcf099d4b3a