Lines Matching refs:length
60 static void GetFilenameExtension( ItemCount length, ConstUniCharArrayPtr unicodeStr, char* extStr );
63 static u_int32_t HexStringToInteger( u_int32_t length, const u_int8_t *hexStr );
70 GetFilenameExtension(ItemCount length, ConstUniCharArrayPtr unicodeStr, char * extStr)
80 if ( length < 3 )
83 if ( length < (kMaxFileExtensionChars + 2) )
84 maxExtChars = length - 2; /* save room for prefix + dot */
88 i = length;
125 CountFilenameExtensionChars( const unsigned char * filename, u_int32_t length )
133 if ( length < 3 )
136 if ( length < (kMaxFileExtensionChars + 2) )
137 maxExtChars = length - 2; /* save room for prefix + dot */
142 i = length - 1; /* index to last ascii character */
170 GetEmbeddedFileID(const unsigned char * filename, u_int32_t length, u_int32_t *prefixLength)
181 if ( length < 28 )
185 if ( length > 5 )
186 extChars = CountFilenameExtensionChars(filename, length);
192 length -= (extChars + 1);
195 for ( i = length - 1; i >= 0; --i) {
200 if ( (length - i) < 3 )
204 return HexStringToInteger(length - i - 1, &filename[i+1]);
217 HexStringToInteger(u_int32_t length, const u_int8_t *hexStr)
227 for ( i = 0; i < length; ++i ) {
257 u_int8_t length, length2;
261 length = *(str1++);
264 if (length == length2)
266 else if (length < length2)
269 delta = length2 - length;
274 length = length2;
279 while (length--)
340 // Also, we can't pre-compute the number of characters to compare; the string length might
452 /* First generate the string length (for comparison purposes) */