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:
edburns%acm.org
2000-08-11 21:58:56 +00:00
parent 4113e0d3f3
commit 1968a5ae56
7 changed files with 36 additions and 7 deletions

View File

@@ -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;