src/share/vm/utilities/utf8.cpp

changeset 2497
3582bf76420e
parent 2314
f95d63e2154a
child 2708
1d1603768966
     1.1 --- a/src/share/vm/utilities/utf8.cpp	Thu Jan 27 13:42:28 2011 -0800
     1.2 +++ b/src/share/vm/utilities/utf8.cpp	Thu Jan 27 16:11:27 2011 -0800
     1.3 @@ -164,7 +164,7 @@
     1.4  
     1.5  // Returns NULL if 'c' it not found. This only works as long
     1.6  // as 'c' is an ASCII character
     1.7 -jbyte* UTF8::strrchr(jbyte* base, int length, jbyte c) {
     1.8 +const jbyte* UTF8::strrchr(const jbyte* base, int length, jbyte c) {
     1.9    assert(length >= 0, "sanity check");
    1.10    assert(c >= 0, "does not work for non-ASCII characters");
    1.11    // Skip backwards in string until 'c' is found or end is reached
    1.12 @@ -172,7 +172,7 @@
    1.13    return (length < 0) ? NULL : &base[length];
    1.14  }
    1.15  
    1.16 -bool UTF8::equal(jbyte* base1, int length1, jbyte* base2, int length2) {
    1.17 +bool UTF8::equal(const jbyte* base1, int length1, const jbyte* base2, int length2) {
    1.18    // Length must be the same
    1.19    if (length1 != length2) return false;
    1.20    for (int i = 0; i < length1; i++) {

mercurial