//
using HexaGen.Runtime;
using System;
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Dalamud.Bindings.ImGui;
public unsafe partial class ImGuiP
{
public static void ImQsort(void* baseValue, nuint count, nuint sizeOfElement, delegate*, int> compareFunc)
{
ImGuiPNative.ImQsort(baseValue, count, sizeOfElement, compareFunc);
}
public static uint ImAlphaBlendColors(uint colA, uint colB)
{
uint ret = ImGuiPNative.ImAlphaBlendColors(colA, colB);
return ret;
}
public static bool ImIsPowerOfTwo(int v)
{
byte ret = ImGuiPNative.ImIsPowerOfTwo(v);
return ret != 0;
}
public static bool ImIsPowerOfTwo(ulong v)
{
byte ret = ImGuiPNative.ImIsPowerOfTwo(v);
return ret != 0;
}
public static int ImUpperPowerOfTwo(int v)
{
int ret = ImGuiPNative.ImUpperPowerOfTwo(v);
return ret;
}
public static int ImStricmp(byte* str1, byte* str2)
{
int ret = ImGuiPNative.ImStricmp(str1, str2);
return ret;
}
public static int ImStricmp(ref byte str1, byte* str2)
{
fixed (byte* pstr1 = &str1)
{
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, str2);
return ret;
}
}
public static int ImStricmp(ReadOnlySpan str1, byte* str2)
{
fixed (byte* pstr1 = str1)
{
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, str2);
return ret;
}
}
public static int ImStricmp(string str1, byte* str2)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStricmp(pStr0, str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static int ImStricmp(byte* str1, ref byte str2)
{
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStricmp(str1, (byte*)pstr2);
return ret;
}
}
public static int ImStricmp(byte* str1, ReadOnlySpan str2)
{
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStricmp(str1, (byte*)pstr2);
return ret;
}
}
public static int ImStricmp(byte* str1, string str2)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str2 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStricmp(str1, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static int ImStricmp(ref byte str1, ref byte str2)
{
fixed (byte* pstr1 = &str1)
{
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, (byte*)pstr2);
return ret;
}
}
}
public static int ImStricmp(ReadOnlySpan str1, ReadOnlySpan str2)
{
fixed (byte* pstr1 = str1)
{
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, (byte*)pstr2);
return ret;
}
}
}
public static int ImStricmp(string str1, string str2)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (str2 != null)
{
pStrSize1 = Utils.GetByteCountUTF8(str2);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
int ret = ImGuiPNative.ImStricmp(pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static int ImStricmp(ref byte str1, ReadOnlySpan str2)
{
fixed (byte* pstr1 = &str1)
{
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, (byte*)pstr2);
return ret;
}
}
}
public static int ImStricmp(ref byte str1, string str2)
{
fixed (byte* pstr1 = &str1)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str2 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStricmp(ReadOnlySpan str1, ref byte str2)
{
fixed (byte* pstr1 = str1)
{
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, (byte*)pstr2);
return ret;
}
}
}
public static int ImStricmp(ReadOnlySpan str1, string str2)
{
fixed (byte* pstr1 = str1)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str2 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStricmp((byte*)pstr1, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStricmp(string str1, ref byte str2)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStricmp(pStr0, (byte*)pstr2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStricmp(string str1, ReadOnlySpan str2)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStricmp(pStr0, (byte*)pstr2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStrnicmp(byte* str1, byte* str2, nuint count)
{
int ret = ImGuiPNative.ImStrnicmp(str1, str2, count);
return ret;
}
public static int ImStrnicmp(ref byte str1, byte* str2, nuint count)
{
fixed (byte* pstr1 = &str1)
{
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, str2, count);
return ret;
}
}
public static int ImStrnicmp(ReadOnlySpan str1, byte* str2, nuint count)
{
fixed (byte* pstr1 = str1)
{
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, str2, count);
return ret;
}
}
public static int ImStrnicmp(string str1, byte* str2, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStrnicmp(pStr0, str2, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static int ImStrnicmp(byte* str1, ref byte str2, nuint count)
{
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStrnicmp(str1, (byte*)pstr2, count);
return ret;
}
}
public static int ImStrnicmp(byte* str1, ReadOnlySpan str2, nuint count)
{
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStrnicmp(str1, (byte*)pstr2, count);
return ret;
}
}
public static int ImStrnicmp(byte* str1, string str2, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str2 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStrnicmp(str1, pStr0, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static int ImStrnicmp(ref byte str1, ref byte str2, nuint count)
{
fixed (byte* pstr1 = &str1)
{
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, (byte*)pstr2, count);
return ret;
}
}
}
public static int ImStrnicmp(ReadOnlySpan str1, ReadOnlySpan str2, nuint count)
{
fixed (byte* pstr1 = str1)
{
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, (byte*)pstr2, count);
return ret;
}
}
}
public static int ImStrnicmp(string str1, string str2, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (str2 != null)
{
pStrSize1 = Utils.GetByteCountUTF8(str2);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(str2, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
int ret = ImGuiPNative.ImStrnicmp(pStr0, pStr1, count);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static int ImStrnicmp(ref byte str1, ReadOnlySpan str2, nuint count)
{
fixed (byte* pstr1 = &str1)
{
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, (byte*)pstr2, count);
return ret;
}
}
}
public static int ImStrnicmp(ref byte str1, string str2, nuint count)
{
fixed (byte* pstr1 = &str1)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str2 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, pStr0, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStrnicmp(ReadOnlySpan str1, ref byte str2, nuint count)
{
fixed (byte* pstr1 = str1)
{
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, (byte*)pstr2, count);
return ret;
}
}
}
public static int ImStrnicmp(ReadOnlySpan str1, string str2, nuint count)
{
fixed (byte* pstr1 = str1)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str2 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str2);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str2, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
int ret = ImGuiPNative.ImStrnicmp((byte*)pstr1, pStr0, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStrnicmp(string str1, ref byte str2, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr2 = &str2)
{
int ret = ImGuiPNative.ImStrnicmp(pStr0, (byte*)pstr2, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStrnicmp(string str1, ReadOnlySpan str2, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str1 != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str1);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str1, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr2 = str2)
{
int ret = ImGuiPNative.ImStrnicmp(pStr0, (byte*)pstr2, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static void ImStrncpy(byte* dst, byte* src, nuint count)
{
ImGuiPNative.ImStrncpy(dst, src, count);
}
public static void ImStrncpy(ref byte dst, byte* src, nuint count)
{
fixed (byte* pdst = &dst)
{
ImGuiPNative.ImStrncpy((byte*)pdst, src, count);
}
}
public static void ImStrncpy(ref string dst, byte* src, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiPNative.ImStrncpy(pStr0, src, count);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
public static void ImStrncpy(byte* dst, ref byte src, nuint count)
{
fixed (byte* psrc = &src)
{
ImGuiPNative.ImStrncpy(dst, (byte*)psrc, count);
}
}
public static void ImStrncpy(byte* dst, ReadOnlySpan src, nuint count)
{
fixed (byte* psrc = src)
{
ImGuiPNative.ImStrncpy(dst, (byte*)psrc, count);
}
}
public static void ImStrncpy(byte* dst, string src, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (src != null)
{
pStrSize0 = Utils.GetByteCountUTF8(src);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiPNative.ImStrncpy(dst, pStr0, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
public static void ImStrncpy(ref byte dst, ref byte src, nuint count)
{
fixed (byte* pdst = &dst)
{
fixed (byte* psrc = &src)
{
ImGuiPNative.ImStrncpy((byte*)pdst, (byte*)psrc, count);
}
}
}
public static void ImStrncpy(ref byte dst, ReadOnlySpan src, nuint count)
{
fixed (byte* pdst = &dst)
{
fixed (byte* psrc = src)
{
ImGuiPNative.ImStrncpy((byte*)pdst, (byte*)psrc, count);
}
}
}
public static void ImStrncpy(ref string dst, string src, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (src != null)
{
pStrSize1 = Utils.GetByteCountUTF8(src);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(src, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
ImGuiPNative.ImStrncpy(pStr0, pStr1, count);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
public static void ImStrncpy(ref byte dst, string src, nuint count)
{
fixed (byte* pdst = &dst)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (src != null)
{
pStrSize0 = Utils.GetByteCountUTF8(src);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(src, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
ImGuiPNative.ImStrncpy((byte*)pdst, pStr0, count);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
public static void ImStrncpy(ref string dst, ref byte src, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* psrc = &src)
{
ImGuiPNative.ImStrncpy(pStr0, (byte*)psrc, count);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
public static void ImStrncpy(ref string dst, ReadOnlySpan src, nuint count)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* psrc = src)
{
ImGuiPNative.ImStrncpy(pStr0, (byte*)psrc, count);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
}
}
public static byte* ImStrdup(byte* str)
{
byte* ret = ImGuiPNative.ImStrdup(str);
return ret;
}
public static byte* ImStrdup(ref byte str)
{
fixed (byte* pstr = &str)
{
byte* ret = ImGuiPNative.ImStrdup((byte*)pstr);
return ret;
}
}
public static byte* ImStrdup(ReadOnlySpan str)
{
fixed (byte* pstr = str)
{
byte* ret = ImGuiPNative.ImStrdup((byte*)pstr);
return ret;
}
}
public static byte* ImStrdup(string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStrdup(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static string ImStrdupS(byte* str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdup(str));
return ret;
}
public static string ImStrdupS(ref byte str)
{
fixed (byte* pstr = &str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdup((byte*)pstr));
return ret;
}
}
public static string ImStrdupS(ReadOnlySpan str)
{
fixed (byte* pstr = str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdup((byte*)pstr));
return ret;
}
}
public static string ImStrdupS(string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdup(pStr0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, byte* str)
{
byte* ret = ImGuiPNative.ImStrdupcpy(dst, pDstSize, str);
return ret;
}
public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, byte* str)
{
fixed (byte* pdst = &dst)
{
byte* ret = ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, str);
return ret;
}
}
public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, byte* str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, str);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ref byte str)
{
fixed (byte* pstr = &str)
{
byte* ret = ImGuiPNative.ImStrdupcpy(dst, pDstSize, (byte*)pstr);
return ret;
}
}
public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, ReadOnlySpan str)
{
fixed (byte* pstr = str)
{
byte* ret = ImGuiPNative.ImStrdupcpy(dst, pDstSize, (byte*)pstr);
return ret;
}
}
public static byte* ImStrdupcpy(byte* dst, nuint* pDstSize, string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStrdupcpy(dst, pDstSize, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ref byte str)
{
fixed (byte* pdst = &dst)
{
fixed (byte* pstr = &str)
{
byte* ret = ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, (byte*)pstr);
return ret;
}
}
}
public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, ReadOnlySpan str)
{
fixed (byte* pdst = &dst)
{
fixed (byte* pstr = str)
{
byte* ret = ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, (byte*)pstr);
return ret;
}
}
}
public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (str != null)
{
pStrSize1 = Utils.GetByteCountUTF8(str);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, pStr1);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStrdupcpy(ref byte dst, nuint* pDstSize, string str)
{
fixed (byte* pdst = &dst)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, ref byte str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr = &str)
{
byte* ret = ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, (byte*)pstr);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStrdupcpy(ref string dst, nuint* pDstSize, ReadOnlySpan str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr = str)
{
byte* ret = ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, (byte*)pstr);
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, byte* str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(dst, pDstSize, str));
return ret;
}
public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, byte* str)
{
fixed (byte* pdst = &dst)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, str));
return ret;
}
}
public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, byte* str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, str));
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ref byte str)
{
fixed (byte* pstr = &str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(dst, pDstSize, (byte*)pstr));
return ret;
}
}
public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, ReadOnlySpan str)
{
fixed (byte* pstr = str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(dst, pDstSize, (byte*)pstr));
return ret;
}
}
public static string ImStrdupcpyS(byte* dst, nuint* pDstSize, string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(dst, pDstSize, pStr0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ref byte str)
{
fixed (byte* pdst = &dst)
{
fixed (byte* pstr = &str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, (byte*)pstr));
return ret;
}
}
}
public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, ReadOnlySpan str)
{
fixed (byte* pdst = &dst)
{
fixed (byte* pstr = str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, (byte*)pstr));
return ret;
}
}
}
public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, string str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (str != null)
{
pStrSize1 = Utils.GetByteCountUTF8(str);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(str, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, pStr1));
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static string ImStrdupcpyS(ref byte dst, nuint* pDstSize, string str)
{
fixed (byte* pdst = &dst)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (str != null)
{
pStrSize0 = Utils.GetByteCountUTF8(str);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(str, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy((byte*)pdst, pDstSize, pStr0));
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, ref byte str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr = &str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, (byte*)pstr));
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static string ImStrdupcpyS(ref string dst, nuint* pDstSize, ReadOnlySpan str)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (dst != null)
{
pStrSize0 = Utils.GetByteCountUTF8(dst);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(dst, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pstr = str)
{
string ret = Utils.DecodeStringUTF8(ImGuiPNative.ImStrdupcpy(pStr0, pDstSize, (byte*)pstr));
dst = Utils.DecodeStringUTF8(pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static int ImStrlenW(ushort* str)
{
int ret = ImGuiPNative.ImStrlenW(str);
return ret;
}
public static ushort* ImStrbolW(ushort* bufMidLine, ushort* bufBegin)
{
ushort* ret = ImGuiPNative.ImStrbolW(bufMidLine, bufBegin);
return ret;
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, byte* needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, needle, needleEnd);
return ret;
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, needleEnd);
return ret;
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, needleEnd);
return ret;
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, needle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, needleEnd);
return ret;
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, needleEnd);
return ret;
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, needle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, needle, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, string needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needle != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needle);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, pStr1, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, ref byte needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, string needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needle != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needle);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, pStr1, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, ref byte needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(string haystack, string haystackEnd, string needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* pStr2 = null;
int pStrSize2 = 0;
if (needle != null)
{
pStrSize2 = Utils.GetByteCountUTF8(needle);
if (pStrSize2 >= Utils.MaxStackallocSize)
{
pStr2 = Utils.Alloc(pStrSize2 + 1);
}
else
{
byte* pStrStack2 = stackalloc byte[pStrSize2 + 1];
pStr2 = pStrStack2;
}
int pStrOffset2 = Utils.EncodeStringUTF8(needle, pStr2, pStrSize2);
pStr2[pStrOffset2] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, pStr2, needleEnd);
if (pStrSize2 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr2);
}
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needle != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needle);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, pStr1, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, pStr0, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ref byte needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, string needle, byte* needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needle != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needle);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, pStr1, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, ref byte needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, string needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr1 = null;
int pStrSize1 = 0;
if (needle != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needle);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, pStr1, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, ref byte needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, (byte*)pneedle, needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, string needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr1 = null;
int pStrSize1 = 0;
if (needle != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needle);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needle, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, pStr1, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, string haystackEnd, ref byte needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
fixed (byte* pneedle = &needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, (byte*)pneedle, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, string haystackEnd, ReadOnlySpan needle, byte* needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
fixed (byte* pneedle = needle)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, (byte*)pneedle, needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, byte* needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, needle, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, byte* haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, byte* haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, haystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, ref byte needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, byte* haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, haystackEnd, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, needle, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, ref byte haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, (byte*)phaystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, ref byte needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, pStr0, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* pStr2 = null;
int pStrSize2 = 0;
if (needleEnd != null)
{
pStrSize2 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize2 >= Utils.MaxStackallocSize)
{
pStr2 = Utils.Alloc(pStrSize2 + 1);
}
else
{
byte* pStrStack2 = stackalloc byte[pStrSize2 + 1];
pStr2 = pStrStack2;
}
int pStrOffset2 = Utils.EncodeStringUTF8(needleEnd, pStr2, pStrSize2);
pStr2[pStrOffset2] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, needle, pStr2);
if (pStrSize2 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr2);
}
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ref byte haystack, ref byte haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ref byte haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = &haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ref byte haystack, string haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = &haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ref byte haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
return ret;
}
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = haystack)
{
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, (byte*)phaystackEnd, needle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, ref byte needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(ReadOnlySpan haystack, string haystackEnd, byte* needle, string needleEnd)
{
fixed (byte* phaystack = haystack)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystackEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystackEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr((byte*)phaystack, pStr0, needle, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ref byte needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ref byte haystackEnd, byte* needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = &haystackEnd)
{
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, ref byte needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
}
public static byte* ImStristr(string haystack, ReadOnlySpan haystackEnd, byte* needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* phaystackEnd = haystackEnd)
{
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(pStr0, (byte*)phaystackEnd, needle, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, ref byte needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, needle, (byte*)pneedleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(string haystack, string haystackEnd, byte* needle, ReadOnlySpan needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (haystack != null)
{
pStrSize0 = Utils.GetByteCountUTF8(haystack);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(haystack, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (haystackEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(haystackEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(haystackEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(pStr0, pStr1, needle, (byte*)pneedleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, ref byte needleEnd)
{
fixed (byte* pneedle = &needle)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, ReadOnlySpan needleEnd)
{
fixed (byte* pneedle = needle)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, string needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* pStr1 = null;
int pStrSize1 = 0;
if (needleEnd != null)
{
pStrSize1 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
pStr1 = Utils.Alloc(pStrSize1 + 1);
}
else
{
byte* pStrStack1 = stackalloc byte[pStrSize1 + 1];
pStr1 = pStrStack1;
}
int pStrOffset1 = Utils.EncodeStringUTF8(needleEnd, pStr1, pStrSize1);
pStr1[pStrOffset1] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, pStr0, pStr1);
if (pStrSize1 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr1);
}
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, ReadOnlySpan needleEnd)
{
fixed (byte* pneedle = &needle)
{
fixed (byte* pneedleEnd = needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ref byte needle, string needleEnd)
{
fixed (byte* pneedle = &needle)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, ref byte needleEnd)
{
fixed (byte* pneedle = needle)
{
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, (byte*)pneedleEnd);
return ret;
}
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, ReadOnlySpan needle, string needleEnd)
{
fixed (byte* pneedle = needle)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needleEnd != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needleEnd, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, (byte*)pneedle, pStr0);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, ref byte needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc(pStrSize0 + 1);
}
else
{
byte* pStrStack0 = stackalloc byte[pStrSize0 + 1];
pStr0 = pStrStack0;
}
int pStrOffset0 = Utils.EncodeStringUTF8(needle, pStr0, pStrSize0);
pStr0[pStrOffset0] = 0;
}
fixed (byte* pneedleEnd = &needleEnd)
{
byte* ret = ImGuiPNative.ImStristr(haystack, haystackEnd, pStr0, (byte*)pneedleEnd);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
Utils.Free(pStr0);
}
return ret;
}
}
public static byte* ImStristr(byte* haystack, byte* haystackEnd, string needle, ReadOnlySpan needleEnd)
{
byte* pStr0 = null;
int pStrSize0 = 0;
if (needle != null)
{
pStrSize0 = Utils.GetByteCountUTF8(needle);
if (pStrSize0 >= Utils.MaxStackallocSize)
{
pStr0 = Utils.Alloc