ホーム › Globalization › uset_openEmpty
uset_openEmpty
関数空のUnicode集合(USet)を新規に生成する。
シグネチャ
// icuuc.dll
#include <windows.h>
USet* uset_openEmpty(void);パラメーターなし。戻り値: USet*
各言語での呼び出し定義
// icuuc.dll
#include <windows.h>
USet* uset_openEmpty(void);[DllImport("icuuc.dll", ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr uset_openEmpty();<DllImport("icuuc.dll", ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Function uset_openEmpty() As IntPtr
End FunctionDeclare PtrSafe Function uset_openEmpty Lib "icuuc" () As LongPtr
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
uset_openEmpty = ctypes.cdll.icuuc.uset_openEmpty
uset_openEmpty.restype = ctypes.c_void_p
uset_openEmpty.argtypes = []require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('icuuc.dll')
uset_openEmpty = Fiddle::Function.new(
lib['uset_openEmpty'],
[],
Fiddle::TYPE_VOIDP, Fiddle::Function::CDECL)#[link(name = "icuuc")]
extern "C" {
fn uset_openEmpty() -> *mut isize;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[DllImport("icuuc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr uset_openEmpty();
"@
$api = Add-Type -MemberDefinition $sig -Name 'icuuc_uset_openEmpty' -Namespace Win32 -PassThru
# $api::uset_openEmpty()#uselib "icuuc.dll"
#func global uset_openEmpty "uset_openEmpty"
; uset_openEmpty ; 戻り値は stat
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "icuuc.dll"
#cfunc global uset_openEmpty "uset_openEmpty"
; res = uset_openEmpty(); USet* uset_openEmpty()
#uselib "icuuc.dll"
#cfunc global uset_openEmpty "uset_openEmpty"
; res = uset_openEmpty()import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
icuuc = windows.NewLazySystemDLL("icuuc.dll")
procuset_openEmpty = icuuc.NewProc("uset_openEmpty")
)
r1, _, err := procuset_openEmpty.Call()
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // USet*function uset_openEmpty: Pointer; cdecl;
external 'icuuc.dll' name 'uset_openEmpty';result := DllCall("icuuc\uset_openEmpty", "Cdecl Ptr")●uset_openEmpty() = DLL("icuuc.dll", "void* uset_openEmpty()")
# 呼び出し: uset_openEmpty()
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。
# ※cdecl関数。DLL()宣言はstdcall前提。cdeclは EXEC_PTR(`cdecl`,…) を使用。