@@ -9,41 +9,41 @@ internal static partial class Interop
99{
1010 internal static partial class Globalization
1111 {
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 ) ;
1414
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 ) ;
1717
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 ) ;
2020
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 ) ;
2323
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 ) ;
2626
27- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_StartsWith" ) ]
27+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_StartsWith" , CharSet = CharSet . Unicode ) ]
2828 [ 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 ) ;
3030
31- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_EndsWith" ) ]
31+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_EndsWith" , CharSet = CharSet . Unicode ) ]
3232 [ 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 ) ;
3434
35- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_StartsWith" ) ]
35+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_StartsWith" , CharSet = CharSet . Unicode ) ]
3636 [ 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 ) ;
3838
39- [ DllImport ( Libraries . GlobalizationNative , CharSet = CharSet . Unicode , EntryPoint = "GlobalizationNative_EndsWith" ) ]
39+ [ GeneratedDllImport ( Libraries . GlobalizationNative , EntryPoint = "GlobalizationNative_EndsWith" , CharSet = CharSet . Unicode ) ]
4040 [ 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 ) ;
4242
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 ) ;
4545
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 ) ;
4848 }
4949}
0 commit comments