Wiki source for imageNameGetLength


Show raw source

======**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**:
Note if the image security model is used and the image has been setup as non-writeable then the primitive get image name will fail when it checks security and never actually ask the platform code for the image name

**MacIntosh**
//os-9/OSXCarbon//
Invoke getImageNameWithEncoding, but then also check length of image name versus length parm for errors.

//Cocoa://
See iPhone

**iPhone**
strncpy(sqImageName, [self getImageName], length);
where getImageName is the precomposedStringWithCanonicalMapping UTF8 string from the URL

**Unix**
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?
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki