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