summaryrefslogtreecommitdiff
path: root/Ivy/IvyPPC/Pcre.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 11:59:19 +0000
committerfcolin2007-02-01 11:59:19 +0000
commit31a4ba441a313dca7821cae97378ac77b90068cc (patch)
tree0a1ce34e3217d3810cff6d86c8d7e215b783975c /Ivy/IvyPPC/Pcre.cs
parentcbf21e890ed2df9dc964bd017b48da8e94e2c608 (diff)
downloadivy-csharp-31a4ba441a313dca7821cae97378ac77b90068cc.zip
ivy-csharp-31a4ba441a313dca7821cae97378ac77b90068cc.tar.gz
ivy-csharp-31a4ba441a313dca7821cae97378ac77b90068cc.tar.bz2
ivy-csharp-31a4ba441a313dca7821cae97378ac77b90068cc.tar.xz
suppression niveaux
Diffstat (limited to 'Ivy/IvyPPC/Pcre.cs')
-rw-r--r--Ivy/IvyPPC/Pcre.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Ivy/IvyPPC/Pcre.cs b/Ivy/IvyPPC/Pcre.cs
new file mode 100644
index 0000000..9286b65
--- /dev/null
+++ b/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
+ //
+ }
+ }
+}