ホーム › Globalization › unorm2_close
unorm2_close
関数UNormalizer2インスタンスを解放する。
シグネチャ
// icuuc.dll
#include <windows.h>
void unorm2_close(
UNormalizer2* norm2
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| norm2 | UNormalizer2* | inout |
戻り値の型: void
各言語での呼び出し定義
// icuuc.dll
#include <windows.h>
void unorm2_close(
UNormalizer2* norm2
);[DllImport("icuuc.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern void unorm2_close(
ref IntPtr norm2 // UNormalizer2* in/out
);<DllImport("icuuc.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub unorm2_close(
ByRef norm2 As IntPtr ' UNormalizer2* in/out
)
End Sub' norm2 : UNormalizer2* in/out
Declare PtrSafe Sub unorm2_close Lib "icuuc" ( _
ByRef norm2 As LongPtr)
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
unorm2_close = ctypes.cdll.icuuc.unorm2_close
unorm2_close.restype = None
unorm2_close.argtypes = [
ctypes.c_void_p, # norm2 : UNormalizer2* in/out
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuuc.dll')
unorm2_close = Fiddle::Function.new(
lib['unorm2_close'],
[
Fiddle::TYPE_VOIDP, # norm2 : UNormalizer2* in/out
],
Fiddle::TYPE_VOID, Fiddle::Function::CDECL)#[link(name = "icuuc")]
extern "C" {
fn unorm2_close(
norm2: *mut isize // UNormalizer2* in/out
);
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuuc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void unorm2_close(ref IntPtr norm2);
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuuc_unorm2_close' -Namespace Win32 -PassThru
# $api::unorm2_close(norm2)#uselib "icuuc.dll"
#func global unorm2_close "unorm2_close" sptr
; unorm2_close norm2
; norm2 : UNormalizer2* in/out -> "sptr"#uselib "icuuc.dll"
#func global unorm2_close "unorm2_close" int
; unorm2_close norm2
; norm2 : UNormalizer2* in/out -> "int"; void unorm2_close(UNormalizer2* norm2)
#uselib "icuuc.dll"
#func global unorm2_close "unorm2_close" int
; unorm2_close norm2
; norm2 : UNormalizer2* in/out -> "int"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuuc = windows.NewLazySystemDLL("icuuc.dll")
procunorm2_close = icuuc.NewProc("unorm2_close")
)
// norm2 (UNormalizer2* in/out)
r1, _, err := procunorm2_close.Call(
uintptr(norm2),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // voidprocedure unorm2_close(
norm2: Pointer // UNormalizer2* in/out
); cdecl;
external 'icuuc.dll' name 'unorm2_close';result := DllCall("icuuc\unorm2_close"
, "Ptr", norm2 ; UNormalizer2* in/out
, "Cdecl Int") ; return: void●unorm2_close(norm2) = DLL("icuuc.dll", "int unorm2_close(void*)")
# 呼び出し: unorm2_close(norm2)
# norm2 : UNormalizer2* in/out -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。