summaryrefslogtreecommitdiff
path: root/IvyToDel/IvyPPC/Pcre.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:03:55 +0000
committerfcolin2007-02-01 12:03:55 +0000
commit98ab5d0164040427f7c554febae125686284e2a7 (patch)
treea6ab9c20fbf1172553d364c91447149e4dc72ab0 /IvyToDel/IvyPPC/Pcre.cs
parent531dfa4389ba34a0d32eed0ba8c82839e437d992 (diff)
downloadivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.zip
ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.gz
ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.bz2
ivy-csharp-98ab5d0164040427f7c554febae125686284e2a7.tar.xz
modification structure svn
Diffstat (limited to 'IvyToDel/IvyPPC/Pcre.cs')
-rw-r--r--IvyToDel/IvyPPC/Pcre.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/IvyToDel/IvyPPC/Pcre.cs b/IvyToDel/IvyPPC/Pcre.cs
new file mode 100644
index 0000000..9286b65
--- /dev/null
+++ b/IvyToDel/IvyPPC/Pcre.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace IvyBus
+{
+ /// <summary>
+ /// Description résumée de Pcre.
+ /// </summary>
+ public class Pcre
+ {
+ [DllImport("pcre.dll")]
+ public static extern void *pcre_compile( string pattern, int options,
+ out string errptr, out int erroffset,
+ string tableptr);
+ [DllImport("pcre.dll")]
+ internal static extern void pcre_free(void *pcre);
+
+ [DllImport("pcre.dll")]
+ internal static extern int pcre_exec( void *code, string extra,
+ string subject, int length, int startoffset,
+ int options, out int[] ovector, int ovecsize);
+
+ [DllImport("pcre.dll")]
+ internal static extern int pcre_get_substring_list(string subject,
+ int *ovector, int stringcount, out string[] listptr);
+ [DllImport("pcre.dll")]
+ internal static extern void pcre_free_substring_list( ref string[] stringptr);
+
+ public Pcre()
+ {
+ //
+ // TODO : ajoutez ici la logique du constructeur
+ //
+ }
+ }
+}