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