summaryrefslogtreecommitdiffstats
path: root/vm/UtfString.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/UtfString.h')
-rw-r--r--vm/UtfString.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/vm/UtfString.h b/vm/UtfString.h
index 13832dfc2..b236ce552 100644
--- a/vm/UtfString.h
+++ b/vm/UtfString.h
@@ -123,35 +123,35 @@ StringObject* dvmCreateStringFromUnicode(const u2* unichars, int len);
*
* Returns NULL if "jstr" is NULL.
*/
-char* dvmCreateCstrFromString(StringObject* jstr);
+char* dvmCreateCstrFromString(const StringObject* jstr);
/*
* Create a UTF-8 C string from a region of a java/lang/String. (Used by
* the JNI GetStringUTFRegion call.)
*/
-void dvmCreateCstrFromStringRegion(StringObject* jstr, int start, int len,
- char* buf);
+void dvmCreateCstrFromStringRegion(const StringObject* jstr,
+ int start, int len, char* buf);
/*
* Compute the length in bytes of the modified UTF-8 representation of a
* string.
*/
-int dvmStringUtf8ByteLen(StringObject* jstr);
+int dvmStringUtf8ByteLen(const StringObject* jstr);
/*
* Get the length in Unicode characters of a string.
*/
-int dvmStringLen(StringObject* jstr);
+int dvmStringLen(const StringObject* jstr);
/*
* Get the char[] object from the String.
*/
-ArrayObject* dvmStringCharArray(StringObject* jstr);
+ArrayObject* dvmStringCharArray(const StringObject* jstr);
/*
* Get a pointer to the Unicode data.
*/
-const u2* dvmStringChars(StringObject* jstr);
+const u2* dvmStringChars(const StringObject* jstr);
/*
* Compare two string objects. (This is a dvmHashTableLookup() callback.)