35 #if defined(ENABLE_JNI_HEADERS)
36 # include "native/include/java_lang_String.h"
63 for (int32_t
i = 0;
i < count;
i++) {
64 hash = (31 *
hash) + value.get_element(offset +
i);
85 for (int32_t
i = 0;
i < count;
i++) {
86 if (value.get_element(offset +
i) == ch) {
112 else if (fromIndex >= count) {
117 for (int32_t
i = fromIndex ;
i < count ;
i++) {
118 if (value.get_element(offset +
i) == ch) {
141 int32_t start = ((fromIndex >= count) ? count - 1 : fromIndex);
143 for (int32_t
i = start;
i >= 0;
i--) {
144 if (value.get_element(offset +
i) == ch) {
193 { (
char*)
"equals", (
char*)
"(Ljava/lang/Object;)Z;", (
void*) (uintptr_t) &Java_java_lang_String_equals },
virtual java_handle_t * get_handle() const
Table containing all native methods registered with the VM.
NativeMethods & get_nativemethods()
void register_methods(Utf8String classname, const JNINativeMethod *methods, size_t count)
Register native methods with the VM.
JNIEXPORT jint JNICALL Java_java_lang_String_hashCode(JNIEnv *env, jstring _this)
JNIEXPORT jint JNICALL Java_java_lang_String_indexOf__II(JNIEnv *env, jstring _this, jint ch, jint fromIndex)
#define NATIVE_METHODS_COUNT
java_handle_chararray_t * get_value() const
JNIEXPORT jint JNICALL Java_java_lang_String_lastIndexOf__I(JNIEnv *env, jstring _this, jint ch)
JNIEXPORT jstring JNICALL Java_java_lang_String_intern(JNIEnv *env, jstring _this)
static Utf8String from_utf8(const char *, size_t)
JNIEXPORT jint JNICALL Java_java_lang_String_lastIndexOf__II(JNIEnv *env, jstring _this, jint ch, jint fromIndex)
void _Jv_java_lang_String_init(void)
GNU Classpath java/lang/String.
static JNINativeMethod methods[]
int32_t get_offset() const
JNIEXPORT jint JNICALL Java_java_lang_String_indexOf__I(JNIEnv *env, jstring _this, jint ch)
int32_t get_count() const
static VM * get_current()