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