From f272a50be3cedc0415d9da638b14a5c37d68e388 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:04:06 +0000 Subject: Utilisateur : Fcolin Date : 30/06/06 Heure : 16:45 Créé Commentaire: (vss 1) --- CSharp/Ivy/IvyPPC/Pcre.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 CSharp/Ivy/IvyPPC/Pcre.cs (limited to 'CSharp/Ivy/IvyPPC/Pcre.cs') 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 +{ + /// + /// Description résumée de Pcre. + /// + 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 + // + } + } +} -- cgit v1.1