Changeset 493:17cc20a56ea0 in verona
- Timestamp:
- May 25, 2012 5:36:17 PM (13 months ago)
- Branch:
- default
- File:
-
- 1 edited
-
swig/verona.i (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
swig/verona.i
r492 r493 82 82 void make_cxxstr(JNIEnv* jenv, std::string& st, jstring jst) 83 83 { 84 jint len =jenv->GetStringUTFLength(jst);84 int len = (int) jenv->GetStringUTFLength(jst); 85 85 jint jlen = jenv->GetStringLength(jst); 86 st.capacity( (size_t)len);86 st.capacity(len); 87 87 jenv->GetStringUTFRegion(jst, 0, jlen, (char*) st.data()); 88 st.resize( (size_t)len);88 st.resize(len); 89 89 90 90 } … … 106 106 return $null; 107 107 } 108 std::string $1_cxxstr; 109 make_cxxstr(jenv, $1_cxxstr, $input); 110 $1 = &$1_cxxstr; // in std::string 108 make_cxxstr(jenv, $1, $input); // in std::string 109 111 110 %} 112 111
Note: See TracChangeset
for help on using the changeset viewer.
