Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

C-style JNI Function Name Generator

Crate Docs MIT Licensed

Introduction

A library to generate C-style JNI function names from Java method descriptors according to specs.

Usage

use jniname::{c_name, Error};
let result = c_name("Test", "foo", "(I)I");
assert_eq!(result, Ok(("Java_Test_foo".to_string(), "Java_Test_foo__I".to_string())));

License

This project is licensed under the MIT License – see the LICENSE file for details.