Revision [219]
This is an old revision of imageNameGetLength made by JohnMcIntosh on 2008-10-17 02:35:34.
sqInt imageNameGetLength(sqInt sqImageNameIndex, sqInt length)
Parms:
sqImageNameIndex pointer to storage for name
length is length of string in bytes, this is pre-calculated by calling imageNameSize in the past.
return: NONE, fake return of zero
From: Interpreter primitiveImageName
Why:
Get image name
Responsibility:
MacIntosh
os-9/OSXCarbon
Invoke getImageNameWithEncoding, but then also check length of image name versus length parm for errors.
Cocoa:
TBD
iPhone
strncpy(sqImageName, [self getImageName], length);
where getImageName is the UTF8 string from the URL
Unixwhere getImageName is the UTF8 string from the URL
Copy over the imageName upto the size of the imageName or length.
Windows
Copy over the imageName upto the size of the imageName or length.
BUGS
Does the name need to be in platform encoding or not?