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