1 // Native methods for StringBuilder.
3 /* Copyright (C) 2005 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
13 #include <java/lang/StringBuilder.h>
14 #include <java/lang/String.h>
17 java::lang::StringBuilder::regionMatches(jint offset
, jstring other
)
19 int len
= other
->count
;
21 jchar
*sc
= elements (value
);
22 jchar
*oc
= _Jv_GetStringChars (other
);
25 if (sc
[offset
++] != oc
[index
++])