jnapi

package
v0.0.0-...-df39981 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ignoring of cpp
	CppIgnore = "std::ignore"
	// self keyword equavalent of cpp
	CppSelf = "this"
)
View Source
const DefaultExpr = "{}"
View Source
const Ignore = "_"

ignore operator

View Source
const InitializerCaller = "__jnc_call_package_initializers"

initializer caller identifier

Variables

View Source
var CppHeaderExtensions = []string{
	".h",
	".hpp",
	".hxx",
	".hh",
}

header are valid extension of cpp header

View Source
var JNCHeader = ""

hader path of "jnc.hpp"

Functions

func AsId

func AsId(id string) string

return specified identifier as jn Cpp identifier

func AsTypeId

func AsTypeId(id string) string

func IsIgnoreId

func IsIgnoreId(id string) bool

reporting identifier is ignore or not

func IsValidHeader

func IsValidHeader(ext string) bool

valid header return true if the extesion valid, false if not

func OutId

func OutId(id string, f *jnio.File) string

func ToConcurrentCall

func ToConcurrentCall(expr string) string

return of concurrent function call expression string

func ToDeferredCall

func ToDeferredCall(expr string) string

return cpp of defer function call expression string

func ToRawStr

func ToRawStr(bytes []byte) string

to raw str return specifies literal as jn raw-string literal for cpp

func ToRune

func ToRune(bytes []byte) string

to rune returns specified literal as Jn rune literal for cpp

func ToStr

func ToStr(bytes []byte) string

string generated clean byte encode, not string literal cause jn strings are as UTF-8 encode and some cpp compile compiles wrong c++ string literal

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL