diff options
Diffstat (limited to 'libjava/java/lang/natStringBuilder.cc')
-rw-r--r-- | libjava/java/lang/natStringBuilder.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libjava/java/lang/natStringBuilder.cc b/libjava/java/lang/natStringBuilder.cc deleted file mode 100644 index e2c8c29..0000000 --- a/libjava/java/lang/natStringBuilder.cc +++ /dev/null @@ -1,29 +0,0 @@ -// Native methods for StringBuilder. - -/* Copyright (C) 2005 Free Software Foundation - - This file is part of libgcj. - -This software is copyrighted work licensed under the terms of the -Libgcj License. Please consult the file "LIBGCJ_LICENSE" for -details. */ - -#include <config.h> -#include <gcj/cni.h> -#include <java/lang/StringBuilder.h> -#include <java/lang/String.h> - -jboolean -java::lang::StringBuilder::regionMatches(jint offset, jstring other) -{ - int len = other->count; - int index = 0; - jchar *sc = elements (value); - jchar *oc = _Jv_GetStringChars (other); - while (--len >= 0) - { - if (sc[offset++] != oc[index++]) - return false; - } - return true; -} |