summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:04:06 +0000
committerfcolin2007-02-01 10:04:06 +0000
commitf272a50be3cedc0415d9da638b14a5c37d68e388 (patch)
tree5d748ec07a68eae15800f12db85d1d68ba2fe02f /CSharp/Ivy/IvyPPC
parent776e338b049807e3ccc8ddd948968b957c21d467 (diff)
downloadivy-csharp-f272a50be3cedc0415d9da638b14a5c37d68e388.zip
ivy-csharp-f272a50be3cedc0415d9da638b14a5c37d68e388.tar.gz
ivy-csharp-f272a50be3cedc0415d9da638b14a5c37d68e388.tar.bz2
ivy-csharp-f272a50be3cedc0415d9da638b14a5c37d68e388.tar.xz
Utilisateur : Fcolin Date : 30/06/06 Heure : 16:45 Créé Commentaire: (vss 1)
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r--CSharp/Ivy/IvyPPC/Pcre.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/CSharp/Ivy/IvyPPC/Pcre.cs b/CSharp/Ivy/IvyPPC/Pcre.cs
new file mode 100644
index 0000000..9286b65
--- /dev/null
+++ b/CSharp/Ivy/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
+ //
+ }
+ }
+}