From: William S F. <ws...@fu...> - 2007-05-04 09:51:09
|
Jill Nephew <jbnephew <at> hotmail.com> writes: > > Hello there, > I had a quick tour of the documentation and i would LOVE the implementation > of cstring.i described there to create mutable strings with Java. But it > looks like that library hasn't been implemented - is that correct? Or is > there a separate repository where i could find an implementation? > > if not, I would love any suggestions for the simplest path here, statically > allocated arrays will do for now, at some point dynamic would be nice. Are > there any libraries i missed that do this or do i have to write my own? I > would think this is common enough that i am just missing something > obvious... > Java does not have mutable strings. You can use a StringBuffer or a StringBuilder. There are some StringBuffer typemaps in Examples/java/typemap for you to adapt for your needs. William |