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