< prev index next >
src/hotspot/share/ci/ciSymbol.hpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -59,11 +59,11 @@
const char* type_string() { return "ciSymbol"; }
void print_impl(outputStream* st);
// This is public in Symbol* but private here, because the base can move:
- const jbyte* base();
+ const u1* base();
// Make a ciSymbol from a C string (implementation).
static ciSymbol* make_impl(const char* s);
public:
@@ -76,11 +76,14 @@
// The text of the symbol as ascii with all non-printable characters quoted as \u####
const char* as_quoted_ascii();
// Return the i-th utf8 byte, where i < utf8_length
- int byte_at(int i);
+ u1 byte_at(int i);
+
+ // Return the i-th char, where i < utf8_length
+ char char_at(int i);
// Tests if the symbol starts with the given prefix.
bool starts_with(const char* prefix, int len) const;
// Determines where the symbol contains the given substring.
< prev index next >