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