39 lines
1.6 KiB
C#
39 lines
1.6 KiB
C#
// This file was generated by the Gtk# code generator.
|
|
// Any changes made will be lost if regenerated.
|
|
|
|
namespace GtkSource {
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
#region Autogenerated code
|
|
public partial class Utils {
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate IntPtr d_gtk_source_utils_escape_search_text(IntPtr text);
|
|
static d_gtk_source_utils_escape_search_text gtk_source_utils_escape_search_text = FuncLoader.LoadFunction<d_gtk_source_utils_escape_search_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_utils_escape_search_text"));
|
|
|
|
public static string EscapeSearchText(string text) {
|
|
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
|
|
IntPtr raw_ret = gtk_source_utils_escape_search_text(native_text);
|
|
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
|
GLib.Marshaller.Free (native_text);
|
|
return ret;
|
|
}
|
|
|
|
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
|
|
delegate IntPtr d_gtk_source_utils_unescape_search_text(IntPtr text);
|
|
static d_gtk_source_utils_unescape_search_text gtk_source_utils_unescape_search_text = FuncLoader.LoadFunction<d_gtk_source_utils_unescape_search_text>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GtkSource), "gtk_source_utils_unescape_search_text"));
|
|
|
|
public static string UnescapeSearchText(string text) {
|
|
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
|
|
IntPtr raw_ret = gtk_source_utils_unescape_search_text(native_text);
|
|
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
|
GLib.Marshaller.Free (native_text);
|
|
return ret;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|