src/jdk.jdwp.agent/share/native/libjdwp/utf_util.h
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24967
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     1
/*
39466
838ae1e90961 8154820: JDWP: -agentlib:jdwp=help assertion error
iklam
parents: 25859
diff changeset
     2
 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
24967
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     4
 *
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    10
 *
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    15
 * accompanied this code).
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    16
 *
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    20
 *
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    23
 * questions.
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    24
 */
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    25
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    26
#ifndef _utf_util_h_
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    27
#define _utf_util_h_
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    28
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    29
#include "jni.h"
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    30
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    31
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    32
int JNICALL utf8sToUtf8mLength(jbyte *string, int length);
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    33
void JNICALL utf8sToUtf8m(jbyte *string, int length, jbyte *newString, int newLength);
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    34
int JNICALL utf8mToUtf8sLength(jbyte *string, int length);
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    35
void JNICALL utf8mToUtf8s(jbyte *string, int length, jbyte *newString, int newLength);
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    36
39466
838ae1e90961 8154820: JDWP: -agentlib:jdwp=help assertion error
iklam
parents: 25859
diff changeset
    37
int JNICALL utf8ToPlatform(jbyte *utf8, int len, char* output, int outputBufSize);
838ae1e90961 8154820: JDWP: -agentlib:jdwp=help assertion error
iklam
parents: 25859
diff changeset
    38
int JNICALL utf8FromPlatform(char *str, int len, jbyte *output, int outputBufSize);
24967
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    39
582420f5ab6c 8041498: Remove npt library
dsamersoff
parents:
diff changeset
    40
#endif