@@ -9,41 +9,41 @@ internal static partial class Interop
9
9
{
10
10
internal static partial class Globalization
11
11
{
12
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Ansi , EntryPoint = "GlobalizationNative_GetSortHandle" ) ]
13
- internal static extern unsafe ResultCode GetSortHandle ( string localeName , out IntPtr sortHandle ) ;
12
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_GetSortHandle" , CharSet = CharSet . Ansi ) ]
13
+ internal static unsafe partial ResultCode GetSortHandle ( string localeName , out IntPtr sortHandle ) ;
14
14
15
- [ DllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_CloseSortHandle" ) ]
16
- internal static extern void CloseSortHandle ( IntPtr handle ) ;
15
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_CloseSortHandle" ) ]
16
+ internal static partial void CloseSortHandle ( IntPtr handle ) ;
17
17
18
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_CompareString" ) ]
19
- internal static extern unsafe int CompareString ( IntPtr sortHandle , char * lpStr1 , int cwStr1Len , char * lpStr2 , int cwStr2Len , CompareOptions options ) ;
18
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_CompareString" , CharSet = CharSet . Unicode ) ]
19
+ internal static unsafe partial int CompareString ( IntPtr sortHandle , char * lpStr1 , int cwStr1Len , char * lpStr2 , int cwStr2Len , CompareOptions options ) ;
20
20
21
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_IndexOf" ) ]
22
- internal static extern unsafe int IndexOf ( IntPtr sortHandle , char * target , int cwTargetLength , char * pSource , int cwSourceLength , CompareOptions options , int * matchLengthPtr ) ;
21
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_IndexOf" , CharSet = CharSet . Unicode ) ]
22
+ internal static unsafe partial int IndexOf ( IntPtr sortHandle , char * target , int cwTargetLength , char * pSource , int cwSourceLength , CompareOptions options , int * matchLengthPtr ) ;
23
23
24
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_LastIndexOf" ) ]
25
- internal static extern unsafe int LastIndexOf ( IntPtr sortHandle , char * target , int cwTargetLength , char * pSource , int cwSourceLength , CompareOptions options , int * matchLengthPtr ) ;
24
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_LastIndexOf" , CharSet = CharSet . Unicode ) ]
25
+ internal static unsafe partial int LastIndexOf ( IntPtr sortHandle , char * target , int cwTargetLength , char * pSource , int cwSourceLength , CompareOptions options , int * matchLengthPtr ) ;
26
26
27
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_StartsWith" ) ]
27
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_StartsWith" , CharSet = CharSet . Unicode ) ]
28
28
[ return : MarshalAs ( UnmanagedType . Bool ) ]
29
- internal static extern unsafe bool StartsWith ( IntPtr sortHandle , char * target , int cwTargetLength , char * source , int cwSourceLength , CompareOptions options , int * matchedLength ) ;
29
+ internal static unsafe partial bool StartsWith ( IntPtr sortHandle , char * target , int cwTargetLength , char * source , int cwSourceLength , CompareOptions options , int * matchedLength ) ;
30
30
31
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_EndsWith" ) ]
31
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_EndsWith" , CharSet = CharSet . Unicode ) ]
32
32
[ return : MarshalAs ( UnmanagedType . Bool ) ]
33
- internal static extern unsafe bool EndsWith ( IntPtr sortHandle , char * target , int cwTargetLength , char * source , int cwSourceLength , CompareOptions options , int * matchedLength ) ;
33
+ internal static unsafe partial bool EndsWith ( IntPtr sortHandle , char * target , int cwTargetLength , char * source , int cwSourceLength , CompareOptions options , int * matchedLength ) ;
34
34
35
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_StartsWith" ) ]
35
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_StartsWith" , CharSet = CharSet . Unicode ) ]
36
36
[ return : MarshalAs ( UnmanagedType . Bool ) ]
37
- internal static extern bool StartsWith ( IntPtr sortHandle , string target , int cwTargetLength , string source , int cwSourceLength , CompareOptions options ) ;
37
+ internal static partial bool StartsWith ( IntPtr sortHandle , string target , int cwTargetLength , string source , int cwSourceLength , CompareOptions options ) ;
38
38
39
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_EndsWith" ) ]
39
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_EndsWith" , CharSet = CharSet . Unicode ) ]
40
40
[ return : MarshalAs ( UnmanagedType . Bool ) ]
41
- internal static extern bool EndsWith ( IntPtr sortHandle , string target , int cwTargetLength , string source , int cwSourceLength , CompareOptions options ) ;
41
+ internal static partial bool EndsWith ( IntPtr sortHandle , string target , int cwTargetLength , string source , int cwSourceLength , CompareOptions options ) ;
42
42
43
- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_GetSortKey" ) ]
44
- internal static extern unsafe int GetSortKey ( IntPtr sortHandle , char * str , int strLength , byte * sortKey , int sortKeyLength , CompareOptions options ) ;
43
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_GetSortKey" , CharSet = CharSet . Unicode ) ]
44
+ internal static unsafe partial int GetSortKey ( IntPtr sortHandle , char * str , int strLength , byte * sortKey , int sortKeyLength , CompareOptions options ) ;
45
45
46
- [ DllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_GetSortVersion" ) ]
47
- internal static extern int GetSortVersion ( IntPtr sortHandle ) ;
46
+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_GetSortVersion" ) ]
47
+ internal static partial int GetSortVersion ( IntPtr sortHandle ) ;
48
48
}
49
49
}
0 commit comments