src/share/vm/ci/ciSymbol.cpp

changeset 1573
dd57230ba8fe
parent 435
a61af66fc99e
child 1862
cd5dbf694d45
     1.1 --- a/src/share/vm/ci/ciSymbol.cpp	Tue Jan 05 13:05:58 2010 +0100
     1.2 +++ b/src/share/vm/ci/ciSymbol.cpp	Tue Jan 05 15:21:25 2010 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 1999-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -60,6 +60,22 @@
    1.11  }
    1.12  
    1.13  // ------------------------------------------------------------------
    1.14 +// ciSymbol::starts_with
    1.15 +//
    1.16 +// Tests if the symbol starts with the given prefix.
    1.17 +bool ciSymbol::starts_with(const char* prefix, int len) const {
    1.18 +  GUARDED_VM_ENTRY(return get_symbolOop()->starts_with(prefix, len);)
    1.19 +}
    1.20 +
    1.21 +// ------------------------------------------------------------------
    1.22 +// ciSymbol::index_of
    1.23 +//
    1.24 +// Determines where the symbol contains the given substring.
    1.25 +int ciSymbol::index_of_at(int i, const char* str, int len) const {
    1.26 +  GUARDED_VM_ENTRY(return get_symbolOop()->index_of_at(i, str, len);)
    1.27 +}
    1.28 +
    1.29 +// ------------------------------------------------------------------
    1.30  // ciSymbol::utf8_length
    1.31  int ciSymbol::utf8_length() {
    1.32    GUARDED_VM_ENTRY(return get_symbolOop()->utf8_length();)

mercurial