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