iSqueak Wikki : attributeSize

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [413]

Most recent edit made on 2010-09-12 21:32:29 by JohnMcIntosh

Additions:
See iPhone


Deletions:
TBD




Revision [155]

Edited on 2008-10-15 04:46:38 by JohnMcIntosh

Additions:
Fails primitive call if returned value is null
Windows version returns primitiveFail(), but primitiveFail() has no explicit return value, could be zero, or garbage depending on compiler...




Revision [154]

The oldest known version of this page was edited on 2008-10-15 04:41:29 by JohnMcIntosh

sqInt attributeSize(sqInt indexNumber)


Parms: indexNumber, negative, positive, or zero.
return: size of string from getAttribute(indexNumber).
From: Interpreter
Why:
To figure out how much space to reserve to later place the attribute in.
Responsibility:
To call getAttribute: and then calculate the string size
To get an attribute we call getAttribute twice, once to get the size, once to get the number, a bit ugly

MacIntosh
os-9/OSXCarbon

Cocoa:
TBD

iPhone

Unix

Windows

BUGS


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0796 seconds