]> git.saurik.com Git - apple/hfs.git/blob - livefiles_hfs_plugin/lf_hfs_unicode_wrappers.h
hfs-522.100.5.tar.gz
[apple/hfs.git] / livefiles_hfs_plugin / lf_hfs_unicode_wrappers.h
1 //
2 // lf_hfs_unicode_wrappers.h
3 // livefiles_hfs
4 //
5 // Created by Yakov Ben Zaken on 22/03/2018.
6 //
7
8 #ifndef lf_hfs_unicode_wrappers_h
9 #define lf_hfs_unicode_wrappers_h
10
11 #include <stdio.h>
12 #include "lf_hfs_defs.h"
13 #include "lf_hfs_file_mgr_internal.h"
14
15 int32_t FastUnicodeCompare ( register ConstUniCharArrayPtr str1, register ItemCount len1, register ConstUniCharArrayPtr str2, register ItemCount len2);
16
17 int32_t UnicodeBinaryCompare ( register ConstUniCharArrayPtr str1, register ItemCount len1, register ConstUniCharArrayPtr str2, register ItemCount len2 );
18
19 HFSCatalogNodeID GetEmbeddedFileID( ConstStr31Param filename, u_int32_t length, u_int32_t *prefixLength );
20
21 OSErr ConvertUnicodeToUTF8Mangled(ByteCount srcLen, ConstUniCharArrayPtr srcStr, ByteCount maxDstLen,
22 ByteCount *actualDstLen, unsigned char* dstStr, HFSCatalogNodeID cnid);
23
24 u_int32_t
25 CountFilenameExtensionChars( const unsigned char * filename, u_int32_t length );
26
27
28 #endif /* lf_hfs_unicode_wrappers_h */