How to handle std::vector<char32_t>?

Siddharth Jain <[email protected]> Tue, 28 Jan 2025 17:47:36 -0800
Newsgroups gmane.comp.programming.swig
Message-ID <CAPqV3pTyLJHvrUHtWYAzfYhXHiee827LLxwVVYfvWFRB==yPLQ@mail.gmail.com>
--===============7857250252370034959==
Content-Type: multipart/alternative; boundary="00000000000030e25e062cce7f15"

--00000000000030e25e062cce7f15
Content-Type: text/plain; charset="UTF-8"

I am using SWIG to generate JNI code. I have a C++ struct that has a
std::vector<char32_t> in it among other things. can someone show me how to
map this to Java?

struct Foo {
std::vector<char32_t> data;
}

std::vector<Foo> process();

what should the SWIG interface file look like to handle this? thanks.

--00000000000030e25e062cce7f15
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I am using SWIG to generate JNI code. I have a C++ struct =
that has a std::vector&lt;char32_t&gt; in it among other things. can someon=
e show me how to map this to Java?=C2=A0<div><br></div><div>struct Foo {</d=
iv><div>std::vector&lt;char32_t&gt; data;</div><div>}</div><div><br></div><=
div>std::vector&lt;Foo&gt; process();</div><div><br></div><div>what should =
the SWIG interface file look like to=C2=A0handle this? thanks.</div></div>

--00000000000030e25e062cce7f15--


--===============7857250252370034959==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7857250252370034959==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user

--===============7857250252370034959==--