2 // lf_hfs_unicode_wrappers.h
5 // Created by Yakov Ben Zaken on 22/03/2018.
8 #ifndef lf_hfs_unicode_wrappers_h
9 #define lf_hfs_unicode_wrappers_h
12 #include "lf_hfs_defs.h"
13 #include "lf_hfs_file_mgr_internal.h"
15 int32_t FastUnicodeCompare ( register ConstUniCharArrayPtr str1
, register ItemCount len1
, register ConstUniCharArrayPtr str2
, register ItemCount len2
);
17 int32_t UnicodeBinaryCompare ( register ConstUniCharArrayPtr str1
, register ItemCount len1
, register ConstUniCharArrayPtr str2
, register ItemCount len2
);
19 HFSCatalogNodeID
GetEmbeddedFileID( ConstStr31Param filename
, u_int32_t length
, u_int32_t
*prefixLength
);
21 OSErr
ConvertUnicodeToUTF8Mangled(ByteCount srcLen
, ConstUniCharArrayPtr srcStr
, ByteCount maxDstLen
,
22 ByteCount
*actualDstLen
, unsigned char* dstStr
, HFSCatalogNodeID cnid
);
25 CountFilenameExtensionChars( const unsigned char * filename
, u_int32_t length
);
28 #endif /* lf_hfs_unicode_wrappers_h */