summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2012-12-14 22:54:07 +0000
committerfcolin2012-12-14 22:54:07 +0000
commit3180caa8ec4a428b302e2b31e0a5cc36920276ab (patch)
tree27ee4b9a854b77fea83efbf0bde3beddbfbbb805 /Ivy
parent4d0f34bc5af1bf6ec82587d6d18e86d1f84251f2 (diff)
downloadivy-csharp-master.zip
ivy-csharp-master.tar.gz
ivy-csharp-master.tar.bz2
ivy-csharp-master.tar.xz
ben oui ca n'a jamais ete faitHEADmaster
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/Pcre.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/Ivy/Pcre.cs b/Ivy/Pcre.cs
new file mode 100644
index 0000000..9286b65
--- /dev/null
+++ b/Ivy/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
+ //
+ }
+ }
+}