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