bug=47357
a=edburns r=edburns author=avm This fix adds a length parameter to the loading of URLs. It also adds a new util function util_getStringLength(). git-svn-id: svn://10.0.0.236/trunk@76157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -97,6 +97,18 @@ JNIEXPORT void JNICALL util_ReleaseStringChars(JNIEnv *env, jstring inString,
|
||||
|
||||
}
|
||||
|
||||
JNIEXPORT jsize JNICALL util_GetStringLength(JNIEnv *env,
|
||||
jstring inString)
|
||||
{
|
||||
jsize result = 0;
|
||||
#ifdef BAL_INTERFACE
|
||||
result = bal_jstring_getLength(inString);
|
||||
#else
|
||||
result = env->GetStringLength(inString);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL util_NewStringUTF(JNIEnv *env, const char *inString)
|
||||
{
|
||||
jstring result = nsnull;
|
||||
|
||||
Reference in New Issue
Block a user