diff --git a/buildSrc/src/main/kotlin/tool/generator/api/jni_content.kt b/buildSrc/src/main/kotlin/tool/generator/api/jni_content.kt index 9d2a622..a7d85c3 100644 --- a/buildSrc/src/main/kotlin/tool/generator/api/jni_content.kt +++ b/buildSrc/src/main/kotlin/tool/generator/api/jni_content.kt @@ -350,8 +350,8 @@ private fun convertManualJni(mOrig: CtMethod<*>, method: CtMethod<*>): CtMethod< } if (p.isType("String")) { - getLines += "auto ${p.simpleName} = obj_${p.simpleName} == NULL ? NULL : (char*)env->GetStringUTFChars(obj_${p.simpleName}, JNI_FALSE)" - releaseLines += "if (${p.simpleName} != NULL) env->ReleaseStringUTFChars(obj_${p.simpleName}, ${p.simpleName})" + getLines += "auto ${p.simpleName} = Jni::ToTrueUtf8(env, obj_${p.simpleName})" + releaseLines += "Jni::FreeTrueUtf8(${p.simpleName})" isConverted = true } @@ -361,14 +361,12 @@ private fun convertManualJni(mOrig: CtMethod<*>, method: CtMethod<*>): CtMethod< const char* ${p.simpleName}[$countParam]; for (int i = 0; i < ${p.simpleName}$PARAM_ARR_LEN_POSTFIX; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_${p.simpleName}, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); - ${p.simpleName}[i] = rawStr; + ${p.simpleName}[i] = Jni::ToTrueUtf8(env, str); } """.trimIndent() releaseLines += """ for (int i = 0; i < $countParam; i++) { - const jstring str = (jstring)env->GetObjectArrayElement(obj_${p.simpleName}, i); - env->ReleaseStringUTFChars(str, ${p.simpleName}[i]); + Jni::FreeTrueUtf8((char*)${p.simpleName}[i]); } """.trimIndent() isConverted = true diff --git a/imgui-binding/src/generated/java/imgui/ImDrawList.java b/imgui-binding/src/generated/java/imgui/ImDrawList.java index c3c5a25..fc672c9 100644 --- a/imgui-binding/src/generated/java/imgui/ImDrawList.java +++ b/imgui-binding/src/generated/java/imgui/ImDrawList.java @@ -734,19 +734,19 @@ public final class ImDrawList extends ImGuiStruct { } private native void nAddText(float posX, float posY, int col, String textBegin); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); ImVec2 pos = ImVec2(posX, posY); THIS->AddText(pos, col, textBegin); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); */ private native void nAddText(float posX, float posY, int col, String textBegin, String textEnd); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); THIS->AddText(pos, col, textBegin, textEnd); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ public void addText(final ImFont font, final int fontSize, final ImVec2 pos, final int col, final String textBegin) { @@ -806,64 +806,64 @@ public final class ImDrawList extends ImGuiStruct { } private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); ImVec2 pos = ImVec2(posX, posY); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); */ private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin, String textEnd); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin, textEnd); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin, String textEnd, float wrapWidth); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin, textEnd, wrapWidth); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin, String textEnd, float wrapWidth, float cpuFineClipRectX, float cpuFineClipRectY, float cpuFineClipRectZ, float cpuFineClipRectW); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); ImVec4 cpuFineClipRect = ImVec4(cpuFineClipRectX, cpuFineClipRectY, cpuFineClipRectZ, cpuFineClipRectW); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin, textEnd, wrapWidth, &cpuFineClipRect); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin, float wrapWidth, float cpuFineClipRectX, float cpuFineClipRectY, float cpuFineClipRectZ, float cpuFineClipRectW); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); ImVec2 pos = ImVec2(posX, posY); ImVec4 cpuFineClipRect = ImVec4(cpuFineClipRectX, cpuFineClipRectY, cpuFineClipRectZ, cpuFineClipRectW); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin, NULL, wrapWidth, &cpuFineClipRect); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); */ private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin, float cpuFineClipRectX, float cpuFineClipRectY, float cpuFineClipRectZ, float cpuFineClipRectW); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); ImVec2 pos = ImVec2(posX, posY); ImVec4 cpuFineClipRect = ImVec4(cpuFineClipRectX, cpuFineClipRectY, cpuFineClipRectZ, cpuFineClipRectW); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin, NULL, 0.0f, &cpuFineClipRect); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); */ private native void nAddText(long font, int fontSize, float posX, float posY, int col, String textBegin, String textEnd, float cpuFineClipRectX, float cpuFineClipRectY, float cpuFineClipRectZ, float cpuFineClipRectW); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); ImVec4 cpuFineClipRect = ImVec4(cpuFineClipRectX, cpuFineClipRectY, cpuFineClipRectZ, cpuFineClipRectW); THIS->AddText(reinterpret_cast(font), fontSize, pos, col, textBegin, textEnd, 0.0f, &cpuFineClipRect); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ /** diff --git a/imgui-binding/src/generated/java/imgui/ImFont.java b/imgui-binding/src/generated/java/imgui/ImFont.java index c8fce41..920b001 100644 --- a/imgui-binding/src/generated/java/imgui/ImFont.java +++ b/imgui-binding/src/generated/java/imgui/ImFont.java @@ -407,48 +407,48 @@ public final class ImFont extends ImGuiStructDestroyable { } private native void nCalcTextSizeA(ImVec2 dst, float size, float maxWidth, float wrapWidth, String textBegin); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); Jni::ImVec2Cpy(env, THIS->CalcTextSizeA(size, maxWidth, wrapWidth, textBegin), dst); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); */ private native float nCalcTextSizeAX(float size, float maxWidth, float wrapWidth, String obj_textBegin); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); auto _result = THIS->CalcTextSizeA(size, maxWidth, wrapWidth, textBegin).x; - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); return _result; */ private native float nCalcTextSizeAY(float size, float maxWidth, float wrapWidth, String obj_textBegin); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); auto _result = THIS->CalcTextSizeA(size, maxWidth, wrapWidth, textBegin).y; - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); return _result; */ private native void nCalcTextSizeA(ImVec2 dst, float size, float maxWidth, float wrapWidth, String textBegin, String textEnd); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); Jni::ImVec2Cpy(env, THIS->CalcTextSizeA(size, maxWidth, wrapWidth, textBegin, textEnd), dst); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native float nCalcTextSizeAX(float size, float maxWidth, float wrapWidth, String obj_textBegin, String obj_textEnd); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); auto _result = THIS->CalcTextSizeA(size, maxWidth, wrapWidth, textBegin, textEnd).x; - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); return _result; */ private native float nCalcTextSizeAY(float size, float maxWidth, float wrapWidth, String obj_textBegin, String obj_textEnd); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); auto _result = THIS->CalcTextSizeA(size, maxWidth, wrapWidth, textBegin, textEnd).y; - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); return _result; */ @@ -457,11 +457,11 @@ public final class ImFont extends ImGuiStructDestroyable { } private native String nCalcWordWrapPositionA(float scale, String obj_text, String obj_textEnd, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); auto _result = env->NewStringUTF(THIS->CalcWordWrapPositionA(scale, text, textEnd, wrapWidth)); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (text != NULL) Jni::FreeTrueUtf8(text); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); return _result; */ @@ -511,43 +511,43 @@ public final class ImFont extends ImGuiStructDestroyable { } private native void nRenderText(long drawList, float size, float posX, float posY, int col, float clipRectX, float clipRectY, float clipRectZ, float clipRectW, String textBegin, String textEnd); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); ImVec4 clipRect = ImVec4(clipRectX, clipRectY, clipRectZ, clipRectW); THIS->RenderText(reinterpret_cast(drawList), size, pos, col, clipRect, textBegin, textEnd); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native void nRenderText(long drawList, float size, float posX, float posY, int col, float clipRectX, float clipRectY, float clipRectZ, float clipRectW, String textBegin, String textEnd, float wrapWidth); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); ImVec4 clipRect = ImVec4(clipRectX, clipRectY, clipRectZ, clipRectW); THIS->RenderText(reinterpret_cast(drawList), size, pos, col, clipRect, textBegin, textEnd, wrapWidth); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native void nRenderText(long drawList, float size, float posX, float posY, int col, float clipRectX, float clipRectY, float clipRectZ, float clipRectW, String textBegin, String textEnd, float wrapWidth, boolean cpuFineClip); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); ImVec4 clipRect = ImVec4(clipRectX, clipRectY, clipRectZ, clipRectW); THIS->RenderText(reinterpret_cast(drawList), size, pos, col, clipRect, textBegin, textEnd, wrapWidth, cpuFineClip); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ private native void nRenderText(long drawList, float size, float posX, float posY, int col, float clipRectX, float clipRectY, float clipRectZ, float clipRectW, String textBegin, String textEnd, boolean cpuFineClip); /*MANUAL - auto textBegin = obj_textBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textBegin, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto textBegin = obj_textBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textBegin); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImVec2 pos = ImVec2(posX, posY); ImVec4 clipRect = ImVec4(clipRectX, clipRectY, clipRectZ, clipRectW); THIS->RenderText(reinterpret_cast(drawList), size, pos, col, clipRect, textBegin, textEnd, 0.0f, cpuFineClip); - if (textBegin != NULL) env->ReleaseStringUTFChars(obj_textBegin, textBegin); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (textBegin != NULL) Jni::FreeTrueUtf8(textBegin); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ /*JNI diff --git a/imgui-binding/src/generated/java/imgui/ImFontAtlas.java b/imgui-binding/src/generated/java/imgui/ImFontAtlas.java index c242d38..ea1db91 100644 --- a/imgui-binding/src/generated/java/imgui/ImFontAtlas.java +++ b/imgui-binding/src/generated/java/imgui/ImFontAtlas.java @@ -101,33 +101,33 @@ public final class ImFontAtlas extends ImGuiStructDestroyable { } private native long nAddFontFromFileTTF(String obj_filename, float sizePixels); /*MANUAL - auto filename = obj_filename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_filename, JNI_FALSE); + auto filename = obj_filename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_filename); auto _result = (uintptr_t)THIS->AddFontFromFileTTF(filename, sizePixels); - if (filename != NULL) env->ReleaseStringUTFChars(obj_filename, filename); + if (filename != NULL) Jni::FreeTrueUtf8(filename); return _result; */ private native long nAddFontFromFileTTF(String obj_filename, float sizePixels, long fontConfig); /*MANUAL - auto filename = obj_filename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_filename, JNI_FALSE); + auto filename = obj_filename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_filename); auto _result = (uintptr_t)THIS->AddFontFromFileTTF(filename, sizePixels, reinterpret_cast(fontConfig)); - if (filename != NULL) env->ReleaseStringUTFChars(obj_filename, filename); + if (filename != NULL) Jni::FreeTrueUtf8(filename); return _result; */ private native long nAddFontFromFileTTF(String obj_filename, float sizePixels, long fontConfig, short[] obj_glyphRanges); /*MANUAL - auto filename = obj_filename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_filename, JNI_FALSE); + auto filename = obj_filename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_filename); auto glyphRanges = obj_glyphRanges == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_glyphRanges, JNI_FALSE); auto _result = (uintptr_t)THIS->AddFontFromFileTTF(filename, sizePixels, reinterpret_cast(fontConfig), (ImWchar*)&glyphRanges[0]); - if (filename != NULL) env->ReleaseStringUTFChars(obj_filename, filename); + if (filename != NULL) Jni::FreeTrueUtf8(filename); if (glyphRanges != NULL) env->ReleasePrimitiveArrayCritical(obj_glyphRanges, glyphRanges, JNI_FALSE); return _result; */ private native long nAddFontFromFileTTF(String obj_filename, float sizePixels, short[] obj_glyphRanges); /*MANUAL - auto filename = obj_filename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_filename, JNI_FALSE); + auto filename = obj_filename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_filename); auto glyphRanges = obj_glyphRanges == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_glyphRanges, JNI_FALSE); auto _result = (uintptr_t)THIS->AddFontFromFileTTF(filename, sizePixels, NULL, (ImWchar*)&glyphRanges[0]); - if (filename != NULL) env->ReleaseStringUTFChars(obj_filename, filename); + if (filename != NULL) Jni::FreeTrueUtf8(filename); if (glyphRanges != NULL) env->ReleasePrimitiveArrayCritical(obj_glyphRanges, glyphRanges, JNI_FALSE); return _result; */ @@ -395,17 +395,17 @@ public final class ImFontAtlas extends ImGuiStructDestroyable { } private native long nAddFontFromMemoryCompressedBase85TTF(String obj_compressedFontDataBase85, float sizePixels, long fontConfig); /*MANUAL - auto compressedFontDataBase85 = obj_compressedFontDataBase85 == NULL ? NULL : (char*)env->GetStringUTFChars(obj_compressedFontDataBase85, JNI_FALSE); + auto compressedFontDataBase85 = obj_compressedFontDataBase85 == NULL ? NULL : Jni::ToTrueUtf8(env, obj_compressedFontDataBase85); auto _result = (uintptr_t)THIS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, reinterpret_cast(fontConfig)); - if (compressedFontDataBase85 != NULL) env->ReleaseStringUTFChars(obj_compressedFontDataBase85, compressedFontDataBase85); + if (compressedFontDataBase85 != NULL) Jni::FreeTrueUtf8(compressedFontDataBase85); return _result; */ private native long nAddFontFromMemoryCompressedBase85TTF(String obj_compressedFontDataBase85, float sizePixels, long fontConfig, short[] obj_glyphRanges); /*MANUAL - auto compressedFontDataBase85 = obj_compressedFontDataBase85 == NULL ? NULL : (char*)env->GetStringUTFChars(obj_compressedFontDataBase85, JNI_FALSE); + auto compressedFontDataBase85 = obj_compressedFontDataBase85 == NULL ? NULL : Jni::ToTrueUtf8(env, obj_compressedFontDataBase85); auto glyphRanges = obj_glyphRanges == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_glyphRanges, JNI_FALSE); auto _result = (uintptr_t)THIS->AddFontFromMemoryCompressedBase85TTF(compressedFontDataBase85, sizePixels, reinterpret_cast(fontConfig), (ImWchar*)&glyphRanges[0]); - if (compressedFontDataBase85 != NULL) env->ReleaseStringUTFChars(obj_compressedFontDataBase85, compressedFontDataBase85); + if (compressedFontDataBase85 != NULL) Jni::FreeTrueUtf8(compressedFontDataBase85); if (glyphRanges != NULL) env->ReleasePrimitiveArrayCritical(obj_glyphRanges, glyphRanges, JNI_FALSE); return _result; */ diff --git a/imgui-binding/src/generated/java/imgui/ImGui.java b/imgui-binding/src/generated/java/imgui/ImGui.java index 2782671..c8bfe56 100644 --- a/imgui-binding/src/generated/java/imgui/ImGui.java +++ b/imgui-binding/src/generated/java/imgui/ImGui.java @@ -443,9 +443,9 @@ public class ImGui { } private static native boolean nShowStyleSelector(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::ShowStyleSelector(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -457,9 +457,9 @@ public class ImGui { } private static native void nShowFontSelector(String label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::ShowFontSelector(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ /** @@ -582,34 +582,34 @@ public class ImGui { } private static native boolean nBegin(String obj_title); /*MANUAL - auto title = obj_title == NULL ? NULL : (char*)env->GetStringUTFChars(obj_title, JNI_FALSE); + auto title = obj_title == NULL ? NULL : Jni::ToTrueUtf8(env, obj_title); auto _result = ImGui::Begin(title); - if (title != NULL) env->ReleaseStringUTFChars(obj_title, title); + if (title != NULL) Jni::FreeTrueUtf8(title); return _result; */ private static native boolean nBegin(String obj_title, boolean[] obj_pOpen); /*MANUAL - auto title = obj_title == NULL ? NULL : (char*)env->GetStringUTFChars(obj_title, JNI_FALSE); + auto title = obj_title == NULL ? NULL : Jni::ToTrueUtf8(env, obj_title); auto pOpen = obj_pOpen == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pOpen, JNI_FALSE); auto _result = ImGui::Begin(title, (pOpen != NULL ? &pOpen[0] : NULL)); - if (title != NULL) env->ReleaseStringUTFChars(obj_title, title); + if (title != NULL) Jni::FreeTrueUtf8(title); if (pOpen != NULL) env->ReleasePrimitiveArrayCritical(obj_pOpen, pOpen, JNI_FALSE); return _result; */ private static native boolean nBegin(String obj_title, boolean[] obj_pOpen, int imGuiWindowFlags); /*MANUAL - auto title = obj_title == NULL ? NULL : (char*)env->GetStringUTFChars(obj_title, JNI_FALSE); + auto title = obj_title == NULL ? NULL : Jni::ToTrueUtf8(env, obj_title); auto pOpen = obj_pOpen == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pOpen, JNI_FALSE); auto _result = ImGui::Begin(title, (pOpen != NULL ? &pOpen[0] : NULL), imGuiWindowFlags); - if (title != NULL) env->ReleaseStringUTFChars(obj_title, title); + if (title != NULL) Jni::FreeTrueUtf8(title); if (pOpen != NULL) env->ReleasePrimitiveArrayCritical(obj_pOpen, pOpen, JNI_FALSE); return _result; */ private static native boolean nBegin(String obj_title, int imGuiWindowFlags); /*MANUAL - auto title = obj_title == NULL ? NULL : (char*)env->GetStringUTFChars(obj_title, JNI_FALSE); + auto title = obj_title == NULL ? NULL : Jni::ToTrueUtf8(env, obj_title); auto _result = ImGui::Begin(title, NULL, imGuiWindowFlags); - if (title != NULL) env->ReleaseStringUTFChars(obj_title, title); + if (title != NULL) Jni::FreeTrueUtf8(title); return _result; */ @@ -677,47 +677,47 @@ public class ImGui { } private static native boolean nBeginChild(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginChild(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginChild(String obj_strId, float sizeX, float sizeY); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::BeginChild(strId, size); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginChild(String obj_strId, float sizeX, float sizeY, int childFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::BeginChild(strId, size, childFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginChild(String obj_strId, float sizeX, float sizeY, int childFlags, int windowFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::BeginChild(strId, size, childFlags, windowFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginChild(String obj_strId, int childFlags, int windowFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginChild(strId, ImVec2(0,0), childFlags, windowFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginChild(String obj_strId, int windowFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginChild(strId, ImVec2(0,0), 0, windowFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -804,18 +804,18 @@ public class ImGui { } private static native boolean nBeginChild(String obj_strId, float sizeX, float sizeY, boolean border); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::BeginChild(strId, size, static_cast(border)); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginChild(String obj_strId, float sizeX, float sizeY, boolean border, int windowFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::BeginChild(strId, size, static_cast(border), windowFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -1481,17 +1481,17 @@ public class ImGui { } private static native void nSetWindowPos(String name, float posX, float posY); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImVec2 pos = ImVec2(posX, posY); ImGui::SetWindowPos(name, pos); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ private static native void nSetWindowPos(String name, float posX, float posY, int cond); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImVec2 pos = ImVec2(posX, posY); ImGui::SetWindowPos(name, pos, cond); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ /** @@ -1523,17 +1523,17 @@ public class ImGui { } private static native void nSetWindowSize(String name, float sizeX, float sizeY); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImVec2 size = ImVec2(sizeX, sizeY); ImGui::SetWindowSize(name, size); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ private static native void nSetWindowSize(String name, float sizeX, float sizeY, int cond); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImVec2 size = ImVec2(sizeX, sizeY); ImGui::SetWindowSize(name, size, cond); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ /** @@ -1551,15 +1551,15 @@ public class ImGui { } private static native void nSetWindowCollapsed(String name, boolean collapsed); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImGui::SetWindowCollapsed((const char *)name, (bool)collapsed); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ private static native void nSetWindowCollapsed(String name, boolean collapsed, int cond); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImGui::SetWindowCollapsed((const char *)name, (bool)collapsed, cond); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ /** @@ -1570,9 +1570,9 @@ public class ImGui { } private static native void nSetWindowFocus(String name); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImGui::SetWindowFocus(name); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ // Content region @@ -2774,9 +2774,9 @@ public class ImGui { } private static native void nPushID(String strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImGui::PushID(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); */ /** @@ -2787,11 +2787,11 @@ public class ImGui { } private static native void nPushID(String strIdBegin, String strIdEnd); /*MANUAL - auto strIdBegin = obj_strIdBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strIdBegin, JNI_FALSE); - auto strIdEnd = obj_strIdEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strIdEnd, JNI_FALSE); + auto strIdBegin = obj_strIdBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strIdBegin); + auto strIdEnd = obj_strIdEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strIdEnd); ImGui::PushID(strIdBegin, strIdEnd); - if (strIdBegin != NULL) env->ReleaseStringUTFChars(obj_strIdBegin, strIdBegin); - if (strIdEnd != NULL) env->ReleaseStringUTFChars(obj_strIdEnd, strIdEnd); + if (strIdBegin != NULL) Jni::FreeTrueUtf8(strIdBegin); + if (strIdEnd != NULL) Jni::FreeTrueUtf8(strIdEnd); */ /** @@ -2835,9 +2835,9 @@ public class ImGui { } private static native int nGetID(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::GetID(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -2849,11 +2849,11 @@ public class ImGui { } private static native int nGetID(String obj_strIdBegin, String obj_strIdEnd); /*MANUAL - auto strIdBegin = obj_strIdBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strIdBegin, JNI_FALSE); - auto strIdEnd = obj_strIdEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strIdEnd, JNI_FALSE); + auto strIdBegin = obj_strIdBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strIdBegin); + auto strIdEnd = obj_strIdEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strIdEnd); auto _result = ImGui::GetID(strIdBegin, strIdEnd); - if (strIdBegin != NULL) env->ReleaseStringUTFChars(obj_strIdBegin, strIdBegin); - if (strIdEnd != NULL) env->ReleaseStringUTFChars(obj_strIdEnd, strIdEnd); + if (strIdBegin != NULL) Jni::FreeTrueUtf8(strIdBegin); + if (strIdEnd != NULL) Jni::FreeTrueUtf8(strIdEnd); return _result; */ @@ -2889,17 +2889,17 @@ public class ImGui { } private static native void nTextUnformatted(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::TextUnformatted(text); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native void nTextUnformatted(String text, String textEnd); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); - auto textEnd = obj_textEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_textEnd, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); + auto textEnd = obj_textEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_textEnd); ImGui::TextUnformatted(text, textEnd); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); - if (textEnd != NULL) env->ReleaseStringUTFChars(obj_textEnd, textEnd); + if (text != NULL) Jni::FreeTrueUtf8(text); + if (textEnd != NULL) Jni::FreeTrueUtf8(textEnd); */ /** @@ -2910,9 +2910,9 @@ public class ImGui { } private static native void nText(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::Text(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -2930,10 +2930,10 @@ public class ImGui { } private static native void nTextColored(float colX, float colY, float colZ, float colW, String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImVec4 col = ImVec4(colX, colY, colZ, colW); ImGui::TextColored(col, text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -2958,9 +2958,9 @@ public class ImGui { } private static native void nTextDisabled(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::TextDisabled(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -2973,9 +2973,9 @@ public class ImGui { } private static native void nTextWrapped(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::TextWrapped(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -2986,11 +2986,11 @@ public class ImGui { } private static native void nLabelText(String label, String text); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::LabelText(label, text, NULL); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -3001,9 +3001,9 @@ public class ImGui { } private static native void nBulletText(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::BulletText(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -3014,9 +3014,9 @@ public class ImGui { } private static native void nSeparatorText(String label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::SeparatorText(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ // Widgets: Main @@ -3045,17 +3045,17 @@ public class ImGui { } private static native boolean nButton(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::Button(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nButton(String obj_label, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Button(label, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -3067,9 +3067,9 @@ public class ImGui { } private static native boolean nSmallButton(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::SmallButton(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -3102,18 +3102,18 @@ public class ImGui { } private static native boolean nInvisibleButton(String obj_strId, float sizeX, float sizeY); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::InvisibleButton(strId, size); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nInvisibleButton(String obj_strId, float sizeX, float sizeY, int imGuiButtonFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::InvisibleButton(strId, size, imGuiButtonFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -3125,9 +3125,9 @@ public class ImGui { } private static native boolean nArrowButton(String obj_strId, int dir); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::ArrowButton(strId, static_cast(dir)); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -3145,10 +3145,10 @@ public class ImGui { } private static native boolean nCheckbox(String obj_label, boolean[] obj_data); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto data = obj_data == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_data, JNI_FALSE); auto _result = ImGui::Checkbox(label, (data != NULL ? &data[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (data != NULL) env->ReleasePrimitiveArrayCritical(obj_data, data, JNI_FALSE); return _result; */ @@ -3158,10 +3158,10 @@ public class ImGui { } private static native boolean nCheckboxFlags(String obj_label, int[] obj_flags, int flagsValue); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto flags = obj_flags == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_flags, JNI_FALSE); auto _result = ImGui::CheckboxFlags(label, (flags != NULL ? &flags[0] : NULL), flagsValue); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (flags != NULL) env->ReleasePrimitiveArrayCritical(obj_flags, flags, JNI_FALSE); return _result; */ @@ -3174,9 +3174,9 @@ public class ImGui { } private static native boolean nRadioButton(String obj_label, boolean active); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::RadioButton(label, active); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -3188,10 +3188,10 @@ public class ImGui { } private static native boolean nRadioButton(String obj_label, int[] obj_v, int vButton); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::RadioButton(label, (v != NULL ? &v[0] : NULL), vButton); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -3230,16 +3230,16 @@ public class ImGui { */ private static native void nProgressBar(float fraction, float sizeX, float sizeY, String overlay); /*MANUAL - auto overlay = obj_overlay == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlay, JNI_FALSE); + auto overlay = obj_overlay == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlay); ImVec2 size = ImVec2(sizeX, sizeY); ImGui::ProgressBar(fraction, size, overlay); - if (overlay != NULL) env->ReleaseStringUTFChars(obj_overlay, overlay); + if (overlay != NULL) Jni::FreeTrueUtf8(overlay); */ private static native void nProgressBar(float fraction, String overlay); /*MANUAL - auto overlay = obj_overlay == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlay, JNI_FALSE); + auto overlay = obj_overlay == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlay); ImGui::ProgressBar(fraction, ImVec2(-FLT_MIN,0), overlay); - if (overlay != NULL) env->ReleaseStringUTFChars(obj_overlay, overlay); + if (overlay != NULL) Jni::FreeTrueUtf8(overlay); */ /** @@ -3372,52 +3372,52 @@ public class ImGui { } private static native boolean nImageButton(String obj_strId, long userTextureId, float imageSizeX, float imageSizeY); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 imageSize = ImVec2(imageSizeX, imageSizeY); auto _result = ImGui::ImageButton(strId, (ImTextureID)(uintptr_t)userTextureId, imageSize); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nImageButton(String obj_strId, long userTextureId, float imageSizeX, float imageSizeY, float uv0X, float uv0Y); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 imageSize = ImVec2(imageSizeX, imageSizeY); ImVec2 uv0 = ImVec2(uv0X, uv0Y); auto _result = ImGui::ImageButton(strId, (ImTextureID)(uintptr_t)userTextureId, imageSize, uv0); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nImageButton(String obj_strId, long userTextureId, float imageSizeX, float imageSizeY, float uv0X, float uv0Y, float uv1X, float uv1Y); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 imageSize = ImVec2(imageSizeX, imageSizeY); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImVec2 uv1 = ImVec2(uv1X, uv1Y); auto _result = ImGui::ImageButton(strId, (ImTextureID)(uintptr_t)userTextureId, imageSize, uv0, uv1); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nImageButton(String obj_strId, long userTextureId, float imageSizeX, float imageSizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, float bgColX, float bgColY, float bgColZ, float bgColW); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 imageSize = ImVec2(imageSizeX, imageSizeY); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImVec2 uv1 = ImVec2(uv1X, uv1Y); ImVec4 bgCol = ImVec4(bgColX, bgColY, bgColZ, bgColW); auto _result = ImGui::ImageButton(strId, (ImTextureID)(uintptr_t)userTextureId, imageSize, uv0, uv1, bgCol); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nImageButton(String obj_strId, long userTextureId, float imageSizeX, float imageSizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, float bgColX, float bgColY, float bgColZ, float bgColW, float tintColX, float tintColY, float tintColZ, float tintColW); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 imageSize = ImVec2(imageSizeX, imageSizeY); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImVec2 uv1 = ImVec2(uv1X, uv1Y); ImVec4 bgCol = ImVec4(bgColX, bgColY, bgColZ, bgColW); ImVec4 tintCol = ImVec4(tintColX, tintColY, tintColZ, tintColW); auto _result = ImGui::ImageButton(strId, (ImTextureID)(uintptr_t)userTextureId, imageSize, uv0, uv1, bgCol, tintCol); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -3435,20 +3435,20 @@ public class ImGui { } private static native boolean nBeginCombo(String obj_label, String obj_previewValue); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto previewValue = obj_previewValue == NULL ? NULL : (char*)env->GetStringUTFChars(obj_previewValue, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto previewValue = obj_previewValue == NULL ? NULL : Jni::ToTrueUtf8(env, obj_previewValue); auto _result = ImGui::BeginCombo(label, previewValue); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (previewValue != NULL) env->ReleaseStringUTFChars(obj_previewValue, previewValue); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (previewValue != NULL) Jni::FreeTrueUtf8(previewValue); return _result; */ private static native boolean nBeginCombo(String obj_label, String obj_previewValue, int imGuiComboFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto previewValue = obj_previewValue == NULL ? NULL : (char*)env->GetStringUTFChars(obj_previewValue, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto previewValue = obj_previewValue == NULL ? NULL : Jni::ToTrueUtf8(env, obj_previewValue); auto _result = ImGui::BeginCombo(label, previewValue, imGuiComboFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (previewValue != NULL) env->ReleaseStringUTFChars(obj_previewValue, previewValue); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (previewValue != NULL) Jni::FreeTrueUtf8(previewValue); return _result; */ @@ -3472,39 +3472,39 @@ public class ImGui { } private static native boolean nCombo(String obj_label, int[] obj_currentItem, String[] obj_items, int itemsCount); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto currentItem = obj_currentItem == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_currentItem, JNI_FALSE); const char* items[itemsCount]; for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); items[i] = rawStr; }; auto _result = ImGui::Combo(label, (currentItem != NULL ? ¤tItem[0] : NULL), items, itemsCount); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (currentItem != NULL) env->ReleasePrimitiveArrayCritical(obj_currentItem, currentItem, JNI_FALSE); for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - env->ReleaseStringUTFChars(str, items[i]); + Jni::FreeTrueUtf8((char*)items[i]); }; return _result; */ private static native boolean nCombo(String obj_label, int[] obj_currentItem, String[] obj_items, int itemsCount, int popupMaxHeightInItems); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto currentItem = obj_currentItem == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_currentItem, JNI_FALSE); const char* items[itemsCount]; for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); items[i] = rawStr; }; auto _result = ImGui::Combo(label, (currentItem != NULL ? ¤tItem[0] : NULL), items, itemsCount, popupMaxHeightInItems); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (currentItem != NULL) env->ReleasePrimitiveArrayCritical(obj_currentItem, currentItem, JNI_FALSE); for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - env->ReleaseStringUTFChars(str, items[i]); + Jni::FreeTrueUtf8((char*)items[i]); }; return _result; */ @@ -3524,24 +3524,24 @@ public class ImGui { } private static native boolean nCombo(String obj_label, int[] obj_currentItem, String obj_itemsSeparatedByZeros); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto currentItem = obj_currentItem == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_currentItem, JNI_FALSE); - auto itemsSeparatedByZeros = obj_itemsSeparatedByZeros == NULL ? NULL : (char*)env->GetStringUTFChars(obj_itemsSeparatedByZeros, JNI_FALSE); + auto itemsSeparatedByZeros = obj_itemsSeparatedByZeros == NULL ? NULL : Jni::ToTrueUtf8(env, obj_itemsSeparatedByZeros); auto _result = ImGui::Combo(label, (currentItem != NULL ? ¤tItem[0] : NULL), itemsSeparatedByZeros); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (currentItem != NULL) env->ReleasePrimitiveArrayCritical(obj_currentItem, currentItem, JNI_FALSE); - if (itemsSeparatedByZeros != NULL) env->ReleaseStringUTFChars(obj_itemsSeparatedByZeros, itemsSeparatedByZeros); + if (itemsSeparatedByZeros != NULL) Jni::FreeTrueUtf8(itemsSeparatedByZeros); return _result; */ private static native boolean nCombo(String obj_label, int[] obj_currentItem, String obj_itemsSeparatedByZeros, int popupMaxHeightInItems); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto currentItem = obj_currentItem == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_currentItem, JNI_FALSE); - auto itemsSeparatedByZeros = obj_itemsSeparatedByZeros == NULL ? NULL : (char*)env->GetStringUTFChars(obj_itemsSeparatedByZeros, JNI_FALSE); + auto itemsSeparatedByZeros = obj_itemsSeparatedByZeros == NULL ? NULL : Jni::ToTrueUtf8(env, obj_itemsSeparatedByZeros); auto _result = ImGui::Combo(label, (currentItem != NULL ? ¤tItem[0] : NULL), itemsSeparatedByZeros, popupMaxHeightInItems); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (currentItem != NULL) env->ReleasePrimitiveArrayCritical(obj_currentItem, currentItem, JNI_FALSE); - if (itemsSeparatedByZeros != NULL) env->ReleaseStringUTFChars(obj_itemsSeparatedByZeros, itemsSeparatedByZeros); + if (itemsSeparatedByZeros != NULL) Jni::FreeTrueUtf8(itemsSeparatedByZeros); return _result; */ @@ -3608,68 +3608,68 @@ public class ImGui { } private static native boolean nDragFloat(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat(String obj_label, float[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat(String obj_label, float[] obj_v, float vSpeed, float vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat(label, &v[0], vSpeed, vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -3703,68 +3703,68 @@ public class ImGui { } private static native boolean nDragFloat2(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat2(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat2(String obj_label, float[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat2(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat2(String obj_label, float[] obj_v, float vSpeed, float vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat2(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat2(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat2(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat2(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat2(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat2(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat2(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat2(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat2(label, &v[0], vSpeed, vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -3798,68 +3798,68 @@ public class ImGui { } private static native boolean nDragFloat3(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat3(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat3(String obj_label, float[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat3(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat3(String obj_label, float[] obj_v, float vSpeed, float vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat3(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat3(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat3(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat3(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat3(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat3(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat3(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat3(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat3(label, &v[0], vSpeed, vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -3893,68 +3893,68 @@ public class ImGui { } private static native boolean nDragFloat4(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat4(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat4(String obj_label, float[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat4(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat4(String obj_label, float[] obj_v, float vSpeed, float vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat4(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat4(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat4(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragFloat4(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat4(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat4(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloat4(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloat4(String obj_label, float[] obj_v, float vSpeed, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragFloat4(label, &v[0], vSpeed, vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -3984,78 +3984,78 @@ public class ImGui { } private static native boolean nDragFloatRange2(String obj_label, float[] obj_vCurrentMin, float[] obj_vCurrentMax, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragFloatRange2(String obj_label, float[] obj_vCurrentMin, float[] obj_vCurrentMax, float vSpeed, float vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragFloatRange2(String obj_label, float[] obj_vCurrentMin, float[] obj_vCurrentMax, float vSpeed, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragFloatRange2(String obj_label, float[] obj_vCurrentMin, float[] obj_vCurrentMax, float vSpeed, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragFloatRange2(String obj_label, float[] obj_vCurrentMin, float[] obj_vCurrentMax, float vSpeed, float vMin, float vMax, String obj_format, String obj_formatMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); - auto formatMax = obj_formatMax == NULL ? NULL : (char*)env->GetStringUTFChars(obj_formatMax, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); + auto formatMax = obj_formatMax == NULL ? NULL : Jni::ToTrueUtf8(env, obj_formatMax); auto _result = ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); - if (formatMax != NULL) env->ReleaseStringUTFChars(obj_formatMax, formatMax); + if (format != NULL) Jni::FreeTrueUtf8(format); + if (formatMax != NULL) Jni::FreeTrueUtf8(formatMax); return _result; */ private static native boolean nDragFloatRange2(String obj_label, float[] obj_vCurrentMin, float[] obj_vCurrentMax, float vSpeed, float vMin, float vMax, String obj_format, String obj_formatMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); - auto formatMax = obj_formatMax == NULL ? NULL : (char*)env->GetStringUTFChars(obj_formatMax, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); + auto formatMax = obj_formatMax == NULL ? NULL : Jni::ToTrueUtf8(env, obj_formatMax); auto _result = ImGui::DragFloatRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); - if (formatMax != NULL) env->ReleaseStringUTFChars(obj_formatMax, formatMax); + if (format != NULL) Jni::FreeTrueUtf8(format); + if (formatMax != NULL) Jni::FreeTrueUtf8(formatMax); return _result; */ @@ -4109,68 +4109,68 @@ public class ImGui { } private static native boolean nDragInt(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt(String obj_label, int[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt(String obj_label, int[] obj_v, float vSpeed, int vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt(label, &v[0], vSpeed, vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -4204,68 +4204,68 @@ public class ImGui { } private static native boolean nDragInt2(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt2(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt2(String obj_label, int[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt2(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt2(String obj_label, int[] obj_v, float vSpeed, int vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt2(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt2(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt2(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt2(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt2(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt2(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt2(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt2(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt2(label, &v[0], vSpeed, vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -4299,68 +4299,68 @@ public class ImGui { } private static native boolean nDragInt3(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt3(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt3(String obj_label, int[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt3(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt3(String obj_label, int[] obj_v, float vSpeed, int vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt3(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt3(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt3(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt3(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt3(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt3(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt3(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt3(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt3(label, &v[0], vSpeed, vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -4394,68 +4394,68 @@ public class ImGui { } private static native boolean nDragInt4(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt4(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt4(String obj_label, int[] obj_v, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt4(label, &v[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt4(String obj_label, int[] obj_v, float vSpeed, int vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt4(label, &v[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt4(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt4(label, &v[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nDragInt4(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt4(label, &v[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt4(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragInt4(label, &v[0], vSpeed, vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragInt4(String obj_label, int[] obj_v, float vSpeed, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::DragInt4(label, &v[0], vSpeed, vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -4489,89 +4489,89 @@ public class ImGui { } private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax, float vSpeed, int vMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax, float vSpeed, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); return _result; */ private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax, float vSpeed, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax, float vSpeed, int vMin, int vMax, String obj_format, String obj_formatMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); - auto formatMax = obj_formatMax == NULL ? NULL : (char*)env->GetStringUTFChars(obj_formatMax, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); + auto formatMax = obj_formatMax == NULL ? NULL : Jni::ToTrueUtf8(env, obj_formatMax); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); - if (formatMax != NULL) env->ReleaseStringUTFChars(obj_formatMax, formatMax); + if (format != NULL) Jni::FreeTrueUtf8(format); + if (formatMax != NULL) Jni::FreeTrueUtf8(formatMax); return _result; */ private static native boolean nDragIntRange2(String obj_label, int[] obj_vCurrentMin, int[] obj_vCurrentMax, float vSpeed, int vMin, int vMax, String obj_format, String obj_formatMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vCurrentMin = obj_vCurrentMin == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMin, JNI_FALSE); auto vCurrentMax = obj_vCurrentMax == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_vCurrentMax, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); - auto formatMax = obj_formatMax == NULL ? NULL : (char*)env->GetStringUTFChars(obj_formatMax, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); + auto formatMax = obj_formatMax == NULL ? NULL : Jni::ToTrueUtf8(env, obj_formatMax); auto _result = ImGui::DragIntRange2(label, &vCurrentMin[0], &vCurrentMax[0], vSpeed, vMin, vMax, format, formatMax, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vCurrentMin != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMin, vCurrentMin, JNI_FALSE); if (vCurrentMax != NULL) env->ReleasePrimitiveArrayCritical(obj_vCurrentMax, vCurrentMax, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); - if (formatMax != NULL) env->ReleaseStringUTFChars(obj_formatMax, formatMax); + if (format != NULL) Jni::FreeTrueUtf8(format); + if (formatMax != NULL) Jni::FreeTrueUtf8(formatMax); return _result; */ @@ -4600,60 +4600,60 @@ public class ImGui { } private static native boolean nDragScalar(String obj_label, short[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S16, &pData[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, short[] obj_pData, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S16, &pData[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, short[] obj_pData, float vSpeed, short pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S16, &pData[0], vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, short[] obj_pData, float vSpeed, short pMin, short pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S16, &pData[0], vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, short[] obj_pData, float vSpeed, short pMin, short pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_S16, &pData[0], vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalar(String obj_label, short[] obj_pData, float vSpeed, short pMin, short pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_S16, &pData[0], vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -4682,60 +4682,60 @@ public class ImGui { } private static native boolean nDragScalar(String obj_label, int[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S32, &pData[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, int[] obj_pData, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S32, &pData[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, int[] obj_pData, float vSpeed, int pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S32, &pData[0], vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, int[] obj_pData, float vSpeed, int pMin, int pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S32, &pData[0], vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, int[] obj_pData, float vSpeed, int pMin, int pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_S32, &pData[0], vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalar(String obj_label, int[] obj_pData, float vSpeed, int pMin, int pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_S32, &pData[0], vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -4764,60 +4764,60 @@ public class ImGui { } private static native boolean nDragScalar(String obj_label, long[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S64, &pData[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, long[] obj_pData, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S64, &pData[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, long[] obj_pData, float vSpeed, long pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S64, &pData[0], vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, long[] obj_pData, float vSpeed, long pMin, long pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_S64, &pData[0], vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, long[] obj_pData, float vSpeed, long pMin, long pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_S64, &pData[0], vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalar(String obj_label, long[] obj_pData, float vSpeed, long pMin, long pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_S64, &pData[0], vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -4846,60 +4846,60 @@ public class ImGui { } private static native boolean nDragScalar(String obj_label, float[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Float, &pData[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, float[] obj_pData, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Float, &pData[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, float[] obj_pData, float vSpeed, float pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Float, &pData[0], vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, float[] obj_pData, float vSpeed, float pMin, float pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Float, &pData[0], vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, float[] obj_pData, float vSpeed, float pMin, float pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_Float, &pData[0], vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalar(String obj_label, float[] obj_pData, float vSpeed, float pMin, float pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_Float, &pData[0], vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -4928,60 +4928,60 @@ public class ImGui { } private static native boolean nDragScalar(String obj_label, double[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Double, &pData[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, double[] obj_pData, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Double, &pData[0], vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, double[] obj_pData, float vSpeed, double pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Double, &pData[0], vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, double[] obj_pData, float vSpeed, double pMin, double pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalar(label, ImGuiDataType_Double, &pData[0], vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalar(String obj_label, double[] obj_pData, float vSpeed, double pMin, double pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_Double, &pData[0], vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalar(String obj_label, double[] obj_pData, float vSpeed, double pMin, double pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalar(label, ImGuiDataType_Double, &pData[0], vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -5010,60 +5010,60 @@ public class ImGui { } private static native boolean nDragScalarN(String obj_label, short[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S16, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, short[] obj_pData, int components, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S16, &pData[0], components, vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, short[] obj_pData, int components, float vSpeed, short pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S16, &pData[0], components, vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, short[] obj_pData, int components, float vSpeed, short pMin, short pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S16, &pData[0], components, vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, short[] obj_pData, int components, float vSpeed, short pMin, short pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S16, &pData[0], components, vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalarN(String obj_label, short[] obj_pData, int components, float vSpeed, short pMin, short pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S16, &pData[0], components, vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -5092,60 +5092,60 @@ public class ImGui { } private static native boolean nDragScalarN(String obj_label, int[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S32, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, int[] obj_pData, int components, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S32, &pData[0], components, vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, int[] obj_pData, int components, float vSpeed, int pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S32, &pData[0], components, vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, int[] obj_pData, int components, float vSpeed, int pMin, int pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S32, &pData[0], components, vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, int[] obj_pData, int components, float vSpeed, int pMin, int pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S32, &pData[0], components, vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalarN(String obj_label, int[] obj_pData, int components, float vSpeed, int pMin, int pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S32, &pData[0], components, vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -5174,60 +5174,60 @@ public class ImGui { } private static native boolean nDragScalarN(String obj_label, long[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S64, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, long[] obj_pData, int components, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S64, &pData[0], components, vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, long[] obj_pData, int components, float vSpeed, long pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S64, &pData[0], components, vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, long[] obj_pData, int components, float vSpeed, long pMin, long pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S64, &pData[0], components, vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, long[] obj_pData, int components, float vSpeed, long pMin, long pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S64, &pData[0], components, vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalarN(String obj_label, long[] obj_pData, int components, float vSpeed, long pMin, long pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_S64, &pData[0], components, vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -5256,60 +5256,60 @@ public class ImGui { } private static native boolean nDragScalarN(String obj_label, float[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Float, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, float[] obj_pData, int components, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Float, &pData[0], components, vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, float[] obj_pData, int components, float vSpeed, float pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Float, &pData[0], components, vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, float[] obj_pData, int components, float vSpeed, float pMin, float pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Float, &pData[0], components, vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, float[] obj_pData, int components, float vSpeed, float pMin, float pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Float, &pData[0], components, vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalarN(String obj_label, float[] obj_pData, int components, float vSpeed, float pMin, float pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Float, &pData[0], components, vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -5338,60 +5338,60 @@ public class ImGui { } private static native boolean nDragScalarN(String obj_label, double[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Double, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, double[] obj_pData, int components, float vSpeed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Double, &pData[0], components, vSpeed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, double[] obj_pData, int components, float vSpeed, double pMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Double, &pData[0], components, vSpeed, &pMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, double[] obj_pData, int components, float vSpeed, double pMin, double pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Double, &pData[0], components, vSpeed, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nDragScalarN(String obj_label, double[] obj_pData, int components, float vSpeed, double pMin, double pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Double, &pData[0], components, vSpeed, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nDragScalarN(String obj_label, double[] obj_pData, int components, float vSpeed, double pMin, double pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::DragScalarN(label, ImGuiDataType_Double, &pData[0], components, vSpeed, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -5431,41 +5431,41 @@ public class ImGui { } private static native boolean nSliderFloat(String obj_label, float[] obj_v, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderFloat(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat(String obj_label, float[] obj_v, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat(label, &v[0], vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5487,41 +5487,41 @@ public class ImGui { } private static native boolean nSliderFloat2(String obj_label, float[] obj_v, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat2(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderFloat2(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat2(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat2(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat2(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat2(String obj_label, float[] obj_v, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat2(label, &v[0], vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5543,41 +5543,41 @@ public class ImGui { } private static native boolean nSliderFloat3(String obj_label, float[] obj_v, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat3(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderFloat3(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat3(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat3(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat3(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat3(String obj_label, float[] obj_v, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat3(label, &v[0], vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5599,41 +5599,41 @@ public class ImGui { } private static native boolean nSliderFloat4(String obj_label, float[] obj_v, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat4(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderFloat4(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat4(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat4(String obj_label, float[] obj_v, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderFloat4(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderFloat4(String obj_label, float[] obj_v, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderFloat4(label, &v[0], vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5663,59 +5663,59 @@ public class ImGui { } private static native boolean nSliderAngle(String obj_label, float[] obj_vRad); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vRad = obj_vRad == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vRad, JNI_FALSE); auto _result = ImGui::SliderAngle(label, &vRad[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vRad != NULL) env->ReleasePrimitiveArrayCritical(obj_vRad, vRad, JNI_FALSE); return _result; */ private static native boolean nSliderAngle(String obj_label, float[] obj_vRad, float vDegreesMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vRad = obj_vRad == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vRad, JNI_FALSE); auto _result = ImGui::SliderAngle(label, &vRad[0], vDegreesMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vRad != NULL) env->ReleasePrimitiveArrayCritical(obj_vRad, vRad, JNI_FALSE); return _result; */ private static native boolean nSliderAngle(String obj_label, float[] obj_vRad, float vDegreesMin, float vDegreesMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vRad = obj_vRad == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vRad, JNI_FALSE); auto _result = ImGui::SliderAngle(label, &vRad[0], vDegreesMin, vDegreesMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vRad != NULL) env->ReleasePrimitiveArrayCritical(obj_vRad, vRad, JNI_FALSE); return _result; */ private static native boolean nSliderAngle(String obj_label, float[] obj_vRad, float vDegreesMin, float vDegreesMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vRad = obj_vRad == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vRad, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderAngle(label, &vRad[0], vDegreesMin, vDegreesMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vRad != NULL) env->ReleasePrimitiveArrayCritical(obj_vRad, vRad, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderAngle(String obj_label, float[] obj_vRad, float vDegreesMin, float vDegreesMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vRad = obj_vRad == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vRad, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderAngle(label, &vRad[0], vDegreesMin, vDegreesMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vRad != NULL) env->ReleasePrimitiveArrayCritical(obj_vRad, vRad, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderAngle(String obj_label, float[] obj_vRad, float vDegreesMin, float vDegreesMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto vRad = obj_vRad == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_vRad, JNI_FALSE); auto _result = ImGui::SliderAngle(label, &vRad[0], vDegreesMin, vDegreesMax, "%.0f deg", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (vRad != NULL) env->ReleasePrimitiveArrayCritical(obj_vRad, vRad, JNI_FALSE); return _result; */ @@ -5737,41 +5737,41 @@ public class ImGui { } private static native boolean nSliderInt(String obj_label, int[] obj_v, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderInt(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt(String obj_label, int[] obj_v, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt(label, &v[0], vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5793,41 +5793,41 @@ public class ImGui { } private static native boolean nSliderInt2(String obj_label, int[] obj_v, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt2(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderInt2(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt2(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt2(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt2(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt2(String obj_label, int[] obj_v, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt2(label, &v[0], vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5849,41 +5849,41 @@ public class ImGui { } private static native boolean nSliderInt3(String obj_label, int[] obj_v, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt3(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderInt3(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt3(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt3(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt3(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt3(String obj_label, int[] obj_v, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt3(label, &v[0], vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5905,41 +5905,41 @@ public class ImGui { } private static native boolean nSliderInt4(String obj_label, int[] obj_v, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt4(label, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nSliderInt4(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt4(label, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt4(String obj_label, int[] obj_v, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderInt4(label, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderInt4(String obj_label, int[] obj_v, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::SliderInt4(label, &v[0], vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -5957,33 +5957,33 @@ public class ImGui { } private static native boolean nSliderScalar(String obj_label, short[] obj_pData, short pMin, short pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S16, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalar(String obj_label, short[] obj_pData, short pMin, short pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S16, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalar(String obj_label, short[] obj_pData, short pMin, short pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S16, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6000,33 +6000,33 @@ public class ImGui { } private static native boolean nSliderScalar(String obj_label, int[] obj_pData, int pMin, int pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S32, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalar(String obj_label, int[] obj_pData, int pMin, int pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S32, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalar(String obj_label, int[] obj_pData, int pMin, int pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S32, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6043,33 +6043,33 @@ public class ImGui { } private static native boolean nSliderScalar(String obj_label, long[] obj_pData, long pMin, long pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S64, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalar(String obj_label, long[] obj_pData, long pMin, long pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S64, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalar(String obj_label, long[] obj_pData, long pMin, long pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_S64, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6086,33 +6086,33 @@ public class ImGui { } private static native boolean nSliderScalar(String obj_label, float[] obj_pData, float pMin, float pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalar(label, ImGuiDataType_Float, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalar(String obj_label, float[] obj_pData, float pMin, float pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_Float, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalar(String obj_label, float[] obj_pData, float pMin, float pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_Float, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6129,33 +6129,33 @@ public class ImGui { } private static native boolean nSliderScalar(String obj_label, double[] obj_pData, double pMin, double pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalar(label, ImGuiDataType_Double, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalar(String obj_label, double[] obj_pData, double pMin, double pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_Double, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalar(String obj_label, double[] obj_pData, double pMin, double pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalar(label, ImGuiDataType_Double, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6172,33 +6172,33 @@ public class ImGui { } private static native boolean nSliderScalarN(String obj_label, short[] obj_pData, int components, short pMin, short pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S16, &pData[0], components, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalarN(String obj_label, short[] obj_pData, int components, short pMin, short pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S16, &pData[0], components, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalarN(String obj_label, short[] obj_pData, int components, short pMin, short pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S16, &pData[0], components, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6215,33 +6215,33 @@ public class ImGui { } private static native boolean nSliderScalarN(String obj_label, int[] obj_pData, int components, int pMin, int pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S32, &pData[0], components, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalarN(String obj_label, int[] obj_pData, int components, int pMin, int pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S32, &pData[0], components, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalarN(String obj_label, int[] obj_pData, int components, int pMin, int pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S32, &pData[0], components, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6258,33 +6258,33 @@ public class ImGui { } private static native boolean nSliderScalarN(String obj_label, long[] obj_pData, int components, long pMin, long pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S64, &pData[0], components, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalarN(String obj_label, long[] obj_pData, int components, long pMin, long pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S64, &pData[0], components, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalarN(String obj_label, long[] obj_pData, int components, long pMin, long pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_S64, &pData[0], components, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6301,33 +6301,33 @@ public class ImGui { } private static native boolean nSliderScalarN(String obj_label, float[] obj_pData, int components, float pMin, float pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_Float, &pData[0], components, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalarN(String obj_label, float[] obj_pData, int components, float pMin, float pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_Float, &pData[0], components, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalarN(String obj_label, float[] obj_pData, int components, float pMin, float pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_Float, &pData[0], components, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6344,33 +6344,33 @@ public class ImGui { } private static native boolean nSliderScalarN(String obj_label, double[] obj_pData, int components, double pMin, double pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_Double, &pData[0], components, &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nSliderScalarN(String obj_label, double[] obj_pData, int components, double pMin, double pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_Double, &pData[0], components, &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nSliderScalarN(String obj_label, double[] obj_pData, int components, double pMin, double pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::SliderScalarN(label, ImGuiDataType_Double, &pData[0], components, &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6407,45 +6407,45 @@ public class ImGui { } private static native boolean nVSliderFloat(String obj_label, float sizeX, float sizeY, float[] obj_v, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderFloat(label, size, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nVSliderFloat(String obj_label, float sizeX, float sizeY, float[] obj_v, float vMin, float vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderFloat(label, size, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderFloat(String obj_label, float sizeX, float sizeY, float[] obj_v, float vMin, float vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderFloat(label, size, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderFloat(String obj_label, float sizeX, float sizeY, float[] obj_v, float vMin, float vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderFloat(label, size, &v[0], vMin, vMax, "%.3f", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -6483,45 +6483,45 @@ public class ImGui { } private static native boolean nVSliderInt(String obj_label, float sizeX, float sizeY, int[] obj_v, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderInt(label, size, &v[0], vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nVSliderInt(String obj_label, float sizeX, float sizeY, int[] obj_v, int vMin, int vMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderInt(label, size, &v[0], vMin, vMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderInt(String obj_label, float sizeX, float sizeY, int[] obj_v, int vMin, int vMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderInt(label, size, &v[0], vMin, vMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderInt(String obj_label, float sizeX, float sizeY, int[] obj_v, int vMin, int vMax, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderInt(label, size, &v[0], vMin, vMax, "%d", imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -6551,36 +6551,36 @@ public class ImGui { } private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, short[] obj_pData, short pMin, short pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S16, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, short[] obj_pData, short pMin, short pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S16, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, short[] obj_pData, short pMin, short pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S16, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6609,36 +6609,36 @@ public class ImGui { } private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, int[] obj_pData, int pMin, int pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S32, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, int[] obj_pData, int pMin, int pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S32, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, int[] obj_pData, int pMin, int pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S32, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6667,36 +6667,36 @@ public class ImGui { } private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, long[] obj_pData, long pMin, long pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S64, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, long[] obj_pData, long pMin, long pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S64, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, long[] obj_pData, long pMin, long pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_S64, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6725,36 +6725,36 @@ public class ImGui { } private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, float[] obj_pData, float pMin, float pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_Float, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, float[] obj_pData, float pMin, float pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_Float, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, float[] obj_pData, float pMin, float pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_Float, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -6783,36 +6783,36 @@ public class ImGui { } private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, double[] obj_pData, double pMin, double pMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_Double, &pData[0], &pMin, &pMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, double[] obj_pData, double pMin, double pMax, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_Double, &pData[0], &pMin, &pMax, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nVSliderScalar(String obj_label, float sizeX, float sizeY, double[] obj_pData, double pMin, double pMax, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::VSliderScalar(label, size, ImGuiDataType_Double, &pData[0], &pMin, &pMax, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7063,59 +7063,59 @@ public class ImGui { } private static native boolean nInputFloat(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat(label, (v != NULL ? &v[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputFloat(String obj_label, float[] obj_v, float step); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat(label, (v != NULL ? &v[0] : NULL), step); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputFloat(String obj_label, float[] obj_v, float step, float stepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat(label, (v != NULL ? &v[0] : NULL), step, stepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputFloat(String obj_label, float[] obj_v, float step, float stepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat(label, (v != NULL ? &v[0] : NULL), step, stepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat(String obj_label, float[] obj_v, float step, float stepFast, String obj_format, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat(label, (v != NULL ? &v[0] : NULL), step, stepFast, format, imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat(String obj_label, float[] obj_v, float step, float stepFast, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat(label, (v != NULL ? &v[0] : NULL), step, stepFast, "%.3f", imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7137,41 +7137,41 @@ public class ImGui { } private static native boolean nInputFloat2(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat2(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputFloat2(String obj_label, float[] obj_v, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat2(label, &v[0], format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat2(String obj_label, float[] obj_v, String obj_format, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat2(label, &v[0], format, imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat2(String obj_label, float[] obj_v, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat2(label, &v[0], "%.3f", imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7193,41 +7193,41 @@ public class ImGui { } private static native boolean nInputFloat3(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat3(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputFloat3(String obj_label, float[] obj_v, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat3(label, &v[0], format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat3(String obj_label, float[] obj_v, String obj_format, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat3(label, &v[0], format, imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat3(String obj_label, float[] obj_v, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat3(label, &v[0], "%.3f", imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7249,41 +7249,41 @@ public class ImGui { } private static native boolean nInputFloat4(String obj_label, float[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat4(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputFloat4(String obj_label, float[] obj_v, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat4(label, &v[0], format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat4(String obj_label, float[] obj_v, String obj_format, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputFloat4(label, &v[0], format, imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputFloat4(String obj_label, float[] obj_v, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputFloat4(label, &v[0], "%.3f", imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7305,37 +7305,37 @@ public class ImGui { } private static native boolean nInputInt(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt(label, (v != NULL ? &v[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputInt(String obj_label, int[] obj_v, int step); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt(label, (v != NULL ? &v[0] : NULL), step); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputInt(String obj_label, int[] obj_v, int step, int stepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt(label, (v != NULL ? &v[0] : NULL), step, stepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputInt(String obj_label, int[] obj_v, int step, int stepFast, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt(label, (v != NULL ? &v[0] : NULL), step, stepFast, imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7349,19 +7349,19 @@ public class ImGui { } private static native boolean nInputInt2(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt2(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputInt2(String obj_label, int[] obj_v, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt2(label, &v[0], imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7375,19 +7375,19 @@ public class ImGui { } private static native boolean nInputInt3(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt3(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputInt3(String obj_label, int[] obj_v, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt3(label, &v[0], imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7401,19 +7401,19 @@ public class ImGui { } private static native boolean nInputInt4(String obj_label, int[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt4(label, &v[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputInt4(String obj_label, int[] obj_v, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputInt4(label, &v[0], imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7443,59 +7443,59 @@ public class ImGui { } private static native boolean nInputDouble(String obj_label, double[] obj_v); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputDouble(label, (v != NULL ? &v[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputDouble(String obj_label, double[] obj_v, double step); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputDouble(label, (v != NULL ? &v[0] : NULL), step); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputDouble(String obj_label, double[] obj_v, double step, double stepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputDouble(label, (v != NULL ? &v[0] : NULL), step, stepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ private static native boolean nInputDouble(String obj_label, double[] obj_v, double step, double stepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputDouble(label, (v != NULL ? &v[0] : NULL), step, stepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputDouble(String obj_label, double[] obj_v, double step, double stepFast, String obj_format, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputDouble(label, (v != NULL ? &v[0] : NULL), step, stepFast, format, imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputDouble(String obj_label, double[] obj_v, double step, double stepFast, int imGuiInputTextFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto v = obj_v == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_v, JNI_FALSE); auto _result = ImGui::InputDouble(label, (v != NULL ? &v[0] : NULL), step, stepFast, "%.6f", imGuiInputTextFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (v != NULL) env->ReleasePrimitiveArrayCritical(obj_v, v, JNI_FALSE); return _result; */ @@ -7521,51 +7521,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, short[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S16, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, short[] obj_pData, short pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S16, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, short[] obj_pData, short pStep, short pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S16, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, short[] obj_pData, short pStep, short pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_S16, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, short[] obj_pData, short pStep, short pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_S16, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7590,51 +7590,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, int[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S32, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int[] obj_pData, int pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S32, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int[] obj_pData, int pStep, int pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S32, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int[] obj_pData, int pStep, int pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_S32, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, int[] obj_pData, int pStep, int pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_S32, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7659,51 +7659,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, long[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S64, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, long[] obj_pData, long pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S64, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, long[] obj_pData, long pStep, long pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_S64, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, long[] obj_pData, long pStep, long pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_S64, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, long[] obj_pData, long pStep, long pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_S64, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7728,51 +7728,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, float[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_Float, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, float[] obj_pData, float pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_Float, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, float[] obj_pData, float pStep, float pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_Float, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, float[] obj_pData, float pStep, float pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_Float, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, float[] obj_pData, float pStep, float pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_Float, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7797,51 +7797,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, double[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_Double, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, double[] obj_pData, double pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_Double, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, double[] obj_pData, double pStep, double pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, ImGuiDataType_Double, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, double[] obj_pData, double pStep, double pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_Double, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, double[] obj_pData, double pStep, double pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, ImGuiDataType_Double, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7866,51 +7866,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, int dataType, short[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, short[] obj_pData, short pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, short[] obj_pData, short pStep, short pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, short[] obj_pData, short pStep, short pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, short[] obj_pData, short pStep, short pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -7935,51 +7935,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, int dataType, int[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, int[] obj_pData, int pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, int[] obj_pData, int pStep, int pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, int[] obj_pData, int pStep, int pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, int[] obj_pData, int pStep, int pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8004,51 +8004,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, int dataType, long[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, long[] obj_pData, long pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, long[] obj_pData, long pStep, long pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, long[] obj_pData, long pStep, long pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, long[] obj_pData, long pStep, long pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8073,51 +8073,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, int dataType, float[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, float[] obj_pData, float pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, float[] obj_pData, float pStep, float pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, float[] obj_pData, float pStep, float pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, float[] obj_pData, float pStep, float pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8142,51 +8142,51 @@ public class ImGui { } private static native boolean nInputScalar(String obj_label, int dataType, double[] obj_pData); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, double[] obj_pData, double pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, double[] obj_pData, double pStep, double pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, double[] obj_pData, double pStep, double pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalar(String obj_label, int dataType, double[] obj_pData, double pStep, double pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalar(label, dataType, (pData != NULL ? &pData[0] : NULL), &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8211,51 +8211,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, short[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S16, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, short[] obj_pData, int components, short pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S16, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, short[] obj_pData, int components, short pStep, short pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S16, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, short[] obj_pData, int components, short pStep, short pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S16, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, short[] obj_pData, int components, short pStep, short pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S16, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8280,51 +8280,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, int[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S32, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int[] obj_pData, int components, int pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S32, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int[] obj_pData, int components, int pStep, int pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S32, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int[] obj_pData, int components, int pStep, int pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S32, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, int[] obj_pData, int components, int pStep, int pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S32, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8349,51 +8349,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, long[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S64, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, long[] obj_pData, int components, long pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S64, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, long[] obj_pData, int components, long pStep, long pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S64, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, long[] obj_pData, int components, long pStep, long pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S64, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, long[] obj_pData, int components, long pStep, long pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_S64, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8418,51 +8418,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, float[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Float, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, float[] obj_pData, int components, float pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Float, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, float[] obj_pData, int components, float pStep, float pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Float, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, float[] obj_pData, int components, float pStep, float pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Float, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, float[] obj_pData, int components, float pStep, float pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Float, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8487,51 +8487,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, double[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Double, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, double[] obj_pData, int components, double pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Double, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, double[] obj_pData, int components, double pStep, double pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Double, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, double[] obj_pData, int components, double pStep, double pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Double, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, double[] obj_pData, int components, double pStep, double pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, ImGuiDataType_Double, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8556,51 +8556,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, int dataType, short[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, short[] obj_pData, int components, short pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, short[] obj_pData, int components, short pStep, short pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, short[] obj_pData, int components, short pStep, short pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, short[] obj_pData, int components, short pStep, short pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8625,51 +8625,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, int dataType, int[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, int[] obj_pData, int components, int pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, int[] obj_pData, int components, int pStep, int pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, int[] obj_pData, int components, int pStep, int pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, int[] obj_pData, int components, int pStep, int pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8694,51 +8694,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, int dataType, long[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, long[] obj_pData, int components, long pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, long[] obj_pData, int components, long pStep, long pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, long[] obj_pData, int components, long pStep, long pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, long[] obj_pData, int components, long pStep, long pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8763,51 +8763,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, int dataType, float[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, float[] obj_pData, int components, float pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, float[] obj_pData, int components, float pStep, float pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, float[] obj_pData, int components, float pStep, float pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, float[] obj_pData, int components, float pStep, float pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8832,51 +8832,51 @@ public class ImGui { } private static native boolean nInputScalarN(String obj_label, int dataType, double[] obj_pData, int components); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, double[] obj_pData, int components, double pStep); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, double[] obj_pData, int components, double pStep, double pStepFast); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, double[] obj_pData, int components, double pStep, double pStepFast, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nInputScalarN(String obj_label, int dataType, double[] obj_pData, int components, double pStep, double pStepFast, String obj_format, int imGuiSliderFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pData = obj_pData == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pData, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGui::InputScalarN(label, dataType, &pData[0], components, &pStep, &pStepFast, format, imGuiSliderFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pData != NULL) env->ReleasePrimitiveArrayCritical(obj_pData, pData, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -8893,19 +8893,19 @@ public class ImGui { } private static native boolean nColorEdit3(String obj_label, float[] obj_col); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorEdit3(label, &col[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorEdit3(String obj_label, float[] obj_col, int imGuiColorEditFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorEdit3(label, &col[0], imGuiColorEditFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ @@ -8919,19 +8919,19 @@ public class ImGui { } private static native boolean nColorEdit4(String obj_label, float[] obj_col); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorEdit4(label, &col[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorEdit4(String obj_label, float[] obj_col, int imGuiColorEditFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorEdit4(label, &col[0], imGuiColorEditFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ @@ -8945,19 +8945,19 @@ public class ImGui { } private static native boolean nColorPicker3(String obj_label, float[] obj_col); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorPicker3(label, &col[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorPicker3(String obj_label, float[] obj_col, int imGuiColorEditFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorPicker3(label, &col[0], imGuiColorEditFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ @@ -8979,40 +8979,40 @@ public class ImGui { } private static native boolean nColorPicker4(String obj_label, float[] obj_col); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorPicker4(label, &col[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorPicker4(String obj_label, float[] obj_col, int imGuiColorEditFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorPicker4(label, &col[0], imGuiColorEditFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorPicker4(String obj_label, float[] obj_col, int imGuiColorEditFlags, float[] obj_refCol); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto refCol = obj_refCol == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_refCol, JNI_FALSE); auto _result = ImGui::ColorPicker4(label, &col[0], imGuiColorEditFlags, &refCol[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); if (refCol != NULL) env->ReleasePrimitiveArrayCritical(obj_refCol, refCol, JNI_FALSE); return _result; */ private static native boolean nColorPicker4(String obj_label, float[] obj_col, float[] obj_refCol); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto refCol = obj_refCol == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_refCol, JNI_FALSE); auto _result = ImGui::ColorPicker4(label, &col[0], 0, &refCol[0]); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); if (refCol != NULL) env->ReleasePrimitiveArrayCritical(obj_refCol, refCol, JNI_FALSE); return _result; @@ -9075,36 +9075,36 @@ public class ImGui { } private static native boolean nColorButton(String obj_descId, float colX, float colY, float colZ, float colW); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); ImVec4 col = ImVec4(colX, colY, colZ, colW); auto _result = ImGui::ColorButton(descId, col); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); return _result; */ private static native boolean nColorButton(String obj_descId, float colX, float colY, float colZ, float colW, int imGuiColorEditFlags); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); ImVec4 col = ImVec4(colX, colY, colZ, colW); auto _result = ImGui::ColorButton(descId, col, imGuiColorEditFlags); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); return _result; */ private static native boolean nColorButton(String obj_descId, float colX, float colY, float colZ, float colW, int imGuiColorEditFlags, float sizeX, float sizeY); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); ImVec4 col = ImVec4(colX, colY, colZ, colW); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ColorButton(descId, col, imGuiColorEditFlags, size); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); return _result; */ private static native boolean nColorButton(String obj_descId, float colX, float colY, float colZ, float colW, float sizeX, float sizeY); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); ImVec4 col = ImVec4(colX, colY, colZ, colW); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ColorButton(descId, col, 0, size); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); return _result; */ @@ -9169,39 +9169,39 @@ public class ImGui { } private static native boolean nColorButton(String obj_descId, float[] obj_col); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3])); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorButton(String obj_descId, float[] obj_col, int imGuiColorEditFlags); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); auto _result = ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3]), imGuiColorEditFlags); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorButton(String obj_descId, float[] obj_col, int imGuiColorEditFlags, float sizeX, float sizeY); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3]), imGuiColorEditFlags, size); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ private static native boolean nColorButton(String obj_descId, float[] obj_col, float sizeX, float sizeY); /*MANUAL - auto descId = obj_descId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_descId, JNI_FALSE); + auto descId = obj_descId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_descId); auto col = obj_col == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_col, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ColorButton(descId, ImVec4(col[0], col[1], col[2], col[3]), 0, size); - if (descId != NULL) env->ReleaseStringUTFChars(obj_descId, descId); + if (descId != NULL) Jni::FreeTrueUtf8(descId); if (col != NULL) env->ReleasePrimitiveArrayCritical(obj_col, col, JNI_FALSE); return _result; */ @@ -9226,9 +9226,9 @@ public class ImGui { } private static native boolean nTreeNode(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNode(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9241,11 +9241,11 @@ public class ImGui { } private static native boolean nTreeNode(String obj_strId, String obj_label); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNode(strId, label, NULL); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (strId != NULL) Jni::FreeTrueUtf8(strId); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9254,9 +9254,9 @@ public class ImGui { } private static native boolean nTreeNode(long ptrId, String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNode((void*)ptrId, label, NULL); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9269,16 +9269,16 @@ public class ImGui { } private static native boolean nTreeNodeEx(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNodeEx(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nTreeNodeEx(String obj_label, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNodeEx(label, flags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9287,11 +9287,11 @@ public class ImGui { } private static native boolean nTreeNodeEx(String obj_strId, int flags, String obj_label); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNodeEx(strId, flags, label, NULL); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (strId != NULL) Jni::FreeTrueUtf8(strId); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9300,9 +9300,9 @@ public class ImGui { } private static native boolean nTreeNodeEx(long ptrId, int flags, String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TreeNodeEx((void*)ptrId, flags, label, NULL); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9314,9 +9314,9 @@ public class ImGui { } private static native void nTreePush(String strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImGui::TreePush(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); */ /** @@ -9367,16 +9367,16 @@ public class ImGui { } private static native boolean nCollapsingHeader(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::CollapsingHeader(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nCollapsingHeader(String obj_label, int imGuiTreeNodeFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::CollapsingHeader(label, imGuiTreeNodeFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9397,19 +9397,19 @@ public class ImGui { } private static native boolean nCollapsingHeader(String obj_label, boolean[] obj_pVisible); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pVisible = obj_pVisible == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pVisible, JNI_FALSE); auto _result = ImGui::CollapsingHeader(label, (pVisible != NULL ? &pVisible[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pVisible != NULL) env->ReleasePrimitiveArrayCritical(obj_pVisible, pVisible, JNI_FALSE); return _result; */ private static native boolean nCollapsingHeader(String obj_label, boolean[] obj_pVisible, int imGuiTreeNodeFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pVisible = obj_pVisible == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pVisible, JNI_FALSE); auto _result = ImGui::CollapsingHeader(label, (pVisible != NULL ? &pVisible[0] : NULL), imGuiTreeNodeFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pVisible != NULL) env->ReleasePrimitiveArrayCritical(obj_pVisible, pVisible, JNI_FALSE); return _result; */ @@ -9485,55 +9485,55 @@ public class ImGui { } private static native boolean nSelectable(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::Selectable(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nSelectable(String obj_label, boolean selected); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::Selectable(label, selected); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nSelectable(String obj_label, boolean selected, int imGuiSelectableFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::Selectable(label, selected, imGuiSelectableFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nSelectable(String obj_label, boolean selected, int imGuiSelectableFlags, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Selectable(label, selected, imGuiSelectableFlags, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nSelectable(String obj_label, int imGuiSelectableFlags, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Selectable(label, false, imGuiSelectableFlags, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nSelectable(String obj_label, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Selectable(label, false, 0, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nSelectable(String obj_label, boolean selected, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Selectable(label, selected, 0, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9562,39 +9562,39 @@ public class ImGui { } private static native boolean nSelectable(String obj_label, boolean[] obj_pSelected); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pSelected = obj_pSelected == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pSelected, JNI_FALSE); auto _result = ImGui::Selectable(label, (pSelected != NULL ? &pSelected[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pSelected != NULL) env->ReleasePrimitiveArrayCritical(obj_pSelected, pSelected, JNI_FALSE); return _result; */ private static native boolean nSelectable(String obj_label, boolean[] obj_pSelected, int imGuiSelectableFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pSelected = obj_pSelected == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pSelected, JNI_FALSE); auto _result = ImGui::Selectable(label, (pSelected != NULL ? &pSelected[0] : NULL), imGuiSelectableFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pSelected != NULL) env->ReleasePrimitiveArrayCritical(obj_pSelected, pSelected, JNI_FALSE); return _result; */ private static native boolean nSelectable(String obj_label, boolean[] obj_pSelected, int imGuiSelectableFlags, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pSelected = obj_pSelected == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pSelected, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Selectable(label, (pSelected != NULL ? &pSelected[0] : NULL), imGuiSelectableFlags, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pSelected != NULL) env->ReleasePrimitiveArrayCritical(obj_pSelected, pSelected, JNI_FALSE); return _result; */ private static native boolean nSelectable(String obj_label, boolean[] obj_pSelected, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pSelected = obj_pSelected == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pSelected, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::Selectable(label, (pSelected != NULL ? &pSelected[0] : NULL), 0, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pSelected != NULL) env->ReleasePrimitiveArrayCritical(obj_pSelected, pSelected, JNI_FALSE); return _result; */ @@ -9628,17 +9628,17 @@ public class ImGui { } private static native boolean nBeginListBox(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::BeginListBox(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nBeginListBox(String obj_label, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::BeginListBox(label, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -9662,38 +9662,38 @@ public class ImGui { } private static native void nListBox(String label, int[] currentItem, String[] obj_items, int itemsCount); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto currentItem = obj_currentItem == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_currentItem, JNI_FALSE); const char* items[itemsCount]; for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); items[i] = rawStr; }; ImGui::ListBox(label, (currentItem != NULL ? ¤tItem[0] : NULL), items, itemsCount); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (currentItem != NULL) env->ReleasePrimitiveArrayCritical(obj_currentItem, currentItem, JNI_FALSE); for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - env->ReleaseStringUTFChars(str, items[i]); + Jni::FreeTrueUtf8((char*)items[i]); }; */ private static native void nListBox(String label, int[] currentItem, String[] obj_items, int itemsCount, int heightInItems); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto currentItem = obj_currentItem == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_currentItem, JNI_FALSE); const char* items[itemsCount]; for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); items[i] = rawStr; }; ImGui::ListBox(label, (currentItem != NULL ? ¤tItem[0] : NULL), items, itemsCount, heightInItems); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (currentItem != NULL) env->ReleasePrimitiveArrayCritical(obj_currentItem, currentItem, JNI_FALSE); for (int i = 0; i < itemsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_items, i); - env->ReleaseStringUTFChars(str, items[i]); + Jni::FreeTrueUtf8((char*)items[i]); }; */ @@ -9765,110 +9765,110 @@ public class ImGui { } private static native void nPlotLines(String label, float[] values, int valuesCount); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImGui::PlotLines(label, &values[0], valuesCount); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotLines(String label, float[] values, int valuesCount, String overlayText, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotLines(label, &values[0], valuesCount, 0, overlayText, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotLines(String label, float[] values, int valuesCount, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotLines(label, &values[0], valuesCount, 0, NULL, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, NULL, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLines(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotLines(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, ImVec2(0,0), stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ public static void plotHistogram(final String label, final float[] values, final int valuesCount) { @@ -9936,110 +9936,110 @@ public class ImGui { } private static native void nPlotHistogram(String label, float[] values, int valuesCount); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImGui::PlotHistogram(label, &values[0], valuesCount); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, String overlayText, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotHistogram(label, &values[0], valuesCount, 0, overlayText, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotHistogram(label, &values[0], valuesCount, 0, NULL, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, float scaleMin, float scaleMax, float graphSizeX, float graphSizeY, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImVec2 graphSize = ImVec2(graphSizeX, graphSizeY); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, NULL, scaleMin, scaleMax, graphSize, stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHistogram(String label, float[] values, int valuesCount, int valuesOffset, String overlayText, float scaleMin, float scaleMax, int stride); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto overlayText = obj_overlayText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_overlayText, JNI_FALSE); + auto overlayText = obj_overlayText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_overlayText); ImGui::PlotHistogram(label, &values[0], valuesCount, valuesOffset, overlayText, scaleMin, scaleMax, ImVec2(0,0), stride); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (overlayText != NULL) env->ReleaseStringUTFChars(obj_overlayText, overlayText); + if (overlayText != NULL) Jni::FreeTrueUtf8(overlayText); */ // Widgets: Value() Helpers. @@ -10121,16 +10121,16 @@ public class ImGui { } private static native boolean nBeginMenu(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::BeginMenu(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nBeginMenu(String obj_label, boolean enabled); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::BeginMenu(label, enabled); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -10167,23 +10167,23 @@ public class ImGui { } private static native boolean nMenuItem(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::MenuItem(label, NULL); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nMenuItem(String obj_label, boolean selected); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::MenuItem(label, NULL, selected); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nMenuItem(String obj_label, boolean selected, boolean enabled); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::MenuItem(label, NULL, selected, enabled); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -10209,29 +10209,29 @@ public class ImGui { } private static native boolean nMenuItem(String obj_label, String obj_shortcut); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto shortcut = obj_shortcut == NULL ? NULL : (char*)env->GetStringUTFChars(obj_shortcut, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto shortcut = obj_shortcut == NULL ? NULL : Jni::ToTrueUtf8(env, obj_shortcut); auto _result = ImGui::MenuItem(label, shortcut); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (shortcut != NULL) env->ReleaseStringUTFChars(obj_shortcut, shortcut); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (shortcut != NULL) Jni::FreeTrueUtf8(shortcut); return _result; */ private static native boolean nMenuItem(String obj_label, String obj_shortcut, boolean selected); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto shortcut = obj_shortcut == NULL ? NULL : (char*)env->GetStringUTFChars(obj_shortcut, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto shortcut = obj_shortcut == NULL ? NULL : Jni::ToTrueUtf8(env, obj_shortcut); auto _result = ImGui::MenuItem(label, shortcut, selected); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (shortcut != NULL) env->ReleaseStringUTFChars(obj_shortcut, shortcut); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (shortcut != NULL) Jni::FreeTrueUtf8(shortcut); return _result; */ private static native boolean nMenuItem(String obj_label, String obj_shortcut, boolean selected, boolean enabled); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto shortcut = obj_shortcut == NULL ? NULL : (char*)env->GetStringUTFChars(obj_shortcut, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto shortcut = obj_shortcut == NULL ? NULL : Jni::ToTrueUtf8(env, obj_shortcut); auto _result = ImGui::MenuItem(label, shortcut, selected, enabled); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (shortcut != NULL) env->ReleaseStringUTFChars(obj_shortcut, shortcut); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (shortcut != NULL) Jni::FreeTrueUtf8(shortcut); return _result; */ @@ -10250,23 +10250,23 @@ public class ImGui { } private static native boolean nMenuItem(String obj_label, String obj_shortcut, boolean[] obj_pSelected); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto shortcut = obj_shortcut == NULL ? NULL : (char*)env->GetStringUTFChars(obj_shortcut, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto shortcut = obj_shortcut == NULL ? NULL : Jni::ToTrueUtf8(env, obj_shortcut); auto pSelected = obj_pSelected == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pSelected, JNI_FALSE); auto _result = ImGui::MenuItem(label, shortcut, (pSelected != NULL ? &pSelected[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (shortcut != NULL) env->ReleaseStringUTFChars(obj_shortcut, shortcut); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (shortcut != NULL) Jni::FreeTrueUtf8(shortcut); if (pSelected != NULL) env->ReleasePrimitiveArrayCritical(obj_pSelected, pSelected, JNI_FALSE); return _result; */ private static native boolean nMenuItem(String obj_label, String obj_shortcut, boolean[] obj_pSelected, boolean enabled); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto shortcut = obj_shortcut == NULL ? NULL : (char*)env->GetStringUTFChars(obj_shortcut, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto shortcut = obj_shortcut == NULL ? NULL : Jni::ToTrueUtf8(env, obj_shortcut); auto pSelected = obj_pSelected == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pSelected, JNI_FALSE); auto _result = ImGui::MenuItem(label, shortcut, (pSelected != NULL ? &pSelected[0] : NULL), enabled); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (shortcut != NULL) env->ReleaseStringUTFChars(obj_shortcut, shortcut); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (shortcut != NULL) Jni::FreeTrueUtf8(shortcut); if (pSelected != NULL) env->ReleasePrimitiveArrayCritical(obj_pSelected, pSelected, JNI_FALSE); return _result; */ @@ -10306,9 +10306,9 @@ public class ImGui { } private static native void nSetTooltip(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::SetTooltip(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ // Tooltips: helpers for showing a tooltip when hovering an item @@ -10335,9 +10335,9 @@ public class ImGui { } private static native void nSetItemTooltip(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::SetItemTooltip(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ // Popups, Modals @@ -10366,16 +10366,16 @@ public class ImGui { } private static native boolean nBeginPopup(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopup(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginPopup(String obj_strId, int imGuiWindowFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopup(strId, imGuiWindowFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -10408,34 +10408,34 @@ public class ImGui { } private static native boolean nBeginPopupModal(String obj_name); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto _result = ImGui::BeginPopupModal(name); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); return _result; */ private static native boolean nBeginPopupModal(String obj_name, boolean[] obj_pOpen); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto pOpen = obj_pOpen == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pOpen, JNI_FALSE); auto _result = ImGui::BeginPopupModal(name, (pOpen != NULL ? &pOpen[0] : NULL)); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); if (pOpen != NULL) env->ReleasePrimitiveArrayCritical(obj_pOpen, pOpen, JNI_FALSE); return _result; */ private static native boolean nBeginPopupModal(String obj_name, boolean[] obj_pOpen, int imGuiWindowFlags); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto pOpen = obj_pOpen == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pOpen, JNI_FALSE); auto _result = ImGui::BeginPopupModal(name, (pOpen != NULL ? &pOpen[0] : NULL), imGuiWindowFlags); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); if (pOpen != NULL) env->ReleasePrimitiveArrayCritical(obj_pOpen, pOpen, JNI_FALSE); return _result; */ private static native boolean nBeginPopupModal(String obj_name, int imGuiWindowFlags); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto _result = ImGui::BeginPopupModal(name, NULL, imGuiWindowFlags); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); return _result; */ @@ -10472,15 +10472,15 @@ public class ImGui { } private static native void nOpenPopup(String strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImGui::OpenPopup(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); */ private static native void nOpenPopup(String strId, int imGuiPopupFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImGui::OpenPopup(strId, imGuiPopupFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); */ /** @@ -10538,15 +10538,15 @@ public class ImGui { */ private static native void nOpenPopupOnItemClick(String strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImGui::OpenPopupOnItemClick(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); */ private static native void nOpenPopupOnItemClick(String strId, int imGuiPopupFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImGui::OpenPopupOnItemClick(strId, imGuiPopupFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); */ private static native void nOpenPopupOnItemClick(int imGuiPopupFlags); /* @@ -10607,16 +10607,16 @@ public class ImGui { */ private static native boolean nBeginPopupContextItem(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopupContextItem(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginPopupContextItem(String obj_strId, int imGuiPopupFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopupContextItem(strId, imGuiPopupFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -10657,16 +10657,16 @@ public class ImGui { */ private static native boolean nBeginPopupContextWindow(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopupContextWindow(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginPopupContextWindow(String obj_strId, int imGuiPopupFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopupContextWindow(strId, imGuiPopupFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -10707,16 +10707,16 @@ public class ImGui { */ private static native boolean nBeginPopupContextVoid(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopupContextVoid(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginPopupContextVoid(String obj_strId, int imGuiPopupFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginPopupContextVoid(strId, imGuiPopupFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -10744,16 +10744,16 @@ public class ImGui { } private static native boolean nIsPopupOpen(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::IsPopupOpen(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nIsPopupOpen(String obj_strId, int imGuiPopupFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::IsPopupOpen(strId, imGuiPopupFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -10820,54 +10820,54 @@ public class ImGui { } private static native boolean nBeginTable(String obj_id, int columns); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); auto _result = ImGui::BeginTable(id, columns); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ private static native boolean nBeginTable(String obj_id, int columns, int imGuiTableFlags); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); auto _result = ImGui::BeginTable(id, columns, imGuiTableFlags); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ private static native boolean nBeginTable(String obj_id, int columns, int imGuiTableFlags, float outerSizeX, float outerSizeY); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImVec2 outerSize = ImVec2(outerSizeX, outerSizeY); auto _result = ImGui::BeginTable(id, columns, imGuiTableFlags, outerSize); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ private static native boolean nBeginTable(String obj_id, int columns, int imGuiTableFlags, float outerSizeX, float outerSizeY, float innerWidth); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImVec2 outerSize = ImVec2(outerSizeX, outerSizeY); auto _result = ImGui::BeginTable(id, columns, imGuiTableFlags, outerSize, innerWidth); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ private static native boolean nBeginTable(String obj_id, int columns, float outerSizeX, float outerSizeY, float innerWidth); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImVec2 outerSize = ImVec2(outerSizeX, outerSizeY); auto _result = ImGui::BeginTable(id, columns, 0, outerSize, innerWidth); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ private static native boolean nBeginTable(String obj_id, int columns, float innerWidth); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); auto _result = ImGui::BeginTable(id, columns, 0, ImVec2(0,0), innerWidth); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ private static native boolean nBeginTable(String obj_id, int columns, int imGuiTableFlags, float innerWidth); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); auto _result = ImGui::BeginTable(id, columns, imGuiTableFlags, ImVec2(0,0), innerWidth); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); return _result; */ @@ -10982,39 +10982,39 @@ public class ImGui { } private static native void nTableSetupColumn(String label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableSetupColumn(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nTableSetupColumn(String label, int imGuiTableColumnFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableSetupColumn(label, imGuiTableColumnFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nTableSetupColumn(String label, int imGuiTableColumnFlags, float initWidthOrWeight); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableSetupColumn(label, imGuiTableColumnFlags, initWidthOrWeight); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nTableSetupColumn(String label, int imGuiTableColumnFlags, float initWidthOrWeight, int userId); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableSetupColumn(label, imGuiTableColumnFlags, initWidthOrWeight, userId); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nTableSetupColumn(String label, float initWidthOrWeight, int userId); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableSetupColumn(label, 0, initWidthOrWeight, userId); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nTableSetupColumn(String label, int imGuiTableColumnFlags, int userId); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableSetupColumn(label, imGuiTableColumnFlags, 0.0f, userId); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ /** @@ -11036,9 +11036,9 @@ public class ImGui { } private static native void nTableHeader(String label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImGui::TableHeader(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ /** @@ -11248,21 +11248,21 @@ public class ImGui { */ private static native void nColumns(int count, String id); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImGui::Columns(count, id); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); */ private static native void nColumns(int count, String id, boolean border); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImGui::Columns(count, id, border); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); */ private static native void nColumns(String id, boolean border); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImGui::Columns(1, id, border); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); */ private static native void nColumns(boolean border); /* @@ -11387,16 +11387,16 @@ public class ImGui { } private static native boolean nBeginTabBar(String obj_strId); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginTabBar(strId); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nBeginTabBar(String obj_strId, int imGuiTabBarFlags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); auto _result = ImGui::BeginTabBar(strId, imGuiTabBarFlags); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -11440,34 +11440,34 @@ public class ImGui { } private static native boolean nBeginTabItem(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::BeginTabItem(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nBeginTabItem(String obj_label, boolean[] obj_pOpen); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pOpen = obj_pOpen == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pOpen, JNI_FALSE); auto _result = ImGui::BeginTabItem(label, (pOpen != NULL ? &pOpen[0] : NULL)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pOpen != NULL) env->ReleasePrimitiveArrayCritical(obj_pOpen, pOpen, JNI_FALSE); return _result; */ private static native boolean nBeginTabItem(String obj_label, boolean[] obj_pOpen, int imGuiTabItemFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pOpen = obj_pOpen == NULL ? NULL : (bool*)env->GetPrimitiveArrayCritical(obj_pOpen, JNI_FALSE); auto _result = ImGui::BeginTabItem(label, (pOpen != NULL ? &pOpen[0] : NULL), imGuiTabItemFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pOpen != NULL) env->ReleasePrimitiveArrayCritical(obj_pOpen, pOpen, JNI_FALSE); return _result; */ private static native boolean nBeginTabItem(String obj_label, int imGuiTabItemFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::BeginTabItem(label, NULL, imGuiTabItemFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -11497,16 +11497,16 @@ public class ImGui { } private static native boolean nTabItemButton(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TabItemButton(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nTabItemButton(String obj_label, int imGuiTabItemFlags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::TabItemButton(label, imGuiTabItemFlags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -11519,9 +11519,9 @@ public class ImGui { } private static native void nSetTabItemClosed(String tabOrDockedWindowLabel); /*MANUAL - auto tabOrDockedWindowLabel = obj_tabOrDockedWindowLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_tabOrDockedWindowLabel, JNI_FALSE); + auto tabOrDockedWindowLabel = obj_tabOrDockedWindowLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_tabOrDockedWindowLabel); ImGui::SetTabItemClosed(tabOrDockedWindowLabel); - if (tabOrDockedWindowLabel != NULL) env->ReleaseStringUTFChars(obj_tabOrDockedWindowLabel, tabOrDockedWindowLabel); + if (tabOrDockedWindowLabel != NULL) Jni::FreeTrueUtf8(tabOrDockedWindowLabel); */ // Docking @@ -11788,15 +11788,15 @@ public class ImGui { */ private static native void nLogToFile(int autoOpenDepth, String filename); /*MANUAL - auto filename = obj_filename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_filename, JNI_FALSE); + auto filename = obj_filename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_filename); ImGui::LogToFile(autoOpenDepth, filename); - if (filename != NULL) env->ReleaseStringUTFChars(obj_filename, filename); + if (filename != NULL) Jni::FreeTrueUtf8(filename); */ private static native void nLogToFile(String filename); /*MANUAL - auto filename = obj_filename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_filename, JNI_FALSE); + auto filename = obj_filename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_filename); ImGui::LogToFile(-1, filename); - if (filename != NULL) env->ReleaseStringUTFChars(obj_filename, filename); + if (filename != NULL) Jni::FreeTrueUtf8(filename); */ /** @@ -11851,9 +11851,9 @@ public class ImGui { } private static native void nLogText(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::LogText(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ // Drag and Drop @@ -12730,82 +12730,82 @@ public class ImGui { } private static native void nCalcTextSize(ImVec2 dst, String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); Jni::ImVec2Cpy(env, ImGui::CalcTextSize(text, NULL), dst); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native float nCalcTextSizeX(String obj_text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL).x; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native float nCalcTextSizeY(String obj_text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL).y; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native void nCalcTextSize(ImVec2 dst, String text, boolean hideTextAfterDoubleHash); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); Jni::ImVec2Cpy(env, ImGui::CalcTextSize(text, NULL, hideTextAfterDoubleHash), dst); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native float nCalcTextSizeX(String obj_text, boolean hideTextAfterDoubleHash); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL, hideTextAfterDoubleHash).x; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native float nCalcTextSizeY(String obj_text, boolean hideTextAfterDoubleHash); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL, hideTextAfterDoubleHash).y; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native void nCalcTextSize(ImVec2 dst, String text, boolean hideTextAfterDoubleHash, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); Jni::ImVec2Cpy(env, ImGui::CalcTextSize(text, NULL, hideTextAfterDoubleHash, wrapWidth), dst); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native float nCalcTextSizeX(String obj_text, boolean hideTextAfterDoubleHash, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL, hideTextAfterDoubleHash, wrapWidth).x; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native float nCalcTextSizeY(String obj_text, boolean hideTextAfterDoubleHash, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL, hideTextAfterDoubleHash, wrapWidth).y; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native void nCalcTextSize(ImVec2 dst, String text, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); Jni::ImVec2Cpy(env, ImGui::CalcTextSize(text, NULL, false, wrapWidth), dst); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native float nCalcTextSizeX(String obj_text, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL, false, wrapWidth).x; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ private static native float nCalcTextSizeY(String obj_text, float wrapWidth); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = ImGui::CalcTextSize(text, NULL, false, wrapWidth).y; - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ @@ -13500,9 +13500,9 @@ public class ImGui { } private static native void nSetClipboardText(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::SetClipboardText(text); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ // Settings/.Ini Utilities @@ -13517,9 +13517,9 @@ public class ImGui { } private static native void nLoadIniSettingsFromDisk(String iniFilename); /*MANUAL - auto iniFilename = obj_iniFilename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_iniFilename, JNI_FALSE); + auto iniFilename = obj_iniFilename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_iniFilename); ImGui::LoadIniSettingsFromDisk(iniFilename); - if (iniFilename != NULL) env->ReleaseStringUTFChars(obj_iniFilename, iniFilename); + if (iniFilename != NULL) Jni::FreeTrueUtf8(iniFilename); */ /** @@ -13537,15 +13537,15 @@ public class ImGui { } private static native void nLoadIniSettingsFromMemory(String iniData); /*MANUAL - auto iniData = obj_iniData == NULL ? NULL : (char*)env->GetStringUTFChars(obj_iniData, JNI_FALSE); + auto iniData = obj_iniData == NULL ? NULL : Jni::ToTrueUtf8(env, obj_iniData); ImGui::LoadIniSettingsFromMemory(iniData); - if (iniData != NULL) env->ReleaseStringUTFChars(obj_iniData, iniData); + if (iniData != NULL) Jni::FreeTrueUtf8(iniData); */ private static native void nLoadIniSettingsFromMemory(String iniData, int iniSize); /*MANUAL - auto iniData = obj_iniData == NULL ? NULL : (char*)env->GetStringUTFChars(obj_iniData, JNI_FALSE); + auto iniData = obj_iniData == NULL ? NULL : Jni::ToTrueUtf8(env, obj_iniData); ImGui::LoadIniSettingsFromMemory(iniData, iniSize); - if (iniData != NULL) env->ReleaseStringUTFChars(obj_iniData, iniData); + if (iniData != NULL) Jni::FreeTrueUtf8(iniData); */ /** @@ -13556,9 +13556,9 @@ public class ImGui { } private static native void nSaveIniSettingsToDisk(String iniFilename); /*MANUAL - auto iniFilename = obj_iniFilename == NULL ? NULL : (char*)env->GetStringUTFChars(obj_iniFilename, JNI_FALSE); + auto iniFilename = obj_iniFilename == NULL ? NULL : Jni::ToTrueUtf8(env, obj_iniFilename); ImGui::SaveIniSettingsToDisk(iniFilename); - if (iniFilename != NULL) env->ReleaseStringUTFChars(obj_iniFilename, iniFilename); + if (iniFilename != NULL) Jni::FreeTrueUtf8(iniFilename); */ /** @@ -13593,9 +13593,9 @@ public class ImGui { } private static native void nDebugTextEncoding(String text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImGui::DebugTextEncoding(text); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ public static void debugFlashStyleColor(final int idx) { @@ -13619,9 +13619,9 @@ public class ImGui { } private static native boolean nDebugCheckVersionAndDataLayout(String obj_versionStr, int szIo, int szStyle, int szVec2, int szVec4, int szDrawVert, int szDrawIdx); /*MANUAL - auto versionStr = obj_versionStr == NULL ? NULL : (char*)env->GetStringUTFChars(obj_versionStr, JNI_FALSE); + auto versionStr = obj_versionStr == NULL ? NULL : Jni::ToTrueUtf8(env, obj_versionStr); auto _result = ImGui::DebugCheckVersionAndDataLayout(versionStr, szIo, szStyle, szVec2, szVec4, szDrawVert, szDrawIdx); - if (versionStr != NULL) env->ReleaseStringUTFChars(obj_versionStr, versionStr); + if (versionStr != NULL) Jni::FreeTrueUtf8(versionStr); return _result; */ diff --git a/imgui-binding/src/generated/java/imgui/ImGuiIO.java b/imgui-binding/src/generated/java/imgui/ImGuiIO.java index c71faed..4b68f01 100644 --- a/imgui-binding/src/generated/java/imgui/ImGuiIO.java +++ b/imgui-binding/src/generated/java/imgui/ImGuiIO.java @@ -233,9 +233,9 @@ public final class ImGuiIO extends ImGuiStruct { */ private native void nSetIniFilename(String value); /*MANUAL - auto value = obj_value == NULL ? NULL : (char*)env->GetStringUTFChars(obj_value, JNI_FALSE); + auto value = obj_value == NULL ? NULL : Jni::ToTrueUtf8(env, obj_value); SET_STRING_FIELD(THIS->IniFilename, value); - if (value != NULL) env->ReleaseStringUTFChars(obj_value, value); + if (value != NULL) Jni::FreeTrueUtf8(value); */ /** @@ -257,9 +257,9 @@ public final class ImGuiIO extends ImGuiStruct { */ private native void nSetLogFilename(String value); /*MANUAL - auto value = obj_value == NULL ? NULL : (char*)env->GetStringUTFChars(obj_value, JNI_FALSE); + auto value = obj_value == NULL ? NULL : Jni::ToTrueUtf8(env, obj_value); SET_STRING_FIELD(THIS->LogFilename, value); - if (value != NULL) env->ReleaseStringUTFChars(obj_value, value); + if (value != NULL) Jni::FreeTrueUtf8(value); */ private static final ImFontAtlas _GETFONTS_1 = new ImFontAtlas(0); @@ -1075,9 +1075,9 @@ public final class ImGuiIO extends ImGuiStruct { */ private native void nSetBackendPlatformName(String value); /*MANUAL - auto value = obj_value == NULL ? NULL : (char*)env->GetStringUTFChars(obj_value, JNI_FALSE); + auto value = obj_value == NULL ? NULL : Jni::ToTrueUtf8(env, obj_value); SET_STRING_FIELD(THIS->BackendPlatformName, value); - if (value != NULL) env->ReleaseStringUTFChars(obj_value, value); + if (value != NULL) Jni::FreeTrueUtf8(value); */ public String getBackendRendererName() { @@ -1093,9 +1093,9 @@ public final class ImGuiIO extends ImGuiStruct { */ private native void nSetBackendRendererName(String value); /*MANUAL - auto value = obj_value == NULL ? NULL : (char*)env->GetStringUTFChars(obj_value, JNI_FALSE); + auto value = obj_value == NULL ? NULL : Jni::ToTrueUtf8(env, obj_value); SET_STRING_FIELD(THIS->BackendRendererName, value); - if (value != NULL) env->ReleaseStringUTFChars(obj_value, value); + if (value != NULL) Jni::FreeTrueUtf8(value); */ // Optional: Access OS clipboard @@ -1112,7 +1112,7 @@ public final class ImGuiIO extends ImGuiStruct { const char* getClipboardTextStub(void* user_data) { JNIEnv* env = Jni::GetEnv(); jstring jstr = Jni::CallImStrSupplier(env, _getClipboardTextCallback); - return env->GetStringUTFChars(jstr, 0); + return Jni::ToTrueUtf8(env, jstr); } */ @@ -1280,9 +1280,9 @@ public final class ImGuiIO extends ImGuiStruct { } private native void nAddInputCharactersUTF8(String str); /*MANUAL - auto str = obj_str == NULL ? NULL : (char*)env->GetStringUTFChars(obj_str, JNI_FALSE); + auto str = obj_str == NULL ? NULL : Jni::ToTrueUtf8(env, obj_str); THIS->AddInputCharactersUTF8(str); - if (str != NULL) env->ReleaseStringUTFChars(obj_str, str); + if (str != NULL) Jni::FreeTrueUtf8(str); */ /** diff --git a/imgui-binding/src/generated/java/imgui/ImGuiInputTextCallbackData.java b/imgui-binding/src/generated/java/imgui/ImGuiInputTextCallbackData.java index 55afba5..1e5e533 100644 --- a/imgui-binding/src/generated/java/imgui/ImGuiInputTextCallbackData.java +++ b/imgui-binding/src/generated/java/imgui/ImGuiInputTextCallbackData.java @@ -141,9 +141,9 @@ public class ImGuiInputTextCallbackData extends ImGuiStruct { */ private native void nSetBuf(String value); /*MANUAL - auto value = obj_value == NULL ? NULL : (char*)env->GetStringUTFChars(obj_value, JNI_FALSE); + auto value = obj_value == NULL ? NULL : Jni::ToTrueUtf8(env, obj_value); SET_STRING_FIELD(THIS->Buf, value); - if (value != NULL) env->ReleaseStringUTFChars(obj_value, value); + if (value != NULL) Jni::FreeTrueUtf8(value); */ /** @@ -285,9 +285,9 @@ public class ImGuiInputTextCallbackData extends ImGuiStruct { } private native void nInsertChars(int pos, String str); /*MANUAL - auto str = obj_str == NULL ? NULL : (char*)env->GetStringUTFChars(obj_str, JNI_FALSE); + auto str = obj_str == NULL ? NULL : Jni::ToTrueUtf8(env, obj_str); THIS->InsertChars(pos, str); - if (str != NULL) env->ReleaseStringUTFChars(obj_str, str); + if (str != NULL) Jni::FreeTrueUtf8(str); */ public void selectAll() { diff --git a/imgui-binding/src/generated/java/imgui/ImGuiTextFilter.java b/imgui-binding/src/generated/java/imgui/ImGuiTextFilter.java index 6cf0c7e..364ef30 100644 --- a/imgui-binding/src/generated/java/imgui/ImGuiTextFilter.java +++ b/imgui-binding/src/generated/java/imgui/ImGuiTextFilter.java @@ -53,16 +53,16 @@ public final class ImGuiTextFilter extends ImGuiStructDestroyable { */ private native boolean nDraw(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = THIS->Draw(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private native boolean nDraw(String obj_label, float width); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = THIS->Draw(label, width); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -75,9 +75,9 @@ public final class ImGuiTextFilter extends ImGuiStructDestroyable { } private native boolean nPassFilter(String obj_text); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); auto _result = THIS->PassFilter(text, NULL); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); return _result; */ diff --git a/imgui-binding/src/generated/java/imgui/extension/imguiknobs/ImGuiKnobs.java b/imgui-binding/src/generated/java/imgui/extension/imguiknobs/ImGuiKnobs.java index 00f2a78..8e1941e 100644 --- a/imgui-binding/src/generated/java/imgui/extension/imguiknobs/ImGuiKnobs.java +++ b/imgui-binding/src/generated/java/imgui/extension/imguiknobs/ImGuiKnobs.java @@ -352,164 +352,164 @@ public final class ImGuiKnobs { } private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, int variant); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, int variant, float size); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, int variant, float size, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, size, flags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, String obj_format, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, 0, format, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, 0, NULL, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, ImGuiKnobVariant_Tick, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, ImGuiKnobVariant_Tick, 0, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, ImGuiKnobVariant_Tick, 0, 0, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, ImGuiKnobVariant_Tick, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, int variant, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, 0, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, float[] obj_pValue, float vMin, float vMax, float speed, String obj_format, int variant, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::Knob(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, 0, 0, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ @@ -850,164 +850,164 @@ public final class ImGuiKnobs { } private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, int variant); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, int variant, float size); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, int variant, float size, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, size, flags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, String obj_format, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, 0, format, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, 0, NULL, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, int variant, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, variant, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, ImGuiKnobVariant_Tick, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, ImGuiKnobVariant_Tick, 0, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, NULL, ImGuiKnobVariant_Tick, 0, 0, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, float size, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, ImGuiKnobVariant_Tick, size, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, int variant, int flags, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, 0, flags, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nKnob(String obj_label, int[] obj_pValue, int vMin, int vMax, float speed, String obj_format, int variant, int steps); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto pValue = obj_pValue == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pValue, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImGuiKnobs::KnobInt(label, (pValue != NULL ? &pValue[0] : NULL), vMin, vMax, speed, format, variant, 0, 0, steps); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (pValue != NULL) env->ReleasePrimitiveArrayCritical(obj_pValue, pValue, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ } diff --git a/imgui-binding/src/generated/java/imgui/extension/imnodes/ImNodes.java b/imgui-binding/src/generated/java/imgui/extension/imnodes/ImNodes.java index ebdd4fa..981308d 100644 --- a/imgui-binding/src/generated/java/imgui/extension/imnodes/ImNodes.java +++ b/imgui-binding/src/generated/java/imgui/extension/imnodes/ImNodes.java @@ -1123,9 +1123,9 @@ public final class ImNodes { } private static native void nLoadCurrentEditorStateFromIniString(String data, int dataSize); /*MANUAL - auto data = obj_data == NULL ? NULL : (char*)env->GetStringUTFChars(obj_data, JNI_FALSE); + auto data = obj_data == NULL ? NULL : Jni::ToTrueUtf8(env, obj_data); ImNodes::LoadCurrentEditorStateFromIniString(data, dataSize); - if (data != NULL) env->ReleaseStringUTFChars(obj_data, data); + if (data != NULL) Jni::FreeTrueUtf8(data); */ public static void loadEditorStateFromIniString(final ImNodesEditorContext editor, final String data, final int dataSize) { @@ -1133,9 +1133,9 @@ public final class ImNodes { } private static native void nLoadEditorStateFromIniString(long editor, String data, int dataSize); /*MANUAL - auto data = obj_data == NULL ? NULL : (char*)env->GetStringUTFChars(obj_data, JNI_FALSE); + auto data = obj_data == NULL ? NULL : Jni::ToTrueUtf8(env, obj_data); ImNodes::LoadEditorStateFromIniString(reinterpret_cast(editor), data, dataSize); - if (data != NULL) env->ReleaseStringUTFChars(obj_data, data); + if (data != NULL) Jni::FreeTrueUtf8(data); */ public static void saveCurrentEditorStateToIniFile(final String fileName) { @@ -1143,9 +1143,9 @@ public final class ImNodes { } private static native void nSaveCurrentEditorStateToIniFile(String fileName); /*MANUAL - auto fileName = obj_fileName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fileName, JNI_FALSE); + auto fileName = obj_fileName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fileName); ImNodes::SaveCurrentEditorStateToIniFile(fileName); - if (fileName != NULL) env->ReleaseStringUTFChars(obj_fileName, fileName); + if (fileName != NULL) Jni::FreeTrueUtf8(fileName); */ public static void saveEditorStateToIniFile(final ImNodesEditorContext editor, final String fileName) { @@ -1153,9 +1153,9 @@ public final class ImNodes { } private static native void nSaveEditorStateToIniFile(long editor, String fileName); /*MANUAL - auto fileName = obj_fileName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fileName, JNI_FALSE); + auto fileName = obj_fileName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fileName); ImNodes::SaveEditorStateToIniFile(reinterpret_cast(editor), fileName); - if (fileName != NULL) env->ReleaseStringUTFChars(obj_fileName, fileName); + if (fileName != NULL) Jni::FreeTrueUtf8(fileName); */ public static void loadCurrentEditorStateFromIniFile(final String fileName) { @@ -1163,9 +1163,9 @@ public final class ImNodes { } private static native void nLoadCurrentEditorStateFromIniFile(String fileName); /*MANUAL - auto fileName = obj_fileName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fileName, JNI_FALSE); + auto fileName = obj_fileName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fileName); ImNodes::LoadCurrentEditorStateFromIniFile(fileName); - if (fileName != NULL) env->ReleaseStringUTFChars(obj_fileName, fileName); + if (fileName != NULL) Jni::FreeTrueUtf8(fileName); */ public static void loadEditorStateFromIniFile(final ImNodesEditorContext editor, final String fileName) { @@ -1173,8 +1173,8 @@ public final class ImNodes { } private static native void nLoadEditorStateFromIniFile(long editor, String fileName); /*MANUAL - auto fileName = obj_fileName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fileName, JNI_FALSE); + auto fileName = obj_fileName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fileName); ImNodes::LoadEditorStateFromIniFile(reinterpret_cast(editor), fileName); - if (fileName != NULL) env->ReleaseStringUTFChars(obj_fileName, fileName); + if (fileName != NULL) Jni::FreeTrueUtf8(fileName); */ } diff --git a/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java b/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java index 5297f53..b8e1e37 100644 --- a/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java +++ b/imgui-binding/src/generated/java/imgui/extension/implot/ImPlot.java @@ -129,32 +129,32 @@ public final class ImPlot { } private static native boolean nBeginPlot(String obj_titleId); /*MANUAL - auto titleId = obj_titleId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleId, JNI_FALSE); + auto titleId = obj_titleId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleId); auto _result = ImPlot::BeginPlot(titleId); - if (titleId != NULL) env->ReleaseStringUTFChars(obj_titleId, titleId); + if (titleId != NULL) Jni::FreeTrueUtf8(titleId); return _result; */ private static native boolean nBeginPlot(String obj_titleId, float sizeX, float sizeY); /*MANUAL - auto titleId = obj_titleId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleId, JNI_FALSE); + auto titleId = obj_titleId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginPlot(titleId, size); - if (titleId != NULL) env->ReleaseStringUTFChars(obj_titleId, titleId); + if (titleId != NULL) Jni::FreeTrueUtf8(titleId); return _result; */ private static native boolean nBeginPlot(String obj_titleId, float sizeX, float sizeY, int flags); /*MANUAL - auto titleId = obj_titleId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleId, JNI_FALSE); + auto titleId = obj_titleId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginPlot(titleId, size, flags); - if (titleId != NULL) env->ReleaseStringUTFChars(obj_titleId, titleId); + if (titleId != NULL) Jni::FreeTrueUtf8(titleId); return _result; */ private static native boolean nBeginPlot(String obj_titleId, int flags); /*MANUAL - auto titleId = obj_titleId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleId, JNI_FALSE); + auto titleId = obj_titleId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleId); auto _result = ImPlot::BeginPlot(titleId, ImVec2(-1,0), flags); - if (titleId != NULL) env->ReleaseStringUTFChars(obj_titleId, titleId); + if (titleId != NULL) Jni::FreeTrueUtf8(titleId); return _result; */ @@ -261,50 +261,50 @@ public final class ImPlot { } private static native boolean nBeginSubplots(String obj_titleID, int rows, int cols, float sizeX, float sizeY); /*MANUAL - auto titleID = obj_titleID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleID, JNI_FALSE); + auto titleID = obj_titleID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleID); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginSubplots(titleID, rows, cols, size); - if (titleID != NULL) env->ReleaseStringUTFChars(obj_titleID, titleID); + if (titleID != NULL) Jni::FreeTrueUtf8(titleID); return _result; */ private static native boolean nBeginSubplots(String obj_titleID, int rows, int cols, float sizeX, float sizeY, int flags); /*MANUAL - auto titleID = obj_titleID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleID, JNI_FALSE); + auto titleID = obj_titleID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleID); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginSubplots(titleID, rows, cols, size, flags); - if (titleID != NULL) env->ReleaseStringUTFChars(obj_titleID, titleID); + if (titleID != NULL) Jni::FreeTrueUtf8(titleID); return _result; */ private static native boolean nBeginSubplots(String obj_titleID, int rows, int cols, float sizeX, float sizeY, int flags, float[] obj_rowRatios); /*MANUAL - auto titleID = obj_titleID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleID, JNI_FALSE); + auto titleID = obj_titleID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleID); auto rowRatios = obj_rowRatios == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_rowRatios, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginSubplots(titleID, rows, cols, size, flags, &rowRatios[0]); - if (titleID != NULL) env->ReleaseStringUTFChars(obj_titleID, titleID); + if (titleID != NULL) Jni::FreeTrueUtf8(titleID); if (rowRatios != NULL) env->ReleasePrimitiveArrayCritical(obj_rowRatios, rowRatios, JNI_FALSE); return _result; */ private static native boolean nBeginSubplots(String obj_titleID, int rows, int cols, float sizeX, float sizeY, int flags, float[] obj_rowRatios, float[] obj_colRatios); /*MANUAL - auto titleID = obj_titleID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleID, JNI_FALSE); + auto titleID = obj_titleID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleID); auto rowRatios = obj_rowRatios == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_rowRatios, JNI_FALSE); auto colRatios = obj_colRatios == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_colRatios, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginSubplots(titleID, rows, cols, size, flags, &rowRatios[0], &colRatios[0]); - if (titleID != NULL) env->ReleaseStringUTFChars(obj_titleID, titleID); + if (titleID != NULL) Jni::FreeTrueUtf8(titleID); if (rowRatios != NULL) env->ReleasePrimitiveArrayCritical(obj_rowRatios, rowRatios, JNI_FALSE); if (colRatios != NULL) env->ReleasePrimitiveArrayCritical(obj_colRatios, colRatios, JNI_FALSE); return _result; */ private static native boolean nBeginSubplots(String obj_titleID, int rows, int cols, float sizeX, float sizeY, float[] obj_rowRatios, float[] obj_colRatios); /*MANUAL - auto titleID = obj_titleID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_titleID, JNI_FALSE); + auto titleID = obj_titleID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_titleID); auto rowRatios = obj_rowRatios == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_rowRatios, JNI_FALSE); auto colRatios = obj_colRatios == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_colRatios, JNI_FALSE); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::BeginSubplots(titleID, rows, cols, size, ImPlotSubplotFlags_None, &rowRatios[0], &colRatios[0]); - if (titleID != NULL) env->ReleaseStringUTFChars(obj_titleID, titleID); + if (titleID != NULL) Jni::FreeTrueUtf8(titleID); if (rowRatios != NULL) env->ReleasePrimitiveArrayCritical(obj_rowRatios, rowRatios, JNI_FALSE); if (colRatios != NULL) env->ReleasePrimitiveArrayCritical(obj_colRatios, colRatios, JNI_FALSE); return _result; @@ -388,15 +388,15 @@ public final class ImPlot { */ private static native void nSetupAxis(int axis, String label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImPlot::SetupAxis(axis, label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nSetupAxis(int axis, String label, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImPlot::SetupAxis(axis, label, flags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nSetupAxis(int axis, int flags); /* @@ -452,9 +452,9 @@ public final class ImPlot { } private static native void nSetupAxisFormat(int axis, String fmt); /*MANUAL - auto fmt = obj_fmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fmt, JNI_FALSE); + auto fmt = obj_fmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fmt); ImPlot::SetupAxisFormat(axis, fmt); - if (fmt != NULL) env->ReleaseStringUTFChars(obj_fmt, fmt); + if (fmt != NULL) Jni::FreeTrueUtf8(fmt); */ // TODO: support ImPlotFormatter @@ -502,14 +502,14 @@ public final class ImPlot { const char* labels[labelsCount]; for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labels[i] = rawStr; }; ImPlot::SetupAxisTicks(axis, &values[0], nTicks, labels); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - env->ReleaseStringUTFChars(str, labels[i]); + Jni::FreeTrueUtf8((char*)labels[i]); }; */ @@ -518,14 +518,14 @@ public final class ImPlot { const char* labels[labelsCount]; for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labels[i] = rawStr; }; ImPlot::SetupAxisTicks(axis, &values[0], nTicks, labels, keepDefault); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - env->ReleaseStringUTFChars(str, labels[i]); + Jni::FreeTrueUtf8((char*)labels[i]); }; */ @@ -575,13 +575,13 @@ public final class ImPlot { const char* labels[labelsCount]; for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labels[i] = rawStr; }; ImPlot::SetupAxisTicks(axis, vMin, vMax, nTicks, labels); for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - env->ReleaseStringUTFChars(str, labels[i]); + Jni::FreeTrueUtf8((char*)labels[i]); }; */ @@ -589,13 +589,13 @@ public final class ImPlot { const char* labels[labelsCount]; for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labels[i] = rawStr; }; ImPlot::SetupAxisTicks(axis, vMin, vMax, nTicks, labels, keepDefault); for (int i = 0; i < labelsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labels, i); - env->ReleaseStringUTFChars(str, labels[i]); + Jni::FreeTrueUtf8((char*)labels[i]); }; */ @@ -658,27 +658,27 @@ public final class ImPlot { } private static native void nSetupAxes(String xLabel, String yLabel); /*MANUAL - auto xLabel = obj_xLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_xLabel, JNI_FALSE); - auto yLabel = obj_yLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_yLabel, JNI_FALSE); + auto xLabel = obj_xLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_xLabel); + auto yLabel = obj_yLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_yLabel); ImPlot::SetupAxes(xLabel, yLabel); - if (xLabel != NULL) env->ReleaseStringUTFChars(obj_xLabel, xLabel); - if (yLabel != NULL) env->ReleaseStringUTFChars(obj_yLabel, yLabel); + if (xLabel != NULL) Jni::FreeTrueUtf8(xLabel); + if (yLabel != NULL) Jni::FreeTrueUtf8(yLabel); */ private static native void nSetupAxes(String xLabel, String yLabel, int xFlags); /*MANUAL - auto xLabel = obj_xLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_xLabel, JNI_FALSE); - auto yLabel = obj_yLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_yLabel, JNI_FALSE); + auto xLabel = obj_xLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_xLabel); + auto yLabel = obj_yLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_yLabel); ImPlot::SetupAxes(xLabel, yLabel, xFlags); - if (xLabel != NULL) env->ReleaseStringUTFChars(obj_xLabel, xLabel); - if (yLabel != NULL) env->ReleaseStringUTFChars(obj_yLabel, yLabel); + if (xLabel != NULL) Jni::FreeTrueUtf8(xLabel); + if (yLabel != NULL) Jni::FreeTrueUtf8(yLabel); */ private static native void nSetupAxes(String xLabel, String yLabel, int xFlags, int yFlags); /*MANUAL - auto xLabel = obj_xLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_xLabel, JNI_FALSE); - auto yLabel = obj_yLabel == NULL ? NULL : (char*)env->GetStringUTFChars(obj_yLabel, JNI_FALSE); + auto xLabel = obj_xLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_xLabel); + auto yLabel = obj_yLabel == NULL ? NULL : Jni::ToTrueUtf8(env, obj_yLabel); ImPlot::SetupAxes(xLabel, yLabel, xFlags, yFlags); - if (xLabel != NULL) env->ReleaseStringUTFChars(obj_xLabel, xLabel); - if (yLabel != NULL) env->ReleaseStringUTFChars(obj_yLabel, yLabel); + if (xLabel != NULL) Jni::FreeTrueUtf8(xLabel); + if (yLabel != NULL) Jni::FreeTrueUtf8(yLabel); */ /** @@ -965,42 +965,42 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, short[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, short[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, short[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, short[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1040,42 +1040,42 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, int[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, int[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, int[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, int[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1115,42 +1115,42 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, long[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, long[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, long[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, long[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1190,42 +1190,42 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, float[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, float[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, float[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, float[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1265,42 +1265,42 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, double[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, double[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, double[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLine(String labelId, double[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1340,42 +1340,42 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, short[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, short[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, short[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, short[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1415,42 +1415,42 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, int[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, int[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, int[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, int[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1490,42 +1490,42 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, long[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, long[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, long[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, long[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1565,42 +1565,42 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, float[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, float[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, float[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, float[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1640,42 +1640,42 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, double[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, double[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, double[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotLineV(String labelId, double[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotLine(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -1696,21 +1696,21 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLine(String labelId, short[] xs, short[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1730,21 +1730,21 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLine(String labelId, int[] xs, int[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1764,21 +1764,21 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLine(String labelId, long[] xs, long[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1798,21 +1798,21 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLine(String labelId, float[] xs, float[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1832,21 +1832,21 @@ public final class ImPlot { } private static native void nPlotLine(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLine(String labelId, double[] xs, double[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1873,31 +1873,31 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, short[] xs, short[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, short[] xs, short[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, short[] xs, short[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1924,31 +1924,31 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, int[] xs, int[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, int[] xs, int[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, int[] xs, int[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -1975,31 +1975,31 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, long[] xs, long[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, long[] xs, long[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, long[] xs, long[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -2026,31 +2026,31 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, float[] xs, float[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, float[] xs, float[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, float[] xs, float[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -2077,31 +2077,31 @@ public final class ImPlot { } private static native void nPlotLineV(String labelId, double[] xs, double[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, double[] xs, double[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotLineV(String labelId, double[] xs, double[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotLine(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -2144,42 +2144,42 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, short[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, short[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, short[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, short[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2219,42 +2219,42 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, int[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, int[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, int[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, int[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2294,42 +2294,42 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, long[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, long[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, long[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, long[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2369,42 +2369,42 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, float[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, float[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, float[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, float[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2444,42 +2444,42 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, double[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, double[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, double[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatter(String labelId, double[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2519,42 +2519,42 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, short[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, short[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, short[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, short[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2594,42 +2594,42 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, int[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, int[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, int[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, int[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2669,42 +2669,42 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, long[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, long[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, long[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, long[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2744,42 +2744,42 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, float[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, float[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, float[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, float[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2819,42 +2819,42 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, double[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, double[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, double[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, double[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotScatter(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -2875,21 +2875,21 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatter(String labelId, short[] xs, short[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -2909,21 +2909,21 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatter(String labelId, int[] xs, int[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -2943,21 +2943,21 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatter(String labelId, long[] xs, long[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -2977,21 +2977,21 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatter(String labelId, float[] xs, float[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3011,21 +3011,21 @@ public final class ImPlot { } private static native void nPlotScatter(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatter(String labelId, double[] xs, double[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3052,31 +3052,31 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, short[] xs, short[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, short[] xs, short[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, short[] xs, short[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3103,31 +3103,31 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, int[] xs, int[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, int[] xs, int[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, int[] xs, int[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3154,31 +3154,31 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, long[] xs, long[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, long[] xs, long[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, long[] xs, long[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3205,31 +3205,31 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, float[] xs, float[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, float[] xs, float[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, float[] xs, float[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3256,31 +3256,31 @@ public final class ImPlot { } private static native void nPlotScatterV(String labelId, double[] xs, double[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, double[] xs, double[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotScatterV(String labelId, double[] xs, double[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotScatter(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -3323,42 +3323,42 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, short[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, short[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, short[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, short[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3398,42 +3398,42 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, int[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, int[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, int[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, int[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3473,42 +3473,42 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, long[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, long[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, long[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, long[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3548,42 +3548,42 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, float[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, float[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, float[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, float[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3623,42 +3623,42 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, double[] values, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, double[] values, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, double[] values, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairs(String labelId, double[] values, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], LEN(values), xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3698,42 +3698,42 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, short[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, short[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, short[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, short[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3773,42 +3773,42 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, int[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, int[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, int[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, int[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3848,42 +3848,42 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, long[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, long[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, long[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, long[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3923,42 +3923,42 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, float[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, float[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, float[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, float[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -3998,42 +3998,42 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, double[] values, int count, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, double[] values, int count, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, double[] values, int count, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, double[] values, int count, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStairs(labelId, &values[0], count, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -4054,21 +4054,21 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairs(String labelId, short[] xs, short[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4088,21 +4088,21 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairs(String labelId, int[] xs, int[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4122,21 +4122,21 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairs(String labelId, long[] xs, long[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4156,21 +4156,21 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairs(String labelId, float[] xs, float[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4190,21 +4190,21 @@ public final class ImPlot { } private static native void nPlotStairs(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairs(String labelId, double[] xs, double[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4231,31 +4231,31 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, short[] xs, short[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, short[] xs, short[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, short[] xs, short[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4282,31 +4282,31 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, int[] xs, int[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, int[] xs, int[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, int[] xs, int[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4333,31 +4333,31 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, long[] xs, long[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, long[] xs, long[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, long[] xs, long[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4384,31 +4384,31 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, float[] xs, float[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, float[] xs, float[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, float[] xs, float[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4435,31 +4435,31 @@ public final class ImPlot { } private static native void nPlotStairsV(String labelId, double[] xs, double[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, double[] xs, double[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStairsV(String labelId, double[] xs, double[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStairs(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -4509,50 +4509,50 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -4599,50 +4599,50 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -4689,50 +4689,50 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -4779,50 +4779,50 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -4869,50 +4869,50 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -4959,50 +4959,50 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] values, int count, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] values, int count, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] values, int count, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] values, int count, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -5049,50 +5049,50 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] values, int count, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] values, int count, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] values, int count, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] values, int count, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -5139,50 +5139,50 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] values, int count, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] values, int count, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] values, int count, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] values, int count, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -5229,50 +5229,50 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] values, int count, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] values, int count, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] values, int count, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] values, int count, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -5319,50 +5319,50 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] values, int count, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] values, int count, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] values, int count, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] values, int count, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotShaded(labelId, &values[0], count, yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -5397,41 +5397,41 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] xs, short[] ys, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] xs, short[] ys, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] xs, short[] ys, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5465,41 +5465,41 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] xs, int[] ys, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] xs, int[] ys, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] xs, int[] ys, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5533,41 +5533,41 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] xs, long[] ys, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] xs, long[] ys, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] xs, long[] ys, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5601,41 +5601,41 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] xs, float[] ys, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] xs, float[] ys, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] xs, float[] ys, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5669,41 +5669,41 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] xs, double[] ys, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] xs, double[] ys, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] xs, double[] ys, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], LEN(xs), yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5737,41 +5737,41 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, short[] xs, short[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] xs, short[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] xs, short[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] xs, short[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5805,41 +5805,41 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, int[] xs, int[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] xs, int[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] xs, int[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] xs, int[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5873,41 +5873,41 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, long[] xs, long[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] xs, long[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] xs, long[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] xs, long[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -5941,41 +5941,41 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, float[] xs, float[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] xs, float[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] xs, float[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] xs, float[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -6009,41 +6009,41 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, double[] xs, double[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] xs, double[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] xs, double[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] xs, double[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -6065,24 +6065,24 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, short[] xs, short[] ys1, short[] ys2); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShaded(String labelId, short[] xs, short[] ys1, short[] ys2, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6103,24 +6103,24 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, int[] xs, int[] ys1, int[] ys2); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShaded(String labelId, int[] xs, int[] ys1, int[] ys2, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6141,24 +6141,24 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, long[] xs, long[] ys1, long[] ys2); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShaded(String labelId, long[] xs, long[] ys1, long[] ys2, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6179,24 +6179,24 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, float[] xs, float[] ys1, float[] ys2); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShaded(String labelId, float[] xs, float[] ys1, float[] ys2, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6217,24 +6217,24 @@ public final class ImPlot { } private static native void nPlotShaded(String labelId, double[] xs, double[] ys1, double[] ys2); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShaded(String labelId, double[] xs, double[] ys1, double[] ys2, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6262,36 +6262,36 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, short[] xs, short[] ys1, short[] ys2, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] xs, short[] ys1, short[] ys2, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, short[] xs, short[] ys1, short[] ys2, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6319,36 +6319,36 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, int[] xs, int[] ys1, int[] ys2, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] xs, int[] ys1, int[] ys2, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, int[] xs, int[] ys1, int[] ys2, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6376,36 +6376,36 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, long[] xs, long[] ys1, long[] ys2, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] xs, long[] ys1, long[] ys2, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, long[] xs, long[] ys1, long[] ys2, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6433,36 +6433,36 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, float[] xs, float[] ys1, float[] ys2, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] xs, float[] ys1, float[] ys2, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, float[] xs, float[] ys1, float[] ys2, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6490,36 +6490,36 @@ public final class ImPlot { } private static native void nPlotShadedV(String labelId, double[] xs, double[] ys1, double[] ys2, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] xs, double[] ys1, double[] ys2, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); */ private static native void nPlotShadedV(String labelId, double[] xs, double[] ys1, double[] ys2, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys1 = obj_ys1 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys1, JNI_FALSE); auto ys2 = obj_ys2 == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys2, JNI_FALSE); ImPlot::PlotShaded(labelId, &xs[0], &ys1[0], &ys2[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys1 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys1, ys1, JNI_FALSE); if (ys2 != NULL) env->ReleasePrimitiveArrayCritical(obj_ys2, ys2, JNI_FALSE); @@ -6563,42 +6563,42 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, short[] values, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, short[] values, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, short[] values, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, short[] values, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -6638,42 +6638,42 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, int[] values, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, int[] values, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, int[] values, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, int[] values, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -6713,42 +6713,42 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, long[] values, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, long[] values, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, long[] values, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, long[] values, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -6788,42 +6788,42 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, float[] values, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, float[] values, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, float[] values, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, float[] values, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -6863,42 +6863,42 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, double[] values, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, double[] values, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, double[] values, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBars(String labelId, double[] values, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], LEN(values), barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -6938,42 +6938,42 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] values, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] values, int count, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] values, int count, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] values, int count, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -7013,42 +7013,42 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] values, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] values, int count, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] values, int count, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] values, int count, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -7088,42 +7088,42 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] values, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] values, int count, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] values, int count, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] values, int count, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -7163,42 +7163,42 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] values, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] values, int count, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] values, int count, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] values, int count, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -7238,42 +7238,42 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] values, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] values, int count, double barWidth, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] values, int count, double barWidth, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] values, int count, double barWidth, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBars(labelId, &values[0], count, barWidth, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -7301,31 +7301,31 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, short[] xs, short[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, short[] xs, short[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7352,31 +7352,31 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, int[] xs, int[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, int[] xs, int[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7403,31 +7403,31 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, long[] xs, long[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, long[] xs, long[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7454,31 +7454,31 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, float[] xs, float[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, float[] xs, float[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7505,31 +7505,31 @@ public final class ImPlot { } private static native void nPlotBars(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, double[] xs, double[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBars(String labelId, double[] xs, double[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), 0.67, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7556,31 +7556,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, short[] xs, short[] ys, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] xs, short[] ys, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] xs, short[] ys, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7607,31 +7607,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, int[] xs, int[] ys, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] xs, int[] ys, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] xs, int[] ys, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7658,31 +7658,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, long[] xs, long[] ys, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] xs, long[] ys, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] xs, long[] ys, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7709,31 +7709,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, float[] xs, float[] ys, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] xs, float[] ys, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] xs, float[] ys, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7760,31 +7760,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, double[] xs, double[] ys, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] xs, double[] ys, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] xs, double[] ys, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], LEN(xs), barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7811,31 +7811,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, short[] xs, short[] ys, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] xs, short[] ys, int count, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, short[] xs, short[] ys, int count, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7862,31 +7862,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, int[] xs, int[] ys, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] xs, int[] ys, int count, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, int[] xs, int[] ys, int count, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7913,31 +7913,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, long[] xs, long[] ys, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] xs, long[] ys, int count, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, long[] xs, long[] ys, int count, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -7964,31 +7964,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, float[] xs, float[] ys, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] xs, float[] ys, int count, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, float[] xs, float[] ys, int count, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -8015,31 +8015,31 @@ public final class ImPlot { } private static native void nPlotBarsV(String labelId, double[] xs, double[] ys, int count, double barWidth); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] xs, double[] ys, int count, double barWidth, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotBarsV(String labelId, double[] xs, double[] ys, int count, double barWidth, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotBars(labelId, &xs[0], &ys[0], count, barWidth, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -8076,14 +8076,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8092,14 +8092,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8108,14 +8108,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8124,14 +8124,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8168,14 +8168,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8184,14 +8184,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8200,14 +8200,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8216,14 +8216,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8260,14 +8260,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8276,14 +8276,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8292,14 +8292,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8308,14 +8308,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8352,14 +8352,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8368,14 +8368,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8384,14 +8384,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8400,14 +8400,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8444,14 +8444,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8460,14 +8460,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8476,14 +8476,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8492,14 +8492,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], LEN(values), groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8536,14 +8536,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8552,14 +8552,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8568,14 +8568,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8584,14 +8584,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8628,14 +8628,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8644,14 +8644,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8660,14 +8660,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8676,14 +8676,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8720,14 +8720,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8736,14 +8736,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8752,14 +8752,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8768,14 +8768,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8812,14 +8812,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8828,14 +8828,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8844,14 +8844,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8860,14 +8860,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8904,14 +8904,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8920,14 +8920,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8936,14 +8936,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8952,14 +8952,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotBarGroups(labelIds, &values[0], itemCount, groupCount, groupSize, shift, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -8986,36 +8986,36 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, short[] xs, short[] ys, short[] err); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, short[] xs, short[] ys, short[] err, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, short[] xs, short[] ys, short[] err, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9043,36 +9043,36 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, int[] xs, int[] ys, int[] err); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, int[] xs, int[] ys, int[] err, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, int[] xs, int[] ys, int[] err, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9100,36 +9100,36 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, long[] xs, long[] ys, long[] err); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, long[] xs, long[] ys, long[] err, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, long[] xs, long[] ys, long[] err, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9157,36 +9157,36 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, float[] xs, float[] ys, float[] err); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, float[] xs, float[] ys, float[] err, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, float[] xs, float[] ys, float[] err, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9214,36 +9214,36 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, double[] xs, double[] ys, double[] err); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, double[] xs, double[] ys, double[] err, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBars(String labelId, double[] xs, double[] ys, double[] err, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9271,36 +9271,36 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, short[] xs, short[] ys, short[] err, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, short[] xs, short[] ys, short[] err, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, short[] xs, short[] ys, short[] err, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9328,36 +9328,36 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, int[] xs, int[] ys, int[] err, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, int[] xs, int[] ys, int[] err, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, int[] xs, int[] ys, int[] err, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9385,36 +9385,36 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, long[] xs, long[] ys, long[] err, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, long[] xs, long[] ys, long[] err, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, long[] xs, long[] ys, long[] err, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9442,36 +9442,36 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, float[] xs, float[] ys, float[] err, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, float[] xs, float[] ys, float[] err, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, float[] xs, float[] ys, float[] err, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9499,36 +9499,36 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, double[] xs, double[] ys, double[] err, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, double[] xs, double[] ys, double[] err, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); */ private static native void nPlotErrorBarsV(String labelId, double[] xs, double[] ys, double[] err, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto err = obj_err == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_err, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &err[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (err != NULL) env->ReleasePrimitiveArrayCritical(obj_err, err, JNI_FALSE); @@ -9556,13 +9556,13 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, short[] xs, short[] ys, short[] neg, short[] pos); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9570,13 +9570,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, short[] xs, short[] ys, short[] neg, short[] pos, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9584,13 +9584,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, short[] xs, short[] ys, short[] neg, short[] pos, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9619,13 +9619,13 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, int[] xs, int[] ys, int[] neg, int[] pos); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9633,13 +9633,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, int[] xs, int[] ys, int[] neg, int[] pos, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9647,13 +9647,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, int[] xs, int[] ys, int[] neg, int[] pos, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9682,13 +9682,13 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, long[] xs, long[] ys, long[] neg, long[] pos); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9696,13 +9696,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, long[] xs, long[] ys, long[] neg, long[] pos, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9710,13 +9710,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, long[] xs, long[] ys, long[] neg, long[] pos, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9745,13 +9745,13 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, float[] xs, float[] ys, float[] neg, float[] pos); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9759,13 +9759,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, float[] xs, float[] ys, float[] neg, float[] pos, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9773,13 +9773,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, float[] xs, float[] ys, float[] neg, float[] pos, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9808,13 +9808,13 @@ public final class ImPlot { } private static native void nPlotErrorBars(String labelId, double[] xs, double[] ys, double[] neg, double[] pos); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9822,13 +9822,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, double[] xs, double[] ys, double[] neg, double[] pos, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9836,13 +9836,13 @@ public final class ImPlot { */ private static native void nPlotErrorBars(String labelId, double[] xs, double[] ys, double[] neg, double[] pos, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9871,13 +9871,13 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, short[] xs, short[] ys, short[] neg, short[] pos, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9885,13 +9885,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, short[] xs, short[] ys, short[] neg, short[] pos, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9899,13 +9899,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, short[] xs, short[] ys, short[] neg, short[] pos, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9934,13 +9934,13 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, int[] xs, int[] ys, int[] neg, int[] pos, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9948,13 +9948,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, int[] xs, int[] ys, int[] neg, int[] pos, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9962,13 +9962,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, int[] xs, int[] ys, int[] neg, int[] pos, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -9997,13 +9997,13 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, long[] xs, long[] ys, long[] neg, long[] pos, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10011,13 +10011,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, long[] xs, long[] ys, long[] neg, long[] pos, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10025,13 +10025,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, long[] xs, long[] ys, long[] neg, long[] pos, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10060,13 +10060,13 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, float[] xs, float[] ys, float[] neg, float[] pos, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10074,13 +10074,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, float[] xs, float[] ys, float[] neg, float[] pos, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10088,13 +10088,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, float[] xs, float[] ys, float[] neg, float[] pos, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10123,13 +10123,13 @@ public final class ImPlot { } private static native void nPlotErrorBarsV(String labelId, double[] xs, double[] ys, double[] neg, double[] pos, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10137,13 +10137,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, double[] xs, double[] ys, double[] neg, double[] pos, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10151,13 +10151,13 @@ public final class ImPlot { */ private static native void nPlotErrorBarsV(String labelId, double[] xs, double[] ys, double[] neg, double[] pos, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto neg = obj_neg == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_neg, JNI_FALSE); auto pos = obj_pos == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_pos, JNI_FALSE); ImPlot::PlotErrorBars(labelId, &xs[0], &ys[0], &neg[0], &pos[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); if (neg != NULL) env->ReleasePrimitiveArrayCritical(obj_neg, neg, JNI_FALSE); @@ -10209,50 +10209,50 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10299,50 +10299,50 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10389,50 +10389,50 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10479,50 +10479,50 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10569,50 +10569,50 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] values, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] values, double yRef, double xscale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] values, double yRef, double xscale, double xstart); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] values, double yRef, double xscale, double xstart, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] values, double yRef, double xscale, double xstart, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], LEN(values), yRef, xscale, xstart, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10659,50 +10659,50 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] values, int count, double yRef, double scale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] values, int count, double yRef, double scale, double start); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] values, int count, double yRef, double scale, double start, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] values, int count, double yRef, double scale, double start, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10749,50 +10749,50 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] values, int count, double yRef, double scale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] values, int count, double yRef, double scale, double start); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] values, int count, double yRef, double scale, double start, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] values, int count, double yRef, double scale, double start, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10839,50 +10839,50 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] values, int count, double yRef, double scale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] values, int count, double yRef, double scale, double start); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] values, int count, double yRef, double scale, double start, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] values, int count, double yRef, double scale, double start, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -10929,50 +10929,50 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] values, int count, double yRef, double scale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] values, int count, double yRef, double scale, double start); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] values, int count, double yRef, double scale, double start, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] values, int count, double yRef, double scale, double start, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11019,50 +11019,50 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] values, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] values, int count, double yRef, double scale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] values, int count, double yRef, double scale, double start); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] values, int count, double yRef, double scale, double start, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] values, int count, double yRef, double scale, double start, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotStems(labelId, &values[0], count, yRef, scale, start, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11097,41 +11097,41 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] xs, short[] ys, double ref); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] xs, short[] ys, double ref, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, short[] xs, short[] ys, double ref, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11165,41 +11165,41 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] xs, int[] ys, double ref); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] xs, int[] ys, double ref, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, int[] xs, int[] ys, double ref, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11233,41 +11233,41 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] xs, long[] ys, double ref); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] xs, long[] ys, double ref, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, long[] xs, long[] ys, double ref, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11301,41 +11301,41 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] xs, float[] ys, double ref); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] xs, float[] ys, double ref, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, float[] xs, float[] ys, double ref, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11369,41 +11369,41 @@ public final class ImPlot { } private static native void nPlotStems(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] xs, double[] ys, double ref); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] xs, double[] ys, double ref, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStems(String labelId, double[] xs, double[] ys, double ref, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], LEN(xs), ref, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11437,41 +11437,41 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, short[] xs, short[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] xs, short[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] xs, short[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, short[] xs, short[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11505,41 +11505,41 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, int[] xs, int[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] xs, int[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] xs, int[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, int[] xs, int[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11573,41 +11573,41 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, long[] xs, long[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] xs, long[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] xs, long[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, long[] xs, long[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11641,41 +11641,41 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, float[] xs, float[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] xs, float[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] xs, float[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, float[] xs, float[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11709,41 +11709,41 @@ public final class ImPlot { } private static native void nPlotStemsV(String labelId, double[] xs, double[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] xs, double[] ys, int count, double yRef); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] xs, double[] ys, int count, double yRef, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotStemsV(String labelId, double[] xs, double[] ys, int count, double yRef, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotStems(labelId, &xs[0], &ys[0], count, yRef, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -11770,26 +11770,26 @@ public final class ImPlot { } private static native void nPlotInfLines(String labelId, short[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, short[] values, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, short[] values, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11815,26 +11815,26 @@ public final class ImPlot { } private static native void nPlotInfLines(String labelId, int[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, int[] values, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, int[] values, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11860,26 +11860,26 @@ public final class ImPlot { } private static native void nPlotInfLines(String labelId, long[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, long[] values, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, long[] values, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11905,26 +11905,26 @@ public final class ImPlot { } private static native void nPlotInfLines(String labelId, float[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, float[] values, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, float[] values, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11950,26 +11950,26 @@ public final class ImPlot { } private static native void nPlotInfLines(String labelId, double[] values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, double[] values, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLines(String labelId, double[] values, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], LEN(values), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -11995,26 +11995,26 @@ public final class ImPlot { } private static native void nPlotInfLinesV(String labelId, short[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, short[] values, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, short[] values, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12040,26 +12040,26 @@ public final class ImPlot { } private static native void nPlotInfLinesV(String labelId, int[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, int[] values, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, int[] values, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12085,26 +12085,26 @@ public final class ImPlot { } private static native void nPlotInfLinesV(String labelId, long[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, long[] values, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, long[] values, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12130,26 +12130,26 @@ public final class ImPlot { } private static native void nPlotInfLinesV(String labelId, float[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, float[] values, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, float[] values, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12175,26 +12175,26 @@ public final class ImPlot { } private static native void nPlotInfLinesV(String labelId, double[] values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, double[] values, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotInfLinesV(String labelId, double[] values, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotInfLines(labelId, &values[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12237,14 +12237,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12253,68 +12253,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, short[] values, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, short[] values, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, short[] values, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12358,14 +12358,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12374,68 +12374,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, int[] values, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, int[] values, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, int[] values, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12479,14 +12479,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12495,68 +12495,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, long[] values, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, long[] values, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, long[] values, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12600,14 +12600,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12616,68 +12616,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, float[] values, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, float[] values, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, float[] values, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12721,14 +12721,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12737,68 +12737,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, double[] values, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, double[] values, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChart(String[] obj_labelIds, int labelIdsCount, double[] values, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], LEN(values), x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12842,14 +12842,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12858,68 +12858,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, short[] values, int count, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, short[] values, int count, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, short[] values, int count, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12963,14 +12963,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -12979,68 +12979,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, int[] values, int count, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, int[] values, int count, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, int[] values, int count, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13084,14 +13084,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13100,68 +13100,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, long[] values, int count, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, long[] values, int count, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, long[] values, int count, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13205,14 +13205,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13221,68 +13221,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, float[] values, int count, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, float[] values, int count, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, float[] values, int count, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13326,14 +13326,14 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13342,68 +13342,68 @@ public final class ImPlot { const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, double[] values, int count, double x, double y, double radius, String labelFmt, double angle0); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, double[] values, int count, double x, double y, double radius, String labelFmt, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, labelFmt, angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotPieChartV(String[] obj_labelIds, int labelIdsCount, double[] values, int count, double x, double y, double radius, double angle0, int flags); /*MANUAL const char* labelIds[labelIdsCount]; for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - auto rawStr = (char*)env->GetStringUTFChars(str, JNI_FALSE); + auto rawStr = Jni::ToTrueUtf8(env, str); labelIds[i] = rawStr; }; auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotPieChart(labelIds, &values[0], count, x, y, radius, "%.1f", angle0, flags); for (int i = 0; i < labelIdsCount; i++) { const jstring str = (jstring)env->GetObjectArrayElement(obj_labelIds, i); - env->ReleaseStringUTFChars(str, labelIds[i]); + Jni::FreeTrueUtf8((char*)labelIds[i]); }; if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13493,74 +13493,74 @@ public final class ImPlot { } private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin, double scaleMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, short[] values, int rows, int cols, double scaleMin, double scaleMax, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, "%.1f", ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13649,74 +13649,74 @@ public final class ImPlot { } private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin, double scaleMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, int[] values, int rows, int cols, double scaleMin, double scaleMax, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, "%.1f", ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13805,74 +13805,74 @@ public final class ImPlot { } private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin, double scaleMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, long[] values, int rows, int cols, double scaleMin, double scaleMax, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, "%.1f", ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -13961,74 +13961,74 @@ public final class ImPlot { } private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin, double scaleMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, float[] values, int rows, int cols, double scaleMin, double scaleMax, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, "%.1f", ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -14117,74 +14117,74 @@ public final class ImPlot { } private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin, double scaleMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin, double scaleMax, String labelFmt, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); - auto labelFmt = obj_labelFmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelFmt, JNI_FALSE); + auto labelFmt = obj_labelFmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelFmt); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, labelFmt, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); - if (labelFmt != NULL) env->ReleaseStringUTFChars(obj_labelFmt, labelFmt); + if (labelFmt != NULL) Jni::FreeTrueUtf8(labelFmt); */ private static native void nPlotHeatmap(String labelId, double[] values, int rows, int cols, double scaleMin, double scaleMax, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); ImPlot::PlotHeatmap(labelId, &values[0], rows, cols, scaleMin, scaleMax, "%.1f", ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); */ @@ -14279,64 +14279,64 @@ public final class ImPlot { } private static native double nPlotHistogram(String obj_labelId, short[] obj_values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, short[] obj_values, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, short[] obj_values, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, short[] obj_values, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, short[] obj_values, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, short[] obj_values, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), ImPlotBin_Sturges, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, short[] obj_values, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -14432,64 +14432,64 @@ public final class ImPlot { } private static native double nPlotHistogram(String obj_labelId, int[] obj_values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, int[] obj_values, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, int[] obj_values, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, int[] obj_values, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, int[] obj_values, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, int[] obj_values, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), ImPlotBin_Sturges, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, int[] obj_values, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -14585,64 +14585,64 @@ public final class ImPlot { } private static native double nPlotHistogram(String obj_labelId, long[] obj_values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, long[] obj_values, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, long[] obj_values, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, long[] obj_values, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, long[] obj_values, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, long[] obj_values, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), ImPlotBin_Sturges, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, long[] obj_values, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -14738,64 +14738,64 @@ public final class ImPlot { } private static native double nPlotHistogram(String obj_labelId, float[] obj_values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, float[] obj_values, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, float[] obj_values, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, float[] obj_values, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, float[] obj_values, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, float[] obj_values, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), ImPlotBin_Sturges, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, float[] obj_values, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -14891,64 +14891,64 @@ public final class ImPlot { } private static native double nPlotHistogram(String obj_labelId, double[] obj_values); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, double[] obj_values, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, double[] obj_values, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, double[] obj_values, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, double[] obj_values, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, double[] obj_values, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), ImPlotBin_Sturges, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogram(String obj_labelId, double[] obj_values, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], LEN(values), bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -15026,55 +15026,55 @@ public final class ImPlot { } private static native double nPlotHistogramV(String obj_labelId, short[] obj_values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, short[] obj_values, int count, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, short[] obj_values, int count, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, short[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, short[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, short[] obj_values, int count, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -15152,55 +15152,55 @@ public final class ImPlot { } private static native double nPlotHistogramV(String obj_labelId, int[] obj_values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, int[] obj_values, int count, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, int[] obj_values, int count, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, int[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, int[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, int[] obj_values, int count, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -15278,55 +15278,55 @@ public final class ImPlot { } private static native double nPlotHistogramV(String obj_labelId, long[] obj_values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, long[] obj_values, int count, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, long[] obj_values, int count, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, long[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, long[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, long[] obj_values, int count, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -15404,55 +15404,55 @@ public final class ImPlot { } private static native double nPlotHistogramV(String obj_labelId, float[] obj_values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, float[] obj_values, int count, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, float[] obj_values, int count, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, float[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, float[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, float[] obj_values, int count, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -15530,55 +15530,55 @@ public final class ImPlot { } private static native double nPlotHistogramV(String obj_labelId, double[] obj_values, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, double[] obj_values, int count, int bins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, double[] obj_values, int count, int bins, double barScale); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, double[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, double[] obj_values, int count, int bins, double barScale, double rangeMin, double rangeMax, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(rangeMin, rangeMax), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ private static native double nPlotHistogramV(String obj_labelId, double[] obj_values, int count, int bins, double barScale, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto values = obj_values == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_values, JNI_FALSE); auto _result = ImPlot::PlotHistogram(labelId, &values[0], count, bins, barScale, ImPlotRange(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (values != NULL) env->ReleasePrimitiveArrayCritical(obj_values, values, JNI_FALSE); return _result; */ @@ -15656,66 +15656,66 @@ public final class ImPlot { } private static native double nPlotHistogram2D(String obj_labelId, short[] obj_xs, short[] obj_ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, short[] obj_xs, short[] obj_ys, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, short[] obj_xs, short[] obj_ys, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, short[] obj_xs, short[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, short[] obj_xs, short[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, short[] obj_xs, short[] obj_ys, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -15794,66 +15794,66 @@ public final class ImPlot { } private static native double nPlotHistogram2D(String obj_labelId, int[] obj_xs, int[] obj_ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, int[] obj_xs, int[] obj_ys, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, int[] obj_xs, int[] obj_ys, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, int[] obj_xs, int[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, int[] obj_xs, int[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, int[] obj_xs, int[] obj_ys, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -15932,66 +15932,66 @@ public final class ImPlot { } private static native double nPlotHistogram2D(String obj_labelId, long[] obj_xs, long[] obj_ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, long[] obj_xs, long[] obj_ys, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, long[] obj_xs, long[] obj_ys, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, long[] obj_xs, long[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, long[] obj_xs, long[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, long[] obj_xs, long[] obj_ys, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16070,66 +16070,66 @@ public final class ImPlot { } private static native double nPlotHistogram2D(String obj_labelId, float[] obj_xs, float[] obj_ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, float[] obj_xs, float[] obj_ys, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, float[] obj_xs, float[] obj_ys, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, float[] obj_xs, float[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, float[] obj_xs, float[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, float[] obj_xs, float[] obj_ys, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16208,66 +16208,66 @@ public final class ImPlot { } private static native double nPlotHistogram2D(String obj_labelId, double[] obj_xs, double[] obj_ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, double[] obj_xs, double[] obj_ys, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, double[] obj_xs, double[] obj_ys, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, double[] obj_xs, double[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, double[] obj_xs, double[] obj_ys, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2D(String obj_labelId, double[] obj_xs, double[] obj_ys, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], LEN(xs), xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16346,66 +16346,66 @@ public final class ImPlot { } private static native double nPlotHistogram2DV(String obj_labelId, short[] obj_xs, short[] obj_ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, short[] obj_xs, short[] obj_ys, int count, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, short[] obj_xs, short[] obj_ys, int count, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, short[] obj_xs, short[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, short[] obj_xs, short[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, short[] obj_xs, short[] obj_ys, int count, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16484,66 +16484,66 @@ public final class ImPlot { } private static native double nPlotHistogram2DV(String obj_labelId, int[] obj_xs, int[] obj_ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, int[] obj_xs, int[] obj_ys, int count, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, int[] obj_xs, int[] obj_ys, int count, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, int[] obj_xs, int[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, int[] obj_xs, int[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, int[] obj_xs, int[] obj_ys, int count, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16622,66 +16622,66 @@ public final class ImPlot { } private static native double nPlotHistogram2DV(String obj_labelId, long[] obj_xs, long[] obj_ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, long[] obj_xs, long[] obj_ys, int count, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, long[] obj_xs, long[] obj_ys, int count, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, long[] obj_xs, long[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, long[] obj_xs, long[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, long[] obj_xs, long[] obj_ys, int count, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16760,66 +16760,66 @@ public final class ImPlot { } private static native double nPlotHistogram2DV(String obj_labelId, float[] obj_xs, float[] obj_ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, float[] obj_xs, float[] obj_ys, int count, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, float[] obj_xs, float[] obj_ys, int count, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, float[] obj_xs, float[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, float[] obj_xs, float[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, float[] obj_xs, float[] obj_ys, int count, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16898,66 +16898,66 @@ public final class ImPlot { } private static native double nPlotHistogram2DV(String obj_labelId, double[] obj_xs, double[] obj_ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, double[] obj_xs, double[] obj_ys, int count, int xBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, double[] obj_xs, double[] obj_ys, int count, int xBins, int yBins); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, double[] obj_xs, double[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, double[] obj_xs, double[] obj_ys, int count, int xBins, int yBins, double rangeMinX, double rangeMinY, double rangeMaxX, double rangeMaxY, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(rangeMinX, rangeMinY, rangeMaxX, rangeMaxY), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; */ private static native double nPlotHistogram2DV(String obj_labelId, double[] obj_xs, double[] obj_ys, int count, int xBins, int yBins, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); auto _result = ImPlot::PlotHistogram2D(labelId, &xs[0], &ys[0], count, xBins, yBins, ImPlotRect(), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); return _result; @@ -16985,31 +16985,31 @@ public final class ImPlot { } private static native void nPlotDigital(String labelId, short[] xs, short[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, short[] xs, short[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, short[] xs, short[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17036,31 +17036,31 @@ public final class ImPlot { } private static native void nPlotDigital(String labelId, int[] xs, int[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, int[] xs, int[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, int[] xs, int[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17087,31 +17087,31 @@ public final class ImPlot { } private static native void nPlotDigital(String labelId, long[] xs, long[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, long[] xs, long[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, long[] xs, long[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17138,31 +17138,31 @@ public final class ImPlot { } private static native void nPlotDigital(String labelId, float[] xs, float[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, float[] xs, float[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, float[] xs, float[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17189,31 +17189,31 @@ public final class ImPlot { } private static native void nPlotDigital(String labelId, double[] xs, double[] ys); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, double[] xs, double[] ys, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigital(String labelId, double[] xs, double[] ys, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], LEN(xs), flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17240,31 +17240,31 @@ public final class ImPlot { } private static native void nPlotDigitalV(String labelId, short[] xs, short[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, short[] xs, short[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, short[] xs, short[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (short*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17291,31 +17291,31 @@ public final class ImPlot { } private static native void nPlotDigitalV(String labelId, int[] xs, int[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, int[] xs, int[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, int[] xs, int[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17342,31 +17342,31 @@ public final class ImPlot { } private static native void nPlotDigitalV(String labelId, long[] xs, long[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, long[] xs, long[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, long[] xs, long[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (long*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17393,31 +17393,31 @@ public final class ImPlot { } private static native void nPlotDigitalV(String labelId, float[] xs, float[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, float[] xs, float[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, float[] xs, float[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17444,31 +17444,31 @@ public final class ImPlot { } private static native void nPlotDigitalV(String labelId, double[] xs, double[] ys, int count); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, double[] xs, double[] ys, int count, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ private static native void nPlotDigitalV(String labelId, double[] xs, double[] ys, int count, int flags, int offset); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto xs = obj_xs == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_xs, JNI_FALSE); auto ys = obj_ys == NULL ? NULL : (double*)env->GetPrimitiveArrayCritical(obj_ys, JNI_FALSE); ImPlot::PlotDigital(labelId, &xs[0], &ys[0], count, flags, offset); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); if (xs != NULL) env->ReleasePrimitiveArrayCritical(obj_xs, xs, JNI_FALSE); if (ys != NULL) env->ReleasePrimitiveArrayCritical(obj_ys, ys, JNI_FALSE); */ @@ -17572,42 +17572,42 @@ public final class ImPlot { } private static native void nPlotImage(String labelId, long userTextureId, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); ImPlot::PlotImage(labelId, (ImTextureID)(uintptr_t)userTextureId, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY)); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); */ private static native void nPlotImage(String labelId, long userTextureId, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, float uv0X, float uv0Y); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImPlot::PlotImage(labelId, (ImTextureID)(uintptr_t)userTextureId, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), uv0); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); */ private static native void nPlotImage(String labelId, long userTextureId, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, float uv0X, float uv0Y, float uv1X, float uv1Y); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImVec2 uv1 = ImVec2(uv1X, uv1Y); ImPlot::PlotImage(labelId, (ImTextureID)(uintptr_t)userTextureId, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), uv0, uv1); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); */ private static native void nPlotImage(String labelId, long userTextureId, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, float uv0X, float uv0Y, float uv1X, float uv1Y, float tintColX, float tintColY, float tintColZ, float tintColW); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImVec2 uv1 = ImVec2(uv1X, uv1Y); ImVec4 tintCol = ImVec4(tintColX, tintColY, tintColZ, tintColW); ImPlot::PlotImage(labelId, (ImTextureID)(uintptr_t)userTextureId, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), uv0, uv1, tintCol); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); */ private static native void nPlotImage(String labelId, long userTextureId, double boundsMinX, double boundsMinY, double boundsMaxX, double boundsMaxY, float uv0X, float uv0Y, float uv1X, float uv1Y, float tintColX, float tintColY, float tintColZ, float tintColW, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); ImVec2 uv0 = ImVec2(uv0X, uv0Y); ImVec2 uv1 = ImVec2(uv1X, uv1Y); ImVec4 tintCol = ImVec4(tintColX, tintColY, tintColZ, tintColW); ImPlot::PlotImage(labelId, (ImTextureID)(uintptr_t)userTextureId, ImPlotPoint(boundsMinX, boundsMinY), ImPlotPoint(boundsMaxX, boundsMaxY), uv0, uv1, tintCol, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); */ /** @@ -17653,29 +17653,29 @@ public final class ImPlot { } private static native void nPlotText(String text, double x, double y); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImPlot::PlotText(text, x, y); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native void nPlotText(String text, double x, double y, float pixOffsetX, float pixOffsetY); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImVec2 pixOffset = ImVec2(pixOffsetX, pixOffsetY); ImPlot::PlotText(text, x, y, pixOffset); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native void nPlotText(String text, double x, double y, float pixOffsetX, float pixOffsetY, int flags); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImVec2 pixOffset = ImVec2(pixOffsetX, pixOffsetY); ImPlot::PlotText(text, x, y, pixOffset, flags); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ private static native void nPlotText(String text, double x, double y, int flags); /*MANUAL - auto text = obj_text == NULL ? NULL : (char*)env->GetStringUTFChars(obj_text, JNI_FALSE); + auto text = obj_text == NULL ? NULL : Jni::ToTrueUtf8(env, obj_text); ImPlot::PlotText(text, x, y, ImVec2(0,0), flags); - if (text != NULL) env->ReleaseStringUTFChars(obj_text, text); + if (text != NULL) Jni::FreeTrueUtf8(text); */ /** @@ -17693,15 +17693,15 @@ public final class ImPlot { } private static native void nPlotDummy(String labelID); /*MANUAL - auto labelID = obj_labelID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelID, JNI_FALSE); + auto labelID = obj_labelID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelID); ImPlot::PlotDummy(labelID); - if (labelID != NULL) env->ReleaseStringUTFChars(obj_labelID, labelID); + if (labelID != NULL) Jni::FreeTrueUtf8(labelID); */ private static native void nPlotDummy(String labelID, int flags); /*MANUAL - auto labelID = obj_labelID == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelID, JNI_FALSE); + auto labelID = obj_labelID == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelID); ImPlot::PlotDummy(labelID, flags); - if (labelID != NULL) env->ReleaseStringUTFChars(obj_labelID, labelID); + if (labelID != NULL) Jni::FreeTrueUtf8(labelID); */ /*JNI @@ -18106,11 +18106,11 @@ public final class ImPlot { } private static native void nAnnotation(double x, double y, float colX, float colY, float colZ, float colW, float pixOffsetX, float pixOffsetY, boolean clamp, String fmt); /*MANUAL - auto fmt = obj_fmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fmt, JNI_FALSE); + auto fmt = obj_fmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fmt); ImVec4 col = ImVec4(colX, colY, colZ, colW); ImVec2 pixOffset = ImVec2(pixOffsetX, pixOffsetY); ImPlot::Annotation(x, y, col, pixOffset, clamp, fmt, NULL); - if (fmt != NULL) env->ReleaseStringUTFChars(obj_fmt, fmt); + if (fmt != NULL) Jni::FreeTrueUtf8(fmt); */ /** @@ -18166,10 +18166,10 @@ public final class ImPlot { } private static native void nTagX(double x, float colX, float colY, float colZ, float colW, String fmt); /*MANUAL - auto fmt = obj_fmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fmt, JNI_FALSE); + auto fmt = obj_fmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fmt); ImVec4 col = ImVec4(colX, colY, colZ, colW); ImPlot::TagX(x, col, fmt, NULL); - if (fmt != NULL) env->ReleaseStringUTFChars(obj_fmt, fmt); + if (fmt != NULL) Jni::FreeTrueUtf8(fmt); */ /** @@ -18225,10 +18225,10 @@ public final class ImPlot { } private static native void nTagY(double y, float colX, float colY, float colZ, float colW, String fmt); /*MANUAL - auto fmt = obj_fmt == NULL ? NULL : (char*)env->GetStringUTFChars(obj_fmt, JNI_FALSE); + auto fmt = obj_fmt == NULL ? NULL : Jni::ToTrueUtf8(env, obj_fmt); ImVec4 col = ImVec4(colX, colY, colZ, colW); ImPlot::TagY(y, col, fmt, NULL); - if (fmt != NULL) env->ReleaseStringUTFChars(obj_fmt, fmt); + if (fmt != NULL) Jni::FreeTrueUtf8(fmt); */ //----------------------------------------------------------------------------- @@ -18973,16 +18973,16 @@ public final class ImPlot { } private static native boolean nBeginAlignedPlots(String obj_groupId); /*MANUAL - auto groupId = obj_groupId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_groupId, JNI_FALSE); + auto groupId = obj_groupId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_groupId); auto _result = ImPlot::BeginAlignedPlots(groupId); - if (groupId != NULL) env->ReleaseStringUTFChars(obj_groupId, groupId); + if (groupId != NULL) Jni::FreeTrueUtf8(groupId); return _result; */ private static native boolean nBeginAlignedPlots(String obj_groupId, boolean vertical); /*MANUAL - auto groupId = obj_groupId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_groupId, JNI_FALSE); + auto groupId = obj_groupId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_groupId); auto _result = ImPlot::BeginAlignedPlots(groupId, vertical); - if (groupId != NULL) env->ReleaseStringUTFChars(obj_groupId, groupId); + if (groupId != NULL) Jni::FreeTrueUtf8(groupId); return _result; */ @@ -19016,16 +19016,16 @@ public final class ImPlot { } private static native boolean nBeginLegendPopup(String obj_labelId); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto _result = ImPlot::BeginLegendPopup(labelId); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); return _result; */ private static native boolean nBeginLegendPopup(String obj_labelId, int mouseButton); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto _result = ImPlot::BeginLegendPopup(labelId, mouseButton); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); return _result; */ @@ -19048,9 +19048,9 @@ public final class ImPlot { } private static native boolean nIsLegendEntryHovered(String obj_labelId); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto _result = ImPlot::IsLegendEntryHovered(labelId); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); return _result; */ @@ -19173,16 +19173,16 @@ public final class ImPlot { } private static native boolean nBeginDragDropSourceItem(String obj_labelId); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto _result = ImPlot::BeginDragDropSourceItem(labelId); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); return _result; */ private static native boolean nBeginDragDropSourceItem(String obj_labelId, int flags); /*MANUAL - auto labelId = obj_labelId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelId, JNI_FALSE); + auto labelId = obj_labelId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelId); auto _result = ImPlot::BeginDragDropSourceItem(labelId, flags); - if (labelId != NULL) env->ReleaseStringUTFChars(obj_labelId, labelId); + if (labelId != NULL) Jni::FreeTrueUtf8(labelId); return _result; */ @@ -19877,7 +19877,7 @@ public final class ImPlot { } private static native int nAddColormap(String obj_name, ImVec4[] obj_cols); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); int colsLength = env->GetArrayLength(obj_cols); ImVec4 cols[colsLength]; for (int i = 0; i < colsLength; i++) { @@ -19887,12 +19887,12 @@ public final class ImPlot { cols[i] = dst; }; auto _result = ImPlot::AddColormap(name, cols, env->GetArrayLength(obj_cols)); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); return _result; */ private static native int nAddColormap(String obj_name, ImVec4[] obj_cols, boolean qual); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); int colsLength = env->GetArrayLength(obj_cols); ImVec4 cols[colsLength]; for (int i = 0; i < colsLength; i++) { @@ -19902,7 +19902,7 @@ public final class ImPlot { cols[i] = dst; }; auto _result = ImPlot::AddColormap(name, cols, env->GetArrayLength(obj_cols), qual); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); return _result; */ @@ -19915,19 +19915,19 @@ public final class ImPlot { } private static native int nAddColormap(String obj_name, int[] obj_cols); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto cols = obj_cols == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_cols, JNI_FALSE); auto _result = ImPlot::AddColormap(name, reinterpret_cast(&cols[0]), env->GetArrayLength(obj_cols)); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); if (cols != NULL) env->ReleasePrimitiveArrayCritical(obj_cols, cols, JNI_FALSE); return _result; */ private static native int nAddColormap(String obj_name, int[] obj_cols, boolean qual); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto cols = obj_cols == NULL ? NULL : (int*)env->GetPrimitiveArrayCritical(obj_cols, JNI_FALSE); auto _result = ImPlot::AddColormap(name, reinterpret_cast(&cols[0]), env->GetArrayLength(obj_cols), qual); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); if (cols != NULL) env->ReleasePrimitiveArrayCritical(obj_cols, cols, JNI_FALSE); return _result; */ @@ -19962,9 +19962,9 @@ public final class ImPlot { } private static native int nGetColormapIndex(String obj_name); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto _result = ImPlot::GetColormapIndex(name); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); return _result; */ @@ -19987,9 +19987,9 @@ public final class ImPlot { } private static native void nPushColormap(String name); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); ImPlot::PushColormap(name); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); */ /** @@ -20454,64 +20454,64 @@ public final class ImPlot { } private static native void nColormapScale(String label, double scaleMin, double scaleMax); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImPlot::ColormapScale(label, scaleMin, scaleMax); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); ImPlot::ColormapScale(label, scaleMin, scaleMax, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, float sizeX, float sizeY, String format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); ImPlot::ColormapScale(label, scaleMin, scaleMax, size, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (format != NULL) Jni::FreeTrueUtf8(format); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, float sizeX, float sizeY, String format, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); ImPlot::ColormapScale(label, scaleMin, scaleMax, size, format, flags); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (format != NULL) Jni::FreeTrueUtf8(format); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, float sizeX, float sizeY, String format, int flags, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImVec2 size = ImVec2(sizeX, sizeY); ImPlot::ColormapScale(label, scaleMin, scaleMax, size, format, flags, cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (format != NULL) Jni::FreeTrueUtf8(format); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, String format, int flags, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); ImPlot::ColormapScale(label, scaleMin, scaleMax, ImVec2(0,0), format, flags, cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (format != NULL) Jni::FreeTrueUtf8(format); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, int flags, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImPlot::ColormapScale(label, scaleMin, scaleMax, ImVec2(0,0), "%g", flags, cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ private static native void nColormapScale(String label, double scaleMin, double scaleMax, float sizeX, float sizeY, int flags, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); ImPlot::ColormapScale(label, scaleMin, scaleMax, size, "%g", flags, cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); */ /** @@ -20547,41 +20547,41 @@ public final class ImPlot { } private static native boolean nColormapSlider(String obj_label, float[] obj_t); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto t = obj_t == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_t, JNI_FALSE); auto _result = ImPlot::ColormapSlider(label, (t != NULL ? &t[0] : NULL), NULL); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (t != NULL) env->ReleasePrimitiveArrayCritical(obj_t, t, JNI_FALSE); return _result; */ private static native boolean nColormapSlider(String obj_label, float[] obj_t, String obj_format); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto t = obj_t == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_t, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImPlot::ColormapSlider(label, (t != NULL ? &t[0] : NULL), NULL, format); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (t != NULL) env->ReleasePrimitiveArrayCritical(obj_t, t, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nColormapSlider(String obj_label, float[] obj_t, String obj_format, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto t = obj_t == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_t, JNI_FALSE); - auto format = obj_format == NULL ? NULL : (char*)env->GetStringUTFChars(obj_format, JNI_FALSE); + auto format = obj_format == NULL ? NULL : Jni::ToTrueUtf8(env, obj_format); auto _result = ImPlot::ColormapSlider(label, (t != NULL ? &t[0] : NULL), NULL, format, cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (t != NULL) env->ReleasePrimitiveArrayCritical(obj_t, t, JNI_FALSE); - if (format != NULL) env->ReleaseStringUTFChars(obj_format, format); + if (format != NULL) Jni::FreeTrueUtf8(format); return _result; */ private static native boolean nColormapSlider(String obj_label, float[] obj_t, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto t = obj_t == NULL ? NULL : (float*)env->GetPrimitiveArrayCritical(obj_t, JNI_FALSE); auto _result = ImPlot::ColormapSlider(label, (t != NULL ? &t[0] : NULL), NULL, "", cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); if (t != NULL) env->ReleasePrimitiveArrayCritical(obj_t, t, JNI_FALSE); return _result; */ @@ -20629,32 +20629,32 @@ public final class ImPlot { } private static native boolean nColormapButton(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImPlot::ColormapButton(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nColormapButton(String obj_label, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::ColormapButton(label, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nColormapButton(String obj_label, float sizeX, float sizeY, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImPlot::ColormapButton(label, size, cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nColormapButton(String obj_label, int cmap); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImPlot::ColormapButton(label, ImVec2(0,0), cmap); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -20689,9 +20689,9 @@ public final class ImPlot { */ private static native void nBustColorCache(String plotTitleId); /*MANUAL - auto plotTitleId = obj_plotTitleId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_plotTitleId, JNI_FALSE); + auto plotTitleId = obj_plotTitleId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_plotTitleId); ImPlot::BustColorCache(plotTitleId); - if (plotTitleId != NULL) env->ReleaseStringUTFChars(obj_plotTitleId, plotTitleId); + if (plotTitleId != NULL) Jni::FreeTrueUtf8(plotTitleId); */ //----------------------------------------------------------------------------- @@ -20847,9 +20847,9 @@ public final class ImPlot { } private static native boolean nShowStyleSelector(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImPlot::ShowStyleSelector(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -20861,9 +20861,9 @@ public final class ImPlot { } private static native boolean nShowColormapSelector(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImPlot::ShowColormapSelector(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -20875,9 +20875,9 @@ public final class ImPlot { } private static native boolean nShowInputMapSelector(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImPlot::ShowInputMapSelector(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ diff --git a/imgui-binding/src/generated/java/imgui/extension/memedit/MemoryEditor.java b/imgui-binding/src/generated/java/imgui/extension/memedit/MemoryEditor.java index 56ebf43..af632a4 100644 --- a/imgui-binding/src/generated/java/imgui/extension/memedit/MemoryEditor.java +++ b/imgui-binding/src/generated/java/imgui/extension/memedit/MemoryEditor.java @@ -263,15 +263,15 @@ public final class MemoryEditor extends ImGuiStructDestroyable { } private native void nDrawWindow(String title, long memData, long memSize); /*MANUAL - auto title = obj_title == NULL ? NULL : (char*)env->GetStringUTFChars(obj_title, JNI_FALSE); + auto title = obj_title == NULL ? NULL : Jni::ToTrueUtf8(env, obj_title); THIS->DrawWindow(title, reinterpret_cast(memData), memSize); - if (title != NULL) env->ReleaseStringUTFChars(obj_title, title); + if (title != NULL) Jni::FreeTrueUtf8(title); */ private native void nDrawWindow(String title, long memData, long memSize, long baseDisplayAddr); /*MANUAL - auto title = obj_title == NULL ? NULL : (char*)env->GetStringUTFChars(obj_title, JNI_FALSE); + auto title = obj_title == NULL ? NULL : Jni::ToTrueUtf8(env, obj_title); THIS->DrawWindow(title, reinterpret_cast(memData), memSize, baseDisplayAddr); - if (title != NULL) env->ReleaseStringUTFChars(obj_title, title); + if (title != NULL) Jni::FreeTrueUtf8(title); */ public void drawContents(final long memData, final long memSize) { diff --git a/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditor.java b/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditor.java index d5d3415..d4f2570 100644 --- a/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditor.java +++ b/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditor.java @@ -183,16 +183,16 @@ public final class NodeEditor { } private static native void nBegin(String id); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ax::NodeEditor::Begin(id); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); */ private static native void nBegin(String id, float sizeX, float sizeY); /*MANUAL - auto id = obj_id == NULL ? NULL : (char*)env->GetStringUTFChars(obj_id, JNI_FALSE); + auto id = obj_id == NULL ? NULL : Jni::ToTrueUtf8(env, obj_id); ImVec2 size = ImVec2(sizeX, sizeY); ax::NodeEditor::Begin(id, size); - if (id != NULL) env->ReleaseStringUTFChars(obj_id, id); + if (id != NULL) Jni::FreeTrueUtf8(id); */ public static void end() { diff --git a/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditorConfig.java b/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditorConfig.java index 867dc3b..410e656 100644 --- a/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditorConfig.java +++ b/imgui-binding/src/generated/java/imgui/extension/nodeditor/NodeEditorConfig.java @@ -30,9 +30,9 @@ public final class NodeEditorConfig extends ImGuiStructDestroyable { */ private native void nSetSettingsFile(String value); /*MANUAL - auto value = obj_value == NULL ? NULL : (char*)env->GetStringUTFChars(obj_value, JNI_FALSE); + auto value = obj_value == NULL ? NULL : Jni::ToTrueUtf8(env, obj_value); SET_STRING_FIELD(THIS->SettingsFile, value); - if (value != NULL) env->ReleaseStringUTFChars(obj_value, value); + if (value != NULL) Jni::FreeTrueUtf8(value); */ public int getCanvasSizeMode() { diff --git a/imgui-binding/src/generated/java/imgui/internal/ImGui.java b/imgui-binding/src/generated/java/imgui/internal/ImGui.java index fe5f6fe..1682701 100644 --- a/imgui-binding/src/generated/java/imgui/internal/ImGui.java +++ b/imgui-binding/src/generated/java/imgui/internal/ImGui.java @@ -62,9 +62,9 @@ public final class ImGui extends imgui.ImGui { } private static native long nFindWindowByName(String obj_name); /*MANUAL - auto name = obj_name == NULL ? NULL : (char*)env->GetStringUTFChars(obj_name, JNI_FALSE); + auto name = obj_name == NULL ? NULL : Jni::ToTrueUtf8(env, obj_name); auto _result = (uintptr_t)ImGui::FindWindowByName(name); - if (name != NULL) env->ReleaseStringUTFChars(obj_name, name); + if (name != NULL) Jni::FreeTrueUtf8(name); return _result; */ @@ -723,11 +723,11 @@ public final class ImGui extends imgui.ImGui { } private static native int nGetIDWithSeed(String obj_strIdBegin, String obj_strIdEnd, int seed); /*MANUAL - auto strIdBegin = obj_strIdBegin == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strIdBegin, JNI_FALSE); - auto strIdEnd = obj_strIdEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strIdEnd, JNI_FALSE); + auto strIdBegin = obj_strIdBegin == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strIdBegin); + auto strIdEnd = obj_strIdEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strIdEnd); auto _result = ImGui::GetIDWithSeed(strIdBegin, strIdEnd, seed); - if (strIdBegin != NULL) env->ReleaseStringUTFChars(obj_strIdBegin, strIdBegin); - if (strIdEnd != NULL) env->ReleaseStringUTFChars(obj_strIdEnd, strIdEnd); + if (strIdBegin != NULL) Jni::FreeTrueUtf8(strIdBegin); + if (strIdEnd != NULL) Jni::FreeTrueUtf8(strIdEnd); return _result; */ @@ -969,9 +969,9 @@ public final class ImGui extends imgui.ImGui { } private static native void nDockBuilderDockWindow(String windowName, int nodeId); /*MANUAL - auto windowName = obj_windowName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_windowName, JNI_FALSE); + auto windowName = obj_windowName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_windowName); ImGui::DockBuilderDockWindow(windowName, nodeId); - if (windowName != NULL) env->ReleaseStringUTFChars(obj_windowName, windowName); + if (windowName != NULL) Jni::FreeTrueUtf8(windowName); */ public static ImGuiDockNode dockBuilderGetNode(final int nodeId) { @@ -1101,11 +1101,11 @@ public final class ImGui extends imgui.ImGui { } private static native void nDockBuilderCopyWindowSettings(String srcName, String dstName); /*MANUAL - auto srcName = obj_srcName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_srcName, JNI_FALSE); - auto dstName = obj_dstName == NULL ? NULL : (char*)env->GetStringUTFChars(obj_dstName, JNI_FALSE); + auto srcName = obj_srcName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_srcName); + auto dstName = obj_dstName == NULL ? NULL : Jni::ToTrueUtf8(env, obj_dstName); ImGui::DockBuilderCopyWindowSettings(srcName, dstName); - if (srcName != NULL) env->ReleaseStringUTFChars(obj_srcName, srcName); - if (dstName != NULL) env->ReleaseStringUTFChars(obj_dstName, dstName); + if (srcName != NULL) Jni::FreeTrueUtf8(srcName); + if (dstName != NULL) Jni::FreeTrueUtf8(dstName); */ public static void dockBuilderFinish(final int nodeId) { @@ -1212,25 +1212,25 @@ public final class ImGui extends imgui.ImGui { } private static native void nTextEx(String beginText); /*MANUAL - auto beginText = obj_beginText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_beginText, JNI_FALSE); + auto beginText = obj_beginText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_beginText); ImGui::TextEx(beginText); - if (beginText != NULL) env->ReleaseStringUTFChars(obj_beginText, beginText); + if (beginText != NULL) Jni::FreeTrueUtf8(beginText); */ private static native void nTextEx(String beginText, String endText); /*MANUAL - auto beginText = obj_beginText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_beginText, JNI_FALSE); - auto endText = obj_endText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_endText, JNI_FALSE); + auto beginText = obj_beginText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_beginText); + auto endText = obj_endText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_endText); ImGui::TextEx(beginText, endText); - if (beginText != NULL) env->ReleaseStringUTFChars(obj_beginText, beginText); - if (endText != NULL) env->ReleaseStringUTFChars(obj_endText, endText); + if (beginText != NULL) Jni::FreeTrueUtf8(beginText); + if (endText != NULL) Jni::FreeTrueUtf8(endText); */ private static native void nTextEx(String beginText, String endText, int flags); /*MANUAL - auto beginText = obj_beginText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_beginText, JNI_FALSE); - auto endText = obj_endText == NULL ? NULL : (char*)env->GetStringUTFChars(obj_endText, JNI_FALSE); + auto beginText = obj_beginText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_beginText); + auto endText = obj_endText == NULL ? NULL : Jni::ToTrueUtf8(env, obj_endText); ImGui::TextEx(beginText, endText, static_cast(flags)); - if (beginText != NULL) env->ReleaseStringUTFChars(obj_beginText, beginText); - if (endText != NULL) env->ReleaseStringUTFChars(obj_endText, endText); + if (beginText != NULL) Jni::FreeTrueUtf8(beginText); + if (endText != NULL) Jni::FreeTrueUtf8(endText); */ public static boolean buttonEx(final String label) { @@ -1258,32 +1258,32 @@ public final class ImGui extends imgui.ImGui { } private static native boolean nButtonEx(String obj_label); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::ButtonEx(label); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nButtonEx(String obj_label, float sizeX, float sizeY); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ButtonEx(label, size); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nButtonEx(String obj_label, float sizeX, float sizeY, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ButtonEx(label, size, static_cast(flags)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ private static native boolean nButtonEx(String obj_label, int flags); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); auto _result = ImGui::ButtonEx(label, ImVec2(0,0), static_cast(flags)); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); + if (label != NULL) Jni::FreeTrueUtf8(label); return _result; */ @@ -1304,18 +1304,18 @@ public final class ImGui extends imgui.ImGui { } private static native boolean nArrowButtonEx(String obj_strId, int dir, float sizeX, float sizeY); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ArrowButtonEx(strId, static_cast(dir), size); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ private static native boolean nArrowButtonEx(String obj_strId, int dir, float sizeX, float sizeY, int flags); /*MANUAL - auto strId = obj_strId == NULL ? NULL : (char*)env->GetStringUTFChars(obj_strId, JNI_FALSE); + auto strId = obj_strId == NULL ? NULL : Jni::ToTrueUtf8(env, obj_strId); ImVec2 size = ImVec2(sizeX, sizeY); auto _result = ImGui::ArrowButtonEx(strId, static_cast(dir), size, static_cast(flags)); - if (strId != NULL) env->ReleaseStringUTFChars(obj_strId, strId); + if (strId != NULL) Jni::FreeTrueUtf8(strId); return _result; */ @@ -1358,11 +1358,11 @@ public final class ImGui extends imgui.ImGui { } private static native void nSeparatorTextEx(int id, String label, String labelEnd, float extraWidth); /*MANUAL - auto label = obj_label == NULL ? NULL : (char*)env->GetStringUTFChars(obj_label, JNI_FALSE); - auto labelEnd = obj_labelEnd == NULL ? NULL : (char*)env->GetStringUTFChars(obj_labelEnd, JNI_FALSE); + auto label = obj_label == NULL ? NULL : Jni::ToTrueUtf8(env, obj_label); + auto labelEnd = obj_labelEnd == NULL ? NULL : Jni::ToTrueUtf8(env, obj_labelEnd); ImGui::SeparatorTextEx((ImGuiID)id, label, labelEnd, extraWidth); - if (label != NULL) env->ReleaseStringUTFChars(obj_label, label); - if (labelEnd != NULL) env->ReleaseStringUTFChars(obj_labelEnd, labelEnd); + if (label != NULL) Jni::FreeTrueUtf8(label); + if (labelEnd != NULL) Jni::FreeTrueUtf8(labelEnd); */ // Widgets: Window Decorations diff --git a/imgui-binding/src/main/java/imgui/ImGuiIO.java b/imgui-binding/src/main/java/imgui/ImGuiIO.java index 07c98b0..44b2cf1 100644 --- a/imgui-binding/src/main/java/imgui/ImGuiIO.java +++ b/imgui-binding/src/main/java/imgui/ImGuiIO.java @@ -322,7 +322,7 @@ public final class ImGuiIO extends ImGuiStruct { const char* getClipboardTextStub(void* user_data) { JNIEnv* env = Jni::GetEnv(); jstring jstr = Jni::CallImStrSupplier(env, _getClipboardTextCallback); - return env->GetStringUTFChars(jstr, 0); + return Jni::ToTrueUtf8(env, jstr); } */ diff --git a/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditor.java b/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditor.java index a897f79..601153f 100644 --- a/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditor.java +++ b/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditor.java @@ -78,9 +78,9 @@ public final class TextEditor extends ImGuiStructDestroyable { for (int i = 0; i < keysLen; i++) { int key = keys[i]; jstring string = (jstring)env->GetObjectArrayElement(values, i); - const char* value = env->GetStringUTFChars(string, JNI_FALSE); + const char* value = Jni::ToTrueUtf8(env, string); markers.emplace(std::pair(key, std::string(value))); - env->ReleaseStringUTFChars(string, value); + Jni::FreeTrueUtf8(value); } THIS->SetErrorMarkers(markers); */ @@ -116,9 +116,9 @@ public final class TextEditor extends ImGuiStructDestroyable { vec.reserve(length); for (int i = 0; i < length; i++) { jstring string = (jstring)env->GetObjectArrayElement(lines, i); - const char* raw = env->GetStringUTFChars(string, JNI_FALSE); + const char* raw = Jni::ToTrueUtf8(env, string); vec.emplace_back(std::string(raw)); - env->ReleaseStringUTFChars(string, raw); + Jni::FreeTrueUtf8(raw); } THIS->SetTextLines(vec); */ diff --git a/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditorLanguageDefinition.java b/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditorLanguageDefinition.java index d698c7a..1b68f69 100644 --- a/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditorLanguageDefinition.java +++ b/imgui-binding/src/main/java/imgui/extension/texteditor/TextEditorLanguageDefinition.java @@ -49,9 +49,9 @@ public final class TextEditorLanguageDefinition extends ImGuiStructDestroyable { std::unordered_set set; for (int i = 0; i < length; i++) { jstring string = (jstring)env->GetObjectArrayElement(keywords, i); - const char* raw = env->GetStringUTFChars(string, JNI_FALSE); + const char* raw = Jni::ToTrueUtf8(env, string); set.emplace(std::string(raw)); - env->ReleaseStringUTFChars(string, raw); + Jni::FreeTrueUtf8(raw); } THIS->mKeywords = set; */ @@ -67,13 +67,13 @@ public final class TextEditorLanguageDefinition extends ImGuiStructDestroyable { for (int i = 0; i < keysLen; i++) { jstring string1 = (jstring)env->GetObjectArrayElement(keys, i); jstring string2 = (jstring)env->GetObjectArrayElement(decl, i); - const char* key = env->GetStringUTFChars(string1, JNI_FALSE); - const char* value = env->GetStringUTFChars(string2, JNI_FALSE); + const char* key = Jni::ToTrueUtf8(env, string1); + const char* value = Jni::ToTrueUtf8(env, string2); TextEditor::Identifier id; id.mDeclaration = std::string(value); identifiers.insert(std::pair(std::string(key), id)); - env->ReleaseStringUTFChars(string1, key); - env->ReleaseStringUTFChars(string2, value); + Jni::FreeTrueUtf8(key); + Jni::FreeTrueUtf8(value); } THIS->mIdentifiers = identifiers; */ @@ -89,13 +89,13 @@ public final class TextEditorLanguageDefinition extends ImGuiStructDestroyable { for (int i = 0; i < keysLen; i++) { jstring string1 = (jstring)env->GetObjectArrayElement(keys, i); jstring string2 = (jstring)env->GetObjectArrayElement(decl, i); - const char* key = env->GetStringUTFChars(string1, JNI_FALSE); - const char* value = env->GetStringUTFChars(string2, JNI_FALSE); + const char* key = Jni::ToTrueUtf8(env, string1); + const char* value = Jni::ToTrueUtf8(env, string2); TextEditor::Identifier id; id.mDeclaration = std::string(value); preprocIdentifiers.insert(std::pair(std::string(key), id)); - env->ReleaseStringUTFChars(string1, key); - env->ReleaseStringUTFChars(string2, value); + Jni::FreeTrueUtf8(key); + Jni::FreeTrueUtf8(value); } THIS->mPreprocIdentifiers = preprocIdentifiers; */ @@ -131,7 +131,7 @@ public final class TextEditorLanguageDefinition extends ImGuiStructDestroyable { std::vector> tokenRegexStrings; for (int i = 0; i < keysLen; i++) { jstring string = (jstring)env->GetObjectArrayElement(keys, i); - const char* key = env->GetStringUTFChars(string, JNI_FALSE); + const char* key = Jni::ToTrueUtf8(env, string); int value = paletteIndexes[i]; tokenRegexStrings.emplace_back( std::pair( @@ -139,7 +139,7 @@ public final class TextEditorLanguageDefinition extends ImGuiStructDestroyable { static_cast(value) ) ); - env->ReleaseStringUTFChars(string, key); + Jni::FreeTrueUtf8(key); } THIS->mTokenRegexStrings = tokenRegexStrings; */ diff --git a/imgui-binding/src/main/native/jni_common.cpp b/imgui-binding/src/main/native/jni_common.cpp index 96546f8..3fc5a90 100644 --- a/imgui-binding/src/main/native/jni_common.cpp +++ b/imgui-binding/src/main/native/jni_common.cpp @@ -119,4 +119,49 @@ namespace Jni env->DeleteLocalRef(value); } } + + char* ToTrueUtf8(JNIEnv* env, jstring s) { + if (s == nullptr) return nullptr; + const jchar* chars = env->GetStringChars(s, nullptr); + jsize len = env->GetStringLength(s); + // Worst case: one codepoint → 4 UTF-8 bytes, plus null terminator. + char* buf = (char*)malloc((size_t)len * 4 + 1); + if (buf == nullptr) { + env->ReleaseStringChars(s, chars); + return nullptr; + } + char* out = buf; + for (jsize i = 0; i < len; i++) { + uint32_t cp = (uint32_t)chars[i]; + if (cp >= 0xD800 && cp <= 0xDBFF && i + 1 < len) { + uint32_t low = (uint32_t)chars[i + 1]; + if (low >= 0xDC00 && low <= 0xDFFF) { + cp = 0x10000 + ((cp - 0xD800) << 10) + (low - 0xDC00); + i++; + } + } + if (cp < 0x80) { + *out++ = (char)cp; + } else if (cp < 0x800) { + *out++ = (char)(0xC0 | (cp >> 6)); + *out++ = (char)(0x80 | (cp & 0x3F)); + } else if (cp < 0x10000) { + *out++ = (char)(0xE0 | (cp >> 12)); + *out++ = (char)(0x80 | ((cp >> 6) & 0x3F)); + *out++ = (char)(0x80 | (cp & 0x3F)); + } else { + *out++ = (char)(0xF0 | (cp >> 18)); + *out++ = (char)(0x80 | ((cp >> 12) & 0x3F)); + *out++ = (char)(0x80 | ((cp >> 6) & 0x3F)); + *out++ = (char)(0x80 | (cp & 0x3F)); + } + } + *out = 0; + env->ReleaseStringChars(s, chars); + return buf; + } + + void FreeTrueUtf8(char* p) { + if (p != nullptr) free(p); + } } diff --git a/imgui-binding/src/main/native/jni_common.h b/imgui-binding/src/main/native/jni_common.h index 43e872a..85bde37 100644 --- a/imgui-binding/src/main/native/jni_common.h +++ b/imgui-binding/src/main/native/jni_common.h @@ -47,4 +47,12 @@ namespace Jni jobjectArray NewImGuiKeyDataArray(JNIEnv* env, const ImGuiKeyData* src, int size); void ImGuiKeyDataArrayCpy(JNIEnv* env, jobjectArray src, ImGuiKeyData* dst, int size); + + // Converts a jstring to a freshly-malloc'd C string in real UTF-8 (not JNI's MUTF-8). + // JNI's GetStringUTFChars encodes codepoints above U+FFFF as a surrogate pair of two + // 3-byte sequences, which ImGui's UTF-8 decoder rejects — so SMP emoji never reach + // the glyph atlas even when the glyph is registered. Caller must release with + // FreeTrueUtf8(). Returns nullptr iff the input jstring is null. + char* ToTrueUtf8(JNIEnv* env, jstring s); + void FreeTrueUtf8(char* p); }